himanshuchauhan / react-native-whatsapp-ui

Pure javascript UI prototype of Whatsapp for React Native framework.
164 stars 53 forks source link

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

Open kmtilwani opened 6 years ago

kmtilwani commented 6 years ago

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

tarifrudrapur commented 6 years ago

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

InfantAnto commented 5 years ago

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?

ayanmurad987 commented 5 years ago

same error