1. 1
    Create a Button in React Native Using the Button Component
    1m 35s

Create a Button in React Native Using the Button Component

InstructorKadi Kraman

Share this video with your friends

Send Tweet

You'll learn how create a button using the built-in Button component, handle the onPress event, disabled state, and button colour. While doing so we will explore the TypeScript ButtonProps interface that defines the options available to you.

The Button component is built into React Native, and is the quickest way to add interaction to your application as it can handle both the button text, and the onPress event in one component.

The downside of the Button component is that it's not very configurable: other than setting the text colour and disabled state, you won't be able to customise much else when it comes to the look and feel of the button.

Good to use for prototyping, and building quick UIs.