0.1.5 • Published 7 years ago

react-native-nativebutton v0.1.5

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago

react-native-nativebutton npm.io David 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

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>
    )    
  }
}