2021-02-19 10:02:24 -07:00
|
|
|
import { Navigation } from "react-native-navigation";
|
2021-02-19 08:07:53 -07:00
|
|
|
import App from './src/App';
|
2021-02-19 10:02:24 -07:00
|
|
|
import Settings from './src/Settings';
|
2021-02-19 08:07:53 -07:00
|
|
|
|
2021-02-19 10:02:24 -07:00
|
|
|
Navigation.registerComponent('Home', () => App);
|
|
|
|
Navigation.registerComponent('Settings', () => Settings);
|
|
|
|
|
|
|
|
Navigation.events().registerAppLaunchedListener(() => {
|
|
|
|
Navigation.setRoot({
|
|
|
|
root: {
|
|
|
|
stack: {
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
component: {
|
|
|
|
name: 'Home'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|