react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

Compiling Error When running react-native run-android

Open johndo31 opened this issue 9 years ago • 3 comments

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

johndo31 avatar Aug 05 '17 12:08 johndo31

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

johndo31 avatar Aug 05 '17 13:08 johndo31

There is PR for that #74

radko93 avatar Aug 10 '17 13:08 radko93

@crazycodeboy can you please merge PR and make release?

NachtRitter avatar Aug 10 '17 16:08 NachtRitter