react-native-nativebutton
v0.1.5
Published
ReactNative - Native button for iOS and Android
Downloads
7
Maintainers
Readme
react-native-nativebutton
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
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>
)
}
}