From fb4165ccbaa226ef2db131b92bd2fb75b5bc9185 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Sat, 24 Oct 2020 19:19:02 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=EF=B8=8F=20Example=20-=20Added:=20`Co?= =?UTF-8?q?ntextMenuViewTest08`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/src/App.js | 2 + .../src/components/ContextMenuViewTest08.js | 44 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 example/src/components/ContextMenuViewTest08.js 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