Skip to content

Instantly share code, notes, and snippets.

@troZee
Last active June 3, 2019 08:49
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 troZee/bb585847fe7dd851f55ca41ef1033892 to your computer and use it in GitHub Desktop.
Save troZee/bb585847fe7dd851f55ca41ef1033892 to your computer and use it in GitHub Desktop.
class MyNativeView extends React.Component<Props> {
goToNextPage = () => {
NativeModules.RNCMyNativeView.goToNextPage();
};
goToPreviousPage = () => {
NativeModules.RNCMyNativeView.goToPreviousPage();
};
render() {
return <NativeComponent ref={NATIVE_COMPONENT_REF} />;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment