cesardeazevedo / react-native-nested-scroll-view

react-native wrapper for android NestedScrollView
MIT License
88 stars 36 forks source link

RN 0.51 build error #24

Closed odesey closed 6 years ago

odesey commented 6 years ago

I am trying to use this package in my project and get the following error when I run react-native run android:

/node_modules/react-native-nested-scroll-view/android/src/main/java/com/rnnestedscrollview/ReactNestedScrollView.java:308: error: method emitScrollMomentumBeginEvent in class ReactScrollViewHelper cannot be applied to given types; ReactScrollViewHelper.emitScrollMomentumBeginEvent(this, 0, velocityY); ^ required: ViewGroup found: ReactNestedScrollView,int,int reason: actual and formal argument lists differ in length 1 error

Additional info:

compileSdkVersion 26 buildToolsVersion '26.0.2'

React-Native version: 0.51

Thanks.

cesardeazevedo commented 6 years ago

The last version only works with react-native 0.56.0, upgrade react-native or use an old version of this package.

odesey commented 6 years ago

Thanks, using version 6.0.1 fixed the build error.