Created
December 15, 2018 05:05
-
-
Save nshimiye/0df23d604fbaac96d9648e7d930021a3 to your computer and use it in GitHub Desktop.
React Native module method call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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