Skip to Content
DocumentationDebugging Tips

Debugging Tips

1. Debugging Layout and Styling Issues

  • Symptom: Components unexpectedly expand or layout breaks.
  • Steps to Debug:
    • Use Tailwind/NativeWind classes to explicitly set width and alignment.
    • Wrap components in a constrained parent container.
    • Reference flex-based component behaviors in React Native.

2. Clearing Expo and NativeWind Cache

  • Symptom: Changes in code or styling do not apply.
  • Steps to Debug:
    • Clear the Expo cache with npx expo start -c.
    • For prebuilt apps, use npx expo prebuild --clear.

3. Monitoring Prisma Commands

  • Symptom: Prisma migration or schema updates fail.
  • Steps to Debug:
    • Verify you are in the root directory before running commands.
    • Check database connection settings.