Should I always use safeAreaView in react native?

Viewed 4233

I know that I always need to use <safeAreaView> to keep my content in the correct place of the screen in iOS.

Even I'm build an app just for Android, seems there isn't problem use <safeAreaView>, in case of I want to build the same app for the iOS platform.

My question is, am I wrong if I ALWAYS use <safeAreaView> to wrap all my content? Why would I use <View> if perhaps in the future I'll have to replace everything with <safeAreaView>?

1 Answers

If you are using navigation libraries like react-navigation or react-native-router-flux then you don't need to use <SafeAreaView>. These libraries manage automatically it. You have to only use when any screen has headerMode:none or it out side of the navigation. If you are using full screen modal then you should use <SafeAreaView>.

Related