Skip to content

Instantly share code, notes, and snippets.

@balascript
Created August 15, 2020 20:50
Show Gist options
  • Save balascript/3fe03fc36efbfff96c57dfdbffd53edc to your computer and use it in GitHub Desktop.
Save balascript/3fe03fc36efbfff96c57dfdbffd53edc to your computer and use it in GitHub Desktop.
export const CoffeeComponent = (props) => {
const coffeeBrewer = new CoffeeBrewer("DarkRoast");
return (
<TouchableView
onPress={() => {
coffeeBrewer.brew();
}}>
<Text>Press me!</Text>
</TouchableView>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment