From 0923dad7d6aea124c23e4d5d785728df805b7853 Mon Sep 17 00:00:00 2001 From: Nairi Harutyunyan Date: Fri, 25 May 2018 12:17:30 +0400 Subject: [PATCH] Bug fix --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 89a6580..815fff4 100644 --- a/index.js +++ b/index.js @@ -11,17 +11,18 @@ import { Easing, Text, View, - Platform + Platform, + ViewPropTypes } from 'react-native'; -var textPropTypes = Text.propTypes || View.propTypes +var textPropTypes = Text.propTypes || ViewPropTypes var textInputPropTypes = TextInput.propTypes || textPropTypes var propTypes = { ...textInputPropTypes, inputStyle: textInputPropTypes.style, labelStyle: textPropTypes.style, disabled: PropTypes.bool, - style: View.propTypes.style, + style: ViewPropTypes.style, } var FloatingLabel = createReactClass({