Skip to content

Commit 1f61ac5

Browse files
committed
↩️ Restore: Ex - BasicUsageExample01
1 parent d6ecfe9 commit 1f61ac5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import * as React from 'react';
2+
import { StyleSheet, Text } from 'react-native';
3+
4+
import { ContextMenuView } from 'react-native-ios-context-menu';
5+
6+
export function BasicUsageExample01() {
7+
return (
8+
<ContextMenuView
9+
style={styles.container}
10+
menuConfig={{
11+
menuTitle: 'BasicUsageExample01',
12+
menuItems: [{
13+
actionKey : 'key-01',
14+
actionTitle: 'Action #1',
15+
}, {
16+
actionKey : 'key-02' ,
17+
actionTitle: 'Action #2',
18+
}, {
19+
actionKey : 'key-03' ,
20+
actionTitle: 'Action #3',
21+
}],
22+
}}
23+
>
24+
<Text style={styles.text}>
25+
Press And Hold To Show Context Menu
26+
</Text>
27+
</ContextMenuView>
28+
);
29+
};
30+
31+
const styles = StyleSheet.create({
32+
container: {
33+
margin: 10,
34+
padding: 10,
35+
},
36+
text: {
37+
fontSize: 16,
38+
},
39+
});

0 commit comments

Comments
 (0)