commit
0249d8b86a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue