forked from jqn/AndroidAutoExample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RootApp.js
43 lines (37 loc) · 1.07 KB
/
RootApp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import React from 'react';
import {StyleSheet, Text, View} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {
Screen,
ScreenManager,
useCarNavigation,
} from 'react-native-android-auto';
const DeliveryListScreen = () => {
return (
<pane-template title={'Shopify Local Delivery'}>
<item-list header="Delivery Lists">
<row key={1} title={"Today's Delivery"} texts={['Delivery 1']} />
<action title="Add Delivery" texts={['hello world']} />
</item-list>
</pane-template>
);
};
const Main = () => {
return (
<list-template title={'Shopify Local Delivery test'} isLoading={false}>
<item-list header="Delivery Lists">
<row key={1} title={"Today's Delivery"} texts={['Delivery 1']} />
</item-list>
</list-template>
);
};
const RootApp = () => {
return (
<ScreenManager>
<Screen name="root" render={Main} />
<Screen name="deliveryList" render={DeliveryListScreen} />
</ScreenManager>
);
};
export default RootApp;
// const styles = StyleSheet.create({});