From 753fb41d2d5042b82414b40354c8725ae82a5a05 Mon Sep 17 00:00:00 2001 From: "m.parzinski" Date: Tue, 23 May 2017 15:42:38 +0200 Subject: [PATCH] use new ViewPropTypes --- index.android.js | 4 ++-- index.ios.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.android.js b/index.android.js index 6a70c62..59bdfed 100644 --- a/index.android.js +++ b/index.android.js @@ -1,7 +1,7 @@ // @flow import React, { Component, PropTypes } from 'react'; -import { processColor, requireNativeComponent, PointPropType, StyleSheet, View } from 'react-native'; +import { processColor, requireNativeComponent, PointPropType, StyleSheet, View, ViewPropTypes } from 'react-native'; const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js'); const convertPoint = (name, point) => { @@ -42,7 +42,7 @@ export default class LinearGradient extends Component { ]), colors: PropTypes.arrayOf(PropTypes.string).isRequired, locations: PropTypes.arrayOf(PropTypes.number), - ...View.propTypes, + ...ViewPropTypes, }; props: PropsType; gradientRef: any; diff --git a/index.ios.js b/index.ios.js index 5dea04a..092a177 100644 --- a/index.ios.js +++ b/index.ios.js @@ -3,7 +3,7 @@ * @flow */ import React, { Component, PropTypes } from 'react'; -import { processColor, requireNativeComponent, PointPropType, View } from 'react-native'; +import { processColor, requireNativeComponent, PointPropType, View, ViewPropTypes } from 'react-native'; const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js'); const convertPoint = (name, point) => { @@ -46,7 +46,7 @@ export default class LinearGradient extends Component { ]), colors: PropTypes.arrayOf(PropTypes.string).isRequired, locations: PropTypes.arrayOf(PropTypes.number), - ...View.propTypes, + ...ViewPropTypes, }; props: PropsType; gradientRef: any;