Skip to content

Commit f8b9ea4

Browse files
committed
Update README.md
Updated to version 2.0.0
1 parent c31286f commit f8b9ea4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# apsl-react-native-button
22

3-
A React Native button component with rounded corners.
3+
A React Native button component customizable via ``style`` props.
44

55
<p align="center">
66
<img src="https://raw.githubusercontent.com/wiki/APSL/react-native-button/button.png" alt="Button component screenshot" width="400">
@@ -22,10 +22,14 @@ import Button from 'apsl-react-native-button'
2222

2323
## Usage
2424

25-
There are four required props: ``borderColor``, ``backgroundColor``, ``textColor`` and a child ``string`` that represents the button text. Also, you can pass ``TouchableOpacity``' props to the component.
25+
Provide ``TouchableOpacity``' props to the component (including ``style``), ``textStyle``'s ``StyleSheet`` to customize the inner text and a children node to render. Check the included example for more options.
2626

2727
```javascript
28-
<Button borderColor={'red'} backgroundColor={'green'} textColor={'blue'}>
28+
<Button style={{backgroundColor: 'red'}} textStyle={{fontSize: 18}}>
2929
Hello!
3030
</Button>
3131
```
32+
33+
## License
34+
35+
MIT.

0 commit comments

Comments
 (0)