1. 2
    Create a Button in React Native Using TouchableOpacity
    1m 38s

Create a Button in React Native Using TouchableOpacity

InstructorKadi Kraman

Share this video with your friends

Send Tweet

Create a button in React Native using Text and TouchableOpacity, and customise the look and feel of your button using the style prop and activeOpacity.

Using TouchableOpacity is of the most commonly used ways of building buttons in React Native. It is much more versatile than the built in Button component: you can wrap anything (an Image, View, Text etc) in a TouchableOpacity, to make it into a button, and add any styles for both the button container as well as the children to customise them.