79114865

Date: 2024-10-22 15:43:48
Score: 0.5
Natty:
Report link

Ran into this today and came across this question.

You may need to wrap your modal in its own SafeAreaContextProvider.

See the doc here: https://www.npmjs.com/package/react-native-safe-area-context#safeareaprovider

You should add SafeAreaProvider in your app root component. You may need to add it in other places like the root of modals and routes when using react-native-screens.

In my case, I was using Portal from react-native-paper, and adding a SafeContextProvider nested directly under the Portal solved my problem. In your example wrapping the component that the Stack.Screen serves might have done the trick.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user2316154