react-native-nativebutton

0.1.5 • Public • Published

react-native-nativebutton 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>
    )    
  }
}
 

Package Sidebar

Install

npm i react-native-nativebutton

Weekly Downloads

2

Version

0.1.5

License

MIT

Last publish

Collaborators

  • stoffern