Anthonyzou / react-native-image-zoom

Image pan and zoom for Android

Home Page:https://www.npmjs.com/package/react-native-image-zoom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no suitable constructor found for Event(int)

waleedarshad-vf opened this issue · 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 Did you find a solution?

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

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