--- id: button title: Button layout: docs category: components permalink: docs/button.html next: checkbox previous: activityindicator --- A basic button component that should render nicely on any platform. Supports a minimal level of customization.
If this button doesn't look right for your app, you can build your own button using [TouchableOpacity](docs/touchableopacity.html) or [TouchableNativeFeedback](docs/touchablenativefeedback.html). For inspiration, look at the [source code for this button component](https://github.com/facebook/react-native/blob/master/Libraries/Components/Button.js). Or, take a look at the [wide variety of button components built by the community](https://js.coach/react-native?search=button). Example usage: ``` import { Button } from 'react-native'; ...