Skip to content

Commit

Permalink
View.propTypes has been deprecated
Browse files Browse the repository at this point in the history
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:
react-navigation/react-navigation#1352
facebook/react-native#16352
  • Loading branch information
tiberiumihai authored Nov 6, 2017
1 parent 4a2e667 commit 0cd64b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types';

import {
View,
ViewPropTypes,
StyleSheet,
NativeModules,
NativeMethodsMixin,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 0cd64b3

Please sign in to comment.