Merge pull request #109 from joshuapinter/patch-1

Add Import method to usage instructions.
This commit is contained in:
Brent Vatne 2016-09-10 20:41:44 -07:00 committed by GitHub
commit 2cb5bc019f

View File

@ -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}>