Skip to content

Instantly share code, notes, and snippets.

@kanzitelli
Last active January 11, 2022 04:21
[Article] RNN Screens - App.tsx (Navigation)
const screens = generateRNNScreens({
Main: {
component: Main,
options: {
topBar: {
title: {text: 'Main'},
largeTitle: {visible: true},
},
},
},
Settings: {
component: Settings,
options: {
topBar: {
title: {text: 'Settings'},
largeTitle: {visible: true},
},
},
},
});
const App = () => Root(Screen(screens.get('Main')));
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment