DEV Community

Discussion on: Adding Notch support to your React Native apps: Android, iOS & Web

Collapse
 
amanhimself profile image
Aman Mittal

Thank you so much for sharing a cross-platform solution for this problem. I was wondering the SafeArea insets would have to be added to every screen in the app (assuming that app contains multiple screens). Is there anyway to do provide a context or something and wrap around the main component such that all other screen components do not have to be defined explicitly?

Also, does the package react-native-safe-area-context works with Expo apps?

Collapse
 
amanhimself profile image
Aman Mittal

Nevermind, I found this: github.com/react-native-community/... :)