Library.tsx
1.32 KB
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
44
45
46
47
48
49
50
51
52
53
54
import React from 'react';
import { BGList, BGScroll, ListItem, Divider } from '../component/View';
import { MainTabScreenProps } from '../type/Navigation';
import { useI18nStrings } from '../i18n';
const Library = ({ navigation }: MainTabScreenProps<'Library'>) => {
const strings = useI18nStrings();
return (
<BGScroll>
<ListItem
title="RNDeviceInfo"
onPress={() => navigation.navigate('RNDeviceInfoList')}
chevron
/>
<Divider />
<ListItem
title={'RNCWebview'}
onPress={() =>
navigation.navigate('WebviewScreen', {
uri: 'https://www.baidu.com',
})
}
chevron
/>
<Divider />
<ListItem
title={'RNLocalize'}
onPress={() => navigation.navigate('RNLocalize')}
rightTitle={strings.name}
chevron
/>
<Divider />
<ListItem
title={'RNCamera'}
onPress={() => navigation.navigate('RNCamera')}
chevron
/>
<Divider />
<ListItem
title={'Readable Code'}
onPress={() => navigation.navigate('RNCode')}
chevron
/>
<Divider />
<ListItem
title={'Shortcut'}
onPress={() => navigation.navigate('ShortcutItem')}
chevron
/>
</BGScroll>
);
};
export default Library;