react-native-pull-to-refresh icon indicating copy to clipboard operation
react-native-pull-to-refresh copied to clipboard

Undefined is not an object (evaluating '_react2.PropTypes.bool')

Open iloo123 opened this issue 7 years ago • 6 comments

This error is not fixed while running on iOS. Android had the same issue but i fixed by importing PorpTypes from 'prop-types' instead of importing it from React. Please Help me out. Thanks

iloo123 avatar Nov 16 '17 15:11 iloo123

+1 same temprarly fix is comment all proptypes in or replace import React, { PropTypes } from "react"; wuth import React from "react"; import PropTypes from "prop-types";

PanRada avatar Nov 16 '17 20:11 PanRada

still I am getting same error..

Garib-ka-code avatar Dec 13 '17 19:12 Garib-ka-code

I believe this should be fixed by: https://github.com/moschan/react-native-pull-to-refresh/pull/24

smaclell avatar Dec 13 '17 19:12 smaclell

Yes, When I change import React, { PropTypes } from "react" to import PropTypes from "prop-types". In node_modules then it works. Please update your repo.

Garib-ka-code avatar Dec 13 '17 20:12 Garib-ka-code

Hi guys, sorry for late response,

I merged PR and bumped it.

Use v2.1.3. Thanks 😸

moschan avatar Dec 17 '17 01:12 moschan

@moschan thanks for merging the fix!

smaclell avatar Dec 17 '17 02:12 smaclell