Menu
A versatile menu for navigation.
1
import { Divider, Menu } from '../components'
2
3
<Menu
4
items={['Item 1', 'Item 2', 'Item 3']}
5
/>
Copied!
Menu also may contain icons, to provide a better user interfaces.
1
import { Divider, Menu } from '../components'
2
3
<Menu
4
items={[<View
5
style={{
6
alignItems: 'center',
7
flexDirection: 'row',
8
color: 'inherit',
9
}}
10
>
11
<Text style={{ color: 'inherit' }}>One</Text>
12
<Icon name={'staro'} size={20} style={{ marginLeft: 5 }} />
13
</View>,
14
<View
15
style={{
16
alignItems: 'center',
17
flexDirection: 'row',
18
color: 'inherit',
19
}}
20
>
21
<Text>Two</Text>
22
<Icon name={'staro'} size={20} style={{ marginLeft: 5 }} />
23
</View>,
24
<View
25
style={{
26
alignItems: 'center',
27
flexDirection: 'row',
28
color: 'inherit',
29
}}
30
>
31
<Text>Three</Text>
32
<Icon name={'staro'} size={20} style={{ marginLeft: 5 }} />
33
</View>,}]
34
/>
Copied!
Last modified 1yr ago
Copy link