From 0cd64b3ef11d15565f12e3a54caab213cbddab16 Mon Sep 17 00:00:00 2001 From: tiberiumihai Date: Mon, 6 Nov 2017 05:07:53 +0200 Subject: [PATCH] View.propTypes has been deprecated Use ViewPropTypes instead. View.propTypes is intended for DEV mode. So, when I'm using this awesome library, in DEV mode it works perfectly fine, but as soon as I build the release version, it crashes. Using react-native 0.50.0 with react 16.0.0. More info here: https://github.com/react-community/react-navigation/issues/1352 https://github.com/facebook/react-native/issues/16352 --- index.ios.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.ios.js b/index.ios.js index 4734fce..357331d 100644 --- a/index.ios.js +++ b/index.ios.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; import { View, + ViewPropTypes, StyleSheet, NativeModules, NativeMethodsMixin, @@ -90,7 +91,7 @@ class FBLogin extends Component { } FBLogin.propTypes = { - style: View.propTypes.style, + style: ViewPropTypes.style, permissions: PropTypes.array, // default: ["public_profile", "email"] loginBehavior: PropTypes.number, // default: Native onLogin: PropTypes.func,