react-native-safe-area-context
react-native-safe-area-context copied to clipboard
Unable to resolve module NativeSafeAreaView
Today I update to last version 3.1.1 and got this issue in both platforms. I tried manual linking and not working. Finally check that in node_modules missing this module

I have exactly the same issue.
Same here
npm start -- --reset-cache fixed it for me
Still getting this issue with 3.1.4, the fix above didn't work for me...
npm start -- --reset-cache did not fix it for me.
watchman del-all did nothing.
I reinstalled node_modules, nothing.
Indeed the file NativeSafeAreaView is not present in node_modules
I will downgrade and let you guys know.
@janicduplessis
Current solution:
-
Go to
node_modules/react-native-safe-area-context/src/index.tsx -
Add this
exportstatement:export * from './NativeSafeAreaProvider' -
npm start --reset-cache -
Keep working.
This file doesn't exist anymore (https://github.com/th3rdwave/react-native-safe-area-context/tree/master/src). Would it be possible that you have multiple versions of the library installed? Also you can check what version is actually installed by checking the package.json file "version".
Having the same problem and I'm sure I'm using the latest react-native-safe-area-context version.
I was using expo and this woked for me
expo start -c
npm start -- --reset-cache was enough for me
Using 3.2.0 and npm start -- --reset-cache works for me.
Using 3.3.2 and npm start -- --reset-cache also worked for me
Current solution:
- Go to
node_modules/react-native-safe-area-context/src/index.tsx- Add this
exportstatement:export * from './NativeSafeAreaProvider'npm start --reset-cache- Keep working.
Thank you for this , it did work for me
This is for v3 of the library, and we're on v4. Please re-open a new issue if you're still facing issues