@uplift-ltd/react-native-debug
v4.0.0
Published
react-native-debug
Downloads
9
Readme
@uplift-ltd/react-native-debug
Installation
npm i --save @uplift-ltd/react-native-debugAPI
DebugNavigator
Mount the navigator somewhere and navigate to it!
import { DebugNavigator } from "@uplift-ltd/react-native-debug";
function Root() {
return (
<RootStackNavigator.Navigator>
<RootStackNavigator.Screen
name={DEV_ZONE}
component={DebugNavigator}
initialParams={{ headerShown: false, verifyScreen: "Verify" }}
/>
</RootStackNavigator.Navigator>
);
}
function SomeScreen({ navigation }) {
return <Logo onLongPress={() => navigation.navigate(DEV_ZONE)} />;
}