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; 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" }