Merge pull request #172 from mettin/master

use new ViewPropTypes
This commit is contained in:
Gant Laborde 2017-07-05 08:42:27 -05:00 committed by GitHub
commit 0249d8b86a
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;