Skip to content

Instantly share code, notes, and snippets.

@troZee
Last active June 3, 2019 08:51
Show Gist options
  • Save troZee/87ea3b32e1a9f43fc154e499ff0627e2 to your computer and use it in GitHub Desktop.
Save troZee/87ea3b32e1a9f43fc154e499ff0627e2 to your computer and use it in GitHub Desktop.
<View>
<MyNativeView ref={this.myNativeView} />
<ButtonContainer>
<Button
title="Previous"
onPress={() => {
this.myNativeView.current.goToPreviousPage();
}}
/>
<Button
title="Next"
onPress={() => {
this.myNativeView.current.goToNextPage();
}}
/>
</ButtonContainer>
<MyNativeView ref={this.myNativeView2} />
<ButtonContainer>
<Button
title="Previous"
onPress={() => {
this.myNativeView2.current.goToPreviousPage();
}}
/>
<Button
title="Next"
onPress={() => {
this.myNativeView2.current.goToNextPage();
}}
/>
</ButtonContainer>
</View>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment