123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- const singleScreenApp = {
- container: {
- name: 'com.example.MyScreen'
- }
- };
-
- const passProps = {
- strProp: 'string prop',
- numProp: 12345,
- objProp: { inner: { foo: 'bar' } },
- fnProp: () => 'Hello from a function'
- };
-
- const singleScreenWithAditionalParams = {
- container: {
- name: 'com.example.MyScreen',
- passProps,
- style: {},
- buttons: {}
- }
- };
-
- const tabBasedApp = {
- bottomTabs: [
- {
- container: {
- name: 'com.example.ATab'
- }
- },
- {
- container: {
- name: 'com.example.SecondTab'
- }
- },
- {
- container: {
- name: 'com.example.ATab'
- }
- }
- ]
- };
-
- const singleWithSideMenu = {
- container: {
- name: 'com.example.MyScreen'
- },
- sideMenu: {
- left: {
- container: {
- name: 'com.example.SideMenu'
- }
- }
- }
- };
-
- const singleWithRightSideMenu = {
- container: {
- name: 'com.example.MyScreen'
- },
- sideMenu: {
- right: {
- container: {
- name: 'com.example.SideMenu'
- }
- }
- }
- };
-
- const singleWithBothMenus = {
- container: {
- name: 'com.example.MyScreen'
- },
- sideMenu: {
- left: {
- container: {
- name: 'com.example.Menu1'
- }
- },
- right: {
- container: {
- name: 'com.example.Menu2'
- }
- }
- }
- };
-
- const tabBasedWithBothSideMenus = {
- bottomTabs: [
- {
- container: {
- name: 'com.example.FirstTab'
- }
- },
- {
- container: {
- name: 'com.example.SecondTab'
- }
- }
- ],
- sideMenu: {
- left: {
- container: {
- name: 'com.example.Menu1'
- }
- },
- right: {
- container: {
- name: 'com.example.Menu2'
- }
- }
- }
- };
-
- const singleScreenWithTopTabs = {
- topTabs: [
- {
- name: 'navigation.playground.TextScreen'
- },
- {
- name: 'navigation.playground.TextScreen'
- },
- {
- name: 'navigation.playground.TextScreen'
- }
- ]
- };
-
- module.exports = {
- singleScreenApp,
- passProps,
- singleScreenWithAditionalParams,
- tabBasedApp,
- singleWithSideMenu,
- singleWithRightSideMenu,
- singleWithBothMenus,
- tabBasedWithBothSideMenus,
- singleScreenWithTopTabs
- };
|