From 0ccacc2f7b724817f16056c5bf329c33d346e9b6 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Fri, 9 Apr 2021 22:42:43 +0800 Subject: [PATCH] Add TestConsole --- Example/testHotUpdate/src/TestConsole.js | 73 ++++++++++++++++++++++++ Example/testHotUpdate/src/index.js | 11 ++-- 2 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 Example/testHotUpdate/src/TestConsole.js diff --git a/Example/testHotUpdate/src/TestConsole.js b/Example/testHotUpdate/src/TestConsole.js new file mode 100644 index 0000000..b3a2337 --- /dev/null +++ b/Example/testHotUpdate/src/TestConsole.js @@ -0,0 +1,73 @@ +import React from 'react'; +import { + ActivityIndicator, + Alert, + Modal, + TextInput, + Button, + NativeModules, + StyleSheet, + SafeAreaView, + Text, + View, +} from 'react-native'; + +const Pushy = NativeModules.Pushy; +export default function TestConsole({visible}) { + const [text, setText] = React.useState(''); + const [running, setRunning] = React.useState(false); + return ( + + + 调试Pushy方法(方法名,参数,值换行) + + {running && } + + +