diff --git a/LinearGradient.ios.js b/LinearGradient.ios.js index 3098fa1..3a9165c 100644 --- a/LinearGradient.ios.js +++ b/LinearGradient.ios.js @@ -5,19 +5,7 @@ 'use strict'; -var ReactNativeViewAttributes = require('ReactNativeViewAttributes'); -var createReactNativeComponentClass = require('createReactNativeComponentClass'); -var merge = require('merge'); -var deepDiffer = require('deepDiffer'); - -var LinearGradient = createReactNativeComponentClass({ - validAttributes: merge(ReactNativeViewAttributes.UIView, { - colors: {diff: deepDiffer}, - start: {diff: deepDiffer}, - end: {diff: deepDiffer}, - locations: {diff: deepDiffer}, - }), - uiViewClassName: 'BVLinearGradient', -}); +var { requireNativeComponent, } = require('react-native'); +var LinearGradient = requireNativeComponent('BVLinearGradient', null); module.exports = LinearGradient; diff --git a/package.json b/package.json index 285a912..89b7738 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "url": "git@github.com:brentvatne/react-native-linear-gradient.git" }, "peerDependencies": { - "react-native": "^0.4.3" + "react-native": "^0.4.4" }, "devDependencies": { "jest-cli": "0.2.1"