mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2025-01-09 15:25:49 +00:00
Merge branch 'master' into ViewPropTypes
This commit is contained in:
commit
e3d4aee698
@ -1,6 +1,6 @@
|
|||||||
// @flow
|
// @flow
|
||||||
|
import React, { Component } from 'react';
|
||||||
import React, { Component, PropTypes } from 'react';
|
import PropTypes from 'prop-types';
|
||||||
import { processColor, requireNativeComponent, PointPropType, StyleSheet, View, ViewPropTypes } from 'react-native';
|
import { processColor, requireNativeComponent, PointPropType, StyleSheet, View, ViewPropTypes } from 'react-native';
|
||||||
const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js');
|
const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js');
|
||||||
|
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
* @providesModule LinearGradient
|
* @providesModule LinearGradient
|
||||||
* @flow
|
* @flow
|
||||||
*/
|
*/
|
||||||
import React, { Component, PropTypes } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
import { processColor, requireNativeComponent, PointPropType, View, ViewPropTypes } from 'react-native';
|
import { processColor, requireNativeComponent, PointPropType, View, ViewPropTypes } from 'react-native';
|
||||||
const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js');
|
const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js');
|
||||||
|
|
||||||
|
9
index.js
Normal file
9
index.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Platform } from "react-native";
|
||||||
|
import LinearGradientIos from "./index.ios.js";
|
||||||
|
import LinearGradientAndroid from "./index.android.js";
|
||||||
|
|
||||||
|
const LinearGradient = Platform.OS === "ios"
|
||||||
|
? LinearGradientIos
|
||||||
|
: LinearGradientAndroid;
|
||||||
|
|
||||||
|
export default LinearGradient;
|
@ -24,5 +24,8 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jest-cli": "0.2.1"
|
"jest-cli": "0.2.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"prop-types": "^15.5.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user