From 0a1c3c11c3eaf0950a34bb7f63b11ad6a7bbca50 Mon Sep 17 00:00:00 2001 From: Prakash Date: Tue, 6 Mar 2018 19:35:57 +0530 Subject: [PATCH] To support react native 0.52+ version. This will help the developers to use this application for 0.52+ versions. Prop types are moved out of react. we can use import PropTypes from 'prop-types'; --- lib/FloatingLabel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/FloatingLabel.js b/lib/FloatingLabel.js index 5f96eab..bca5db9 100644 --- a/lib/FloatingLabel.js +++ b/lib/FloatingLabel.js @@ -1,5 +1,6 @@ 'use strict'; -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {StyleSheet, Animated} from "react-native"; export default class FloatingLabel extends Component {