react-native-whatsapp-ui
react-native-whatsapp-ui copied to clipboard
Cannot evaluate module react-native-splash-screen : Configuration with name 'default' not found.
After taking its clone I am getting error as - Cannot evaluate module react-native-splash-screen : Configuration with name 'default' not found.
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
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?
same error