react-native-nativebutton
Version:
ReactNative - Native button for iOS and Android
37 lines (24 loc) • 1.12 kB
Markdown
## react-native-nativebutton  []() [](https://github.com/semantic-release/semantic-release)
This provides native button responses for each platform (iOS and Android)
Android = TouchableNativeFeedback
iOS = TouchableOpacity
Nothing more, only the native feeling! :)
## Installation
```npm i -S react-native-nativebutton``` https://www.npmjs.com/package/react-native-nativebutton
## Props
- `children` **(required)**: the content to negate.
## Usage Examples
```js
import Button from "react-native-nativebutton"
class Example extends Component{
render(){
return (
<View>
<Button style={{backgroundColor: 'red', borderWidth: 1, borderRadius: 5, borderColor: 'blue'}}>
<Text style={{color: 'white'}}>{'My button'}</Text>
</Button>
</View>
)
}
}
```