Skip to content

Commit f63ad50

Browse files
author
Brent Vatne
committed
Update README again
1 parent 7321186 commit f63ad50

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ A `<LinearGradient>` component for react-native, as seen in
2222

2323
## Examples
2424

25+
26+
### Simple
27+
2528
The following code will produce something like this:
2629

2730
![Example code result](https://raw.githubusercontent.com/brentvatne/react-native-linear-gradient/master/example.png)
@@ -52,6 +55,8 @@ var styles = StyleSheet.create({
5255
});
5356
```
5457

58+
### Additional props
59+
5560
You can also use start and end points, as well as specify the locations
5661
for the gradient color changes with the `start`, `end` and `locations`
5762
props:
@@ -70,9 +75,12 @@ props:
7075

7176
![Example with extra props](https://raw.githubusercontent.com/brentvatne/react-native-linear-gradient/master/example-other-props.png)
7277

78+
### Updating the values for fun
79+
7380
Check out [Examples/AnimatedGradient] (`git clone` this project, cd into it, npm install, open in XCode and run) to see how this is done:
7481

7582
![Example with extra props](https://raw.githubusercontent.com/brentvatne/react-native-linear-gradient/master/example-animated.gif)
83+
7684
*This gif was created using [licecap](http://www.cockos.com/licecap/) - a great piece of free OSS*
7785

7886
### An example app

0 commit comments

Comments
 (0)