mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2026-08-30 22:01:13 +00:00
Merge pull request #109 from joshuapinter/patch-1
Add Import method to usage instructions.
This commit is contained in:
@@ -97,6 +97,8 @@ The following code will produce something like this:
|
||||

|
||||
|
||||
```javascript
|
||||
import LinearGradient from 'react-native-linear-gradient';
|
||||
|
||||
// Within your render function
|
||||
<LinearGradient colors={['#4c669f', '#3b5998', '#192f6a']} style={styles.linearGradient}>
|
||||
<Text style={styles.buttonText}>
|
||||
|
||||
Reference in New Issue
Block a user