From 210ea4ce90ab55f0f9c95dcb1a2be703354f0ca3 Mon Sep 17 00:00:00 2001 From: Adam Miskiewicz Date: Sun, 9 Aug 2015 23:08:34 -0400 Subject: [PATCH 1/2] Removing peer deps --- package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/package.json b/package.json index 456218f..f2fb13a 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,6 @@ "type": "git", "url": "git@github.com:brentvatne/react-native-linear-gradient.git" }, - "peerDependencies": { - "react-native": ">= 0.4.4" - }, "devDependencies": { "jest-cli": "0.2.1" } From 1a2cd1c4f20ae182781bcbbd41aa5bb7cab71ecc Mon Sep 17 00:00:00 2001 From: Nick Hudkins Date: Tue, 29 Sep 2015 12:43:22 -0400 Subject: [PATCH 2/2] color conversion in JS --- LinearGradient.ios.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/LinearGradient.ios.js b/LinearGradient.ios.js index 3a9165c..7cd1cf6 100644 --- a/LinearGradient.ios.js +++ b/LinearGradient.ios.js @@ -5,7 +5,17 @@ 'use strict'; -var { requireNativeComponent, } = require('react-native'); -var LinearGradient = requireNativeComponent('BVLinearGradient', null); +var React = require('react-native'); +var { requireNativeComponent, processColor } = React; +var NativeLinearGradient = requireNativeComponent('BVLinearGradient', null); + +var LinearGradient = React.createClass({ + render: function() { + var { colors, ...otherProps } = this.props; + return ( + + ); + } +}); module.exports = LinearGradient;