react-native-debug-menu
v1.0.0
Published
A togglable debug menu for you to add various items to access debug settings
Downloads
2
Maintainers
Readme
react-native-debug-menu
For you to access your own app debug settings quickly
Preview
Usage
import DebugMenu from 'react-native-debug-menu'
class MyApp extends React.Component {
constructor (props) {
this.actions = [
{ title: 'Debug item 1', action: () => { console.log('Awesome') }, keepMenuOnAction: true },
{ title: 'Debug item 2', action: this.debugOption2 }
]
}
debugOption2 = () => {
console.log('Hello Debug Item 2')
}
render () {
return (
<DebugMenu
actionItems={this.actions}
/>
)
}
}