Skip to content

Instantly share code, notes, and snippets.

@martinwairegi
Created February 4, 2022 15:24
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 martinwairegi/ebb16015dbba7e7025e31a47be2fdba0 to your computer and use it in GitHub Desktop.
Save martinwairegi/ebb16015dbba7e7025e31a47be2fdba0 to your computer and use it in GitHub Desktop.
render() {
return (
<View>
<Button title={'Press me'} onPress={()=>{
this.toast.show('hello world!',2000);
}}/>
<Toast ref={(toast) => this.toast = toast}/>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment