File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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+ } ) ;
You can’t perform that action at this time.
0 commit comments