race604 / react-native-viewpager

[Deprecated] ViewPager component for React Native
1.41k stars 373 forks source link

TypeError:undefined is not an object(evaluating 'new _reactNativeViewpage2.default.DataSoure') #178

Open getnative opened 6 years ago

getnative commented 6 years ago

"react": "16.2.0", "react-native": "0.54.2", macOS:10.13.4 Xcode:9

my code: var dataSourceBanners = new ViewPager.DataSource({ pageHasChanged: (p1, p2) => p1 !== p2, });

error message: TypeError:undefined is not an object(evaluating 'new _reactNativeViewpage2.default.DataSoure')

xihangbin commented 6 years ago

你解决吗?我也遇到这样的问题了

dongqizhen commented 6 years ago

this plugin had out date ,react 16.x not support React.PropTypes ,changed it to import "PropTypes" from "prop-types"

WhoJave commented 6 years ago

@dongqizhen it seems not working ! I have already import PropTypes ,but still this problem

HS3 commented 6 years ago

听说是:这个组建已经过期了,很多api已经更新了,如果想继续用,那就等作者更新最新版本,rn项目中PropType的问题。等不了的朋友可以换 react native swiper

cnrsbtogll commented 4 years ago

I have a similar problem Screenshot_1572942605