Last active
March 24, 2020 10:15
-
-
Save duytq94/e70e5a7a2a4fdd404f077d6f7508e1ec to your computer and use it in GitHub Desktop.
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
// Send a message to native code | |
TestConnectNative.sendMessage(this.state.messageToNative); | |
// Send a callback to native code and receive a message from it | |
TestConnectNative.sendCallback((nativeMessage) => { | |
console.log(`This log is from js code callback with native message: "${nativeMessage}"`); | |
}); | |
// Exit RN to go back to native | |
TestConnectNative.exitRN(rootTag); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment