import*asReactfrom'react';import{Button,View}from'react-native';import{createDrawerNavigator}from'@react-navigation/drawer';import{NavigationContainer}from'@react-navigation/native';functionHomeScreen({navigation}){return(<Viewstyle={{flex:1,alignItems:'center',justifyContent:'center',}}><ButtononPress={()=>navigation.navigate('Notifications')}title="Go to notifications"/></View>);}functionNotificationsScreen({navigation}){return(<Viewstyle={{flex:1,alignItems:'center',justifyContent:'center',}}><ButtononPress={()=>navigation.goBack()}title="Go back home"/></View>);}constDrawer=createDrawerNavigator();exportdefaultfunctionApp(){return(<NavigationContainer><Drawer.NavigatorinitialRouteName="Home"><Drawer.Screenname="Home"component={HomeScreen}/><Drawer.Screenname="Notifications"component={NotificationsScreen}/></Drawer.Navigator></NavigationContainer>);}