From c5965bd7eb38f2e2245f7a13c5d3ea9b71d7169e Mon Sep 17 00:00:00 2001 From: Lowie Huyghe Date: Thu, 9 Nov 2017 15:04:49 +0100 Subject: [PATCH] Support newer react versions that deprecated PropTypes. --- HyperlinkedText.js | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HyperlinkedText.js b/HyperlinkedText.js index b5736c0..7f36f9f 100644 --- a/HyperlinkedText.js +++ b/HyperlinkedText.js @@ -2,7 +2,8 @@ * @providesModule react-native-hyperlinked-text */ -import React, { Component, PropTypes } from 'react' +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { View, Text, diff --git a/package.json b/package.json index f1bffce..cffcdc3 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "react-native", "hyperlink", "hyperlinks", "regex", "links" ], "dependencies": { + "prop-types": "^15.6.0", "ramda": "^0.24.1" }, "description": "Text component for React Native with regex defined hyperlinks",