Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

SafeAreaView implementation on iPhone 11

$
0
0

I'm trying to add a SafeAreaView so my icons don't get squished together like shown in the image.

But it seems the SafeAreaView just pushes the contents up instead.

This is how I've currently Implemented it/

const BottomTabs = () => (<SafeAreaView style={styles.container}><DevSupport /><Tab.Navigator><Tab.Screen        name="Home"        component={FeaturedScreen}        options={{          unmountOnBlur: true,          tabBarLabel: 'Home',          tabBarIcon: ({ color }) => (<Icons.IconHome width={ICON_SIZE} height={ICON_SIZE} color={color} />          ),        }}      /></Tab.Navigator></SafeAreaView>);const styles = StyleSheet.create({  container: {    flex: 1,  },});

Any tips on where I'm going wrong? Or am I simply adding the SafeAreaView on the wrong screen?

Error Occurring here

Without SafeArea it looks like the following:

WithoutSafearea


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>