-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: Method does not override or implement a method from a supertype #14
Comments
I think this issue is similar to what react-native-device-info faced over at react-native-device-info/react-native-device-info#213 after rn 0.44. Can you try removing |
@martsie If I remove the Also, I'm not a Java developer by any means but the repo version of the Java file differs from the one I have locally so I am unable to submit a PR with the change. Versus local version: public class TouchThroughViewPackage implements ReactPackage {
public TouchThroughViewPackage(Activity activity) {
} // backwards compatability
public TouchThroughViewPackage() {
}
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
return Collections.emptyList();
}
// I removed @Override from here but this does not exist in repo
public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList();
}
@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
TouchThroughViewManager touchThroughViewManager = new TouchThroughViewManager();
TouchThroughWrapperManager touchThroughWrapperManager = new TouchThroughWrapperManager();
return Arrays.<ViewManager>asList(touchThroughViewManager, touchThroughWrapperManager);
}
} |
@martsie Do you know how I make this change in the repo? It would be good to get it in so the app at least builds on Android and then I can raise a separate issue for the |
@jjenzz The Also, are you using react-native-navigation? |
@derekblank has that been published? An
I am on |
@jjenzz You're right, @simonhoss / @martsie - what do you think about trying another PR to pull in Simon's work? I have been using that fork in a production app for several months without issue, and can confirm that it works with both |
Hi Pull requests to my fork are always welcome. If rome2rio are not interested anymore to maintain this project I would continue it from my fork. Greets |
When attempting to use this package on Android I am getting the following error:
Environment
The text was updated successfully, but these errors were encountered: