From 416b84a72b9f36b6d5cfbe020b0fbe70d9c65792 Mon Sep 17 00:00:00 2001 From: Timur Gibadullin Date: Thu, 29 Jun 2017 15:50:59 +0300 Subject: [PATCH] Replace PropTypes from react with form prop-types package --- index.android.js | 3 ++- index.ios.js | 3 ++- package.json | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/index.android.js b/index.android.js index 6a70c62..a356f81 100644 --- a/index.android.js +++ b/index.android.js @@ -1,6 +1,7 @@ // @flow -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { processColor, requireNativeComponent, PointPropType, StyleSheet, View } from 'react-native'; const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js'); diff --git a/index.ios.js b/index.ios.js index 5dea04a..1298d19 100644 --- a/index.ios.js +++ b/index.ios.js @@ -2,7 +2,8 @@ * @providesModule LinearGradient * @flow */ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { processColor, requireNativeComponent, PointPropType, View } from 'react-native'; const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js'); diff --git a/package.json b/package.json index 6a83804..7db8806 100644 --- a/package.json +++ b/package.json @@ -24,5 +24,8 @@ }, "devDependencies": { "jest-cli": "0.2.1" + }, + "dependencies": { + "prop-types": "^15.5.10" } }