From 73df1d360286e70b9d9491e6a2f3137e31306ff1 Mon Sep 17 00:00:00 2001 From: Joshua Pinter Date: Sat, 10 Sep 2016 21:17:27 -0600 Subject: [PATCH] Add Import method to usage instructions. Use `var LinearGradient = require('react-native-linear-gradient');` as shown in the Login example app does not work. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ec82ffb..4174431 100644 --- a/README.md +++ b/README.md @@ -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