Last active
May 2, 2018 19:47
-
-
Save skiph/55e7db23b9cd42510467fad1cff623e4 to your computer and use it in GitHub Desktop.
RNDemo - native module 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
import {NativeModules} from 'react-native'; | |
NativeModules.Approov.fetchApproovToken(input) | |
.then(token => { | |
// do something useful... | |
}) | |
.catch((error) => { | |
throw error; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment