Skip to content

Instantly share code, notes, and snippets.

@skiph
Last active May 2, 2018 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skiph/55e7db23b9cd42510467fad1cff623e4 to your computer and use it in GitHub Desktop.
Save skiph/55e7db23b9cd42510467fad1cff623e4 to your computer and use it in GitHub Desktop.
RNDemo - native module call
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