File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 33 * free desktop app for inspecting and debugging your React Native app.
44 * @see https://github.com/infinitered/reactotron
55 */
6- import { Platform } from "react-native"
6+ import { Platform , NativeModules } from "react-native"
77
88import AsyncStorage from "@react-native-async-storage/async-storage"
99import { ArgType } from "reactotron-core-client"
@@ -46,6 +46,17 @@ if (Platform.OS !== "web") {
4646 * NOTE: If you edit this file while running the app, you will need to do a full refresh
4747 * or else your custom commands won't be registered correctly.
4848 */
49+
50+ Reactotron . onCustomCommand ( {
51+ title : "Show Dev Menu" ,
52+ description : "Opens the React Native dev menu" ,
53+ command : "showDevMenu" ,
54+ handler : ( ) => {
55+ Reactotron . log ( "Showing React Native dev menu" )
56+ NativeModules . DevMenu . show ( )
57+ } ,
58+ } )
59+
4960Reactotron . onCustomCommand ( {
5061 title : "Reset Root Store" ,
5162 description : "Resets the MST store" ,
You can’t perform that action at this time.
0 commit comments