import React from 'react' ; import { NavigationContainer } from '@react-navigation/native' ; import AppNavigator from './AppNavigator' ; import Toast from './components/Toast' ; import { toastRef } from './util/action' ; const AppControlFlow = ( ) => { return ( < > < NavigationContainer > < AppNavigator /> < /NavigationContainer> < Toast { ... { ref : toastRef } } /> < />); } ; export default AppControlFlow ;