Skip to Content
DocumentationTroubleshootingCommon Issues

Common Issues

Pressable Expands to Fill Parent in NativeWind

  • Problem: Pressable components expand to fill the width of their parent container by default.
  • Explanation: React Native layout components, like Pressable, inherit flex properties unless explicitly constrained.
  • Solutions:
    // Option 1: Use self-start <Pressable className="self-start"> <Text>Skip</Text> </Pressable> // Option 2: Use explicit width <Pressable className="w-auto"> <Text>Skip</Text> </Pressable> // Option 3: Inline-block style <Pressable className="inline-block"> <Text>Skip</Text> </Pressable>

Paywall Page Re-renders Unintentionally

  • Problem: Hooks and listeners cause the paywall page to re-render unexpectedly when checking subscription status.
  • Solution: Create a dedicated page for the paywall instead of using it inline with listeners. This isolates its state and reduces unwanted re-renders.