react-native-image-zoom icon indicating copy to clipboard operation
react-native-image-zoom copied to clipboard

no suitable constructor found for Event(int)

Open waleedarshad-vf opened this issue 9 years ago • 5 comments

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

waleedarshad-vf avatar Sep 29 '16 11:09 waleedarshad-vf

@waleedarshad-vf Did you find a solution?

shukerullah avatar Dec 27 '16 09:12 shukerullah

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

waleedarshad-vf avatar Dec 27 '16 09:12 waleedarshad-vf

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

waleedarshad-vf avatar Dec 27 '16 09:12 waleedarshad-vf

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

shukerullah avatar Dec 27 '16 10:12 shukerullah

(y)

waleedarshad-vf avatar Dec 27 '16 10:12 waleedarshad-vf