mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2025-01-20 20:49:39 +00:00
Merge pull request #109 from joshuapinter/patch-1
Add Import method to usage instructions.
This commit is contained in:
commit
2cb5bc019f
@ -97,6 +97,8 @@ The following code will produce something like this:
|
||||
![Example code result](https://raw.githubusercontent.com/brentvatne/react-native-linear-gradient/master/images/example.png)
|
||||
|
||||
```javascript
|
||||
import LinearGradient from 'react-native-linear-gradient';
|
||||
|
||||
// Within your render function
|
||||
<LinearGradient colors={['#4c669f', '#3b5998', '#192f6a']} style={styles.linearGradient}>
|
||||
<Text style={styles.buttonText}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user