react-native-whatsapp-ui icon indicating copy to clipboard operation
react-native-whatsapp-ui copied to clipboard

Cannot evaluate module react-native-splash-screen : Configuration with name 'default' not found.

Open kmtilwani opened this issue 7 years ago • 3 comments

After taking its clone I am getting error as - Cannot evaluate module react-native-splash-screen : Configuration with name 'default' not found. screen shot 1939-08-06 at 3 48 54 pm

kmtilwani avatar Oct 28 '17 10:10 kmtilwani

Change MainActivity.java as following

`package com.whatsapp;

import com.facebook.react.ReactActivity; import android.os.Bundle; import org.devio.rn.splashscreen.SplashScreen;

public class MainActivity extends ReactActivity {

/**
 * Returns the name of the main component registered from JavaScript.
 * This is used to schedule rendering of the component.
 */

@Override
protected void onCreate(Bundle savedInstanceState) {
    SplashScreen.show(this);  // here
    super.onCreate(savedInstanceState);
}


@Override
protected String getMainComponentName() {
    return "Whatsapp";
}

} `

Also update build gradle version

tarifrudrapur avatar May 02 '18 18:05 tarifrudrapur

I too got stuck with the same error. @tarifrudrapur I'm getting the same error even after updated the above code in MainActivity.java. Any other solutions to make it work?

InfantAnto avatar Jul 20 '18 05:07 InfantAnto

same error

ayanmurad987 avatar May 21 '19 13:05 ayanmurad987