React-native-splash-screen: Compiling Error When running react-native run-android

Created on 5 Aug 2017  路  3Comments  路  Source: crazycodeboy/react-native-splash-screen

Hello,

since upgrading react-native I get the following error:

node_modules\react-native-splash-screen\android\src\main\java\com\cboy\rn\splash
screen\SplashScreenReactPackage.java:22: error: method does not override or implement a method from a supertype
    @Override

Does anyone have a suggestion why this occurs?

Thanks
John

Most helpful comment

@crazycodeboy can you please merge PR and make release?

All 3 comments

Found the error with react-native 0.47

public class SplashScreenReactPackage implements ReactPackage {

    //@Override
    //public List<Class<? extends JavaScriptModule>> createJSModules() {
    //    return Collections.emptyList();
    //}

Solved the problem for me.

Is it possible to remove the commented lines in the next release please?

Cheers
John

There is PR for that #74

@crazycodeboy can you please merge PR and make release?

Was this page helpful?
0 / 5 - 0 ratings