A button component for React Native
Built with ❤︎ by tiaanduplessis and contributors
A simple customizable button component for React Native. Uses TouchableOpacity on iOS and TouchableNativeFeedback on Android.
$ npm install nanokit-button
# OR
$ yarn add nanokit-button
import React from 'react'
import { View, StyleSheet } from 'react-native'
import Button from 'nanokit-button'
const Example = () => (
<View style={styles.container}>
<Button width={200} text="Hello"/>
</View>
)
const styles = StyleSheet.create({
container: {flex: 1, justifyContent: 'center', alignItems: 'center'}
})
Results in:
See the available props for more info
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
Licensed under the MIT License.