diff --git a/example/src/App.js b/example/src/App.js index ba0e637..29ec9b6 100644 --- a/example/src/App.js +++ b/example/src/App.js @@ -8,6 +8,7 @@ import { ContextMenuViewTest04 } from './components/ContextMenuViewTest04'; import { ContextMenuViewTest05 } from './components/ContextMenuViewTest05'; import { ContextMenuViewTest06 } from './components/ContextMenuViewTest06'; import { ContextMenuViewTest07 } from './components/ContextMenuViewTest07'; +import { ContextMenuViewTest08 } from './components/ContextMenuViewTest08'; export default function App() { @@ -21,6 +22,7 @@ export default function App() { + ); diff --git a/example/src/components/ContextMenuViewTest08.js b/example/src/components/ContextMenuViewTest08.js new file mode 100644 index 0000000..bc3349f --- /dev/null +++ b/example/src/components/ContextMenuViewTest08.js @@ -0,0 +1,44 @@ +import React from 'react'; +import { StyleSheet } from 'react-native'; + +import { ExampleContextMenuItem } from './ExampleContextMenuItem'; + + +export class ContextMenuViewTest08 extends React.PureComponent { + render(){ + return( + alert(key)} + menuConfig={{ + menuTitle: 'ContextMenuViewTest08', + menuItems: [{ + actionKey : 'key-01', + actionTitle: 'menuState: on', + imageType : 'SYSTEM', + imageValue : 'folder', + menuState : 'on', + }, { + actionKey : 'key-02' , + actionTitle: 'menuState: off', + imageType : 'SYSTEM', + imageValue : 'dial', + menuState : 'off', + }, { + actionKey : 'key-03' , + actionTitle: 'menuState: mixed', + imageType : 'SYSTEM' , + imageValue : 'archivebox', + menuState : 'mixed', + }], + }} + /> + ); + }; +}; + +const styles = StyleSheet.create({ +}); \ No newline at end of file