Skip to content

Instantly share code, notes, and snippets.

@nshimiye
Created December 15, 2018 05:05
Show Gist options
  • Save nshimiye/0df23d604fbaac96d9648e7d930021a3 to your computer and use it in GitHub Desktop.
Save nshimiye/0df23d604fbaac96d9648e7d930021a3 to your computer and use it in GitHub Desktop.
React Native module method call
// export default class App extends Component {
// ...
componentDidMount() {
NativeModules.MDebugger.isLowMemory()
.then(lowMomery => {
this.setState({ lowMemory })
})
}
// ...
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment