1- import React , { Component , Fragment } from "react" ;
2- import { Text , StatusBar , ImageBackground } from "react-native" ;
3- import { BottomMenu , Item } from "react-native-bottom-menu" ;
1+ import React , { Component } from "react" ;
2+ import { Text , StatusBar , SafeAreaView , ImageBackground } from "react-native" ;
3+ // import { BottomMenu, Item } from "react-native-bottom-menu";
4+ import BottomMenu from "./lib/src/components/bottomMenu/BottomMenu" ;
5+ import Item from "./lib/src/components/item/Item" ;
46import Androw from "react-native-androw" ;
57import styles from "./styles/App.style" ;
68
@@ -14,12 +16,12 @@ class App extends Component {
1416
1517 render ( ) {
1618 return (
17- < Fragment >
18- < StatusBar barStyle = "dark-content" />
19- < ImageBackground
20- style = { styles . backgroundStyle }
21- source = { require ( "./assets/Watusi.png" ) }
22- >
19+ < ImageBackground
20+ style = { styles . backgroundStyle }
21+ source = { require ( "./assets/Watusi.png" ) }
22+ >
23+ < SafeAreaView style = { { flex : 1 } } >
24+ < StatusBar barStyle = "dark-content" / >
2325 < Androw style = { styles . headerStyle } >
2426 < Text style = { styles . textStyle } > React Native Bottom Menu</ Text >
2527 </ Androw >
@@ -57,8 +59,8 @@ class App extends Component {
5759 onPress = { ( ) => this . setState ( { isActive : "settings" } ) }
5860 />
5961 </ BottomMenu >
60- </ ImageBackground >
61- </ Fragment >
62+ </ SafeAreaView >
63+ </ ImageBackground >
6264 ) ;
6365 }
6466}
0 commit comments