Created
December 25, 2018 13:01
-
-
Save vshkl/a62125b914342bc25882bb8ac79126be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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