Skip to content

Instantly share code, notes, and snippets.

@vshkl
Created December 25, 2018 13:01
Show Gist options
  • Save vshkl/a62125b914342bc25882bb8ac79126be to your computer and use it in GitHub Desktop.
Save vshkl/a62125b914342bc25882bb8ac79126be to your computer and use it in GitHub Desktop.
import parts from './parts'
import views from './views'
...
const current = () => ({
stack: {
id: 'tab.CurrentScreen',
children: [
views.current(),
],
},
})
const forecase = () => ({
stack: {
id: 'tab.ForecastScreen',
children: [
views.forecase(),
],
},
})
const map = () => ({
stack: {
id: 'tab.MapScreen',
children: [
views.map(),
],
},
})
const main = () => ({
root: {
sideMenu: {
left: parts.sideMenuLeft(),
center: {
bottomTabs: {
id: 'tabs.Bottom',
children: [
current(),
forecash(),
map(),
],
},
},
},
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment