Skip to content

Instantly share code, notes, and snippets.

@alperbayram
Created April 8, 2023 20:27
Show Gist options
  • Save alperbayram/cfcf4edbdc0cd0b5cc9cdd5641b9713a to your computer and use it in GitHub Desktop.
Save alperbayram/cfcf4edbdc0cd0b5cc9cdd5641b9713a to your computer and use it in GitHub Desktop.
App.js
import { SafeAreaView, StyleSheet } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { BottomTabNavigator } from "./src/navigator/tabbar";
export default function App() {
return (
<SafeAreaView style={styles.droidSafeArea}>
<NavigationContainer>
<BottomTabNavigator></BottomTabNavigator>
</NavigationContainer>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
droidSafeArea: {
flex: 1,
backgroundColor: "white",
paddingTop: Platform.OS === "android" ? 35 : 0,
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment