Anthonyzou / react-native-image-zoom

Image pan and zoom for Android
https://www.npmjs.com/package/react-native-image-zoom
MIT License
115 stars 52 forks source link

no suitable constructor found for Event(int) #30

Open waleedarshad-vf opened 8 years ago

waleedarshad-vf commented 8 years ago

I am using react-native 0.27.2

/Users/user/Documents/projects/zig-android/node_modules/react-native-image-zoom/android/src/main/java/com/image/zoom/ImageEvent.java:39: error: no suitable constructor found for Event(int) super(viewId); ^ constructor Event.Event() is not applicable (actual and formal argument lists differ in length) constructor Event.Event(int,long) is not applicable (actual and formal argument lists differ in length) /Users/waleed/Documents/projects/zig-android/node_modules/react-native-image-zoom/android/src/main/java/com/image/zoom/viewpager/PageScrollEvent.java:29: error: no suitable constructor found for Event(int) super(viewTag); ^ constructor Event.Event() is not applicable (actual and formal argument lists differ in length) constructor Event.Event(int,long) is not applicable (actual and formal argument lists differ in length) /Users/waleed/Documents/projects/zig-android/node_modules/react-native-image-zoom/android/src/main/java/com/image/zoom/viewpager/PageScrollStateChangedEvent.java:25: error: no suitable constructor found for Event(int) super(viewTag); ^ constructor Event.Event() is not applicable (actual and formal argument lists differ in length) constructor Event.Event(int,long) is not applicable (actual and formal argument lists differ in length) /Users/waleed/Documents/projects/zig-android/node_modules/react-native-image-zoom/android/src/main/java/com/image/zoom/viewpager/PageSelectedEvent.java:34: error: no suitable constructor found for Event(int) super(viewTag); ^ constructor Event.Event() is not applicable (actual and formal argument lists differ in length) constructor Event.Event(int,long) is not applicable (actual and formal argument lists differ in length) Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 4 errors :react-native-image-zoom:compileReleaseJava FAILED

shukerullah commented 7 years ago

@waleedarshad-vf Did you find a solution?

waleedarshad-vf commented 7 years ago

It is the problems with versions. used the exact version of react native zoom according to your react native verions

waleedarshad-vf commented 7 years ago

@shukerullah Look into this https://github.com/Anthonyzou/react-native-image-zoom/commit/981af82eb95f2c4af61327322c3a8b56c5a79d24

shukerullah commented 7 years ago

@waleedarshad-vf thanks v0.30.0 worked without any errors

waleedarshad-vf commented 7 years ago

(y)