Skip to content

Instantly share code, notes, and snippets.

@lrlineroa
Created February 25, 2020 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrlineroa/cebbc7420b544c96b8d73d8a363e2c7b to your computer and use it in GitHub Desktop.
Save lrlineroa/cebbc7420b544c96b8d73d8a363e2c7b to your computer and use it in GitHub Desktop.
package com.cerezabusiness.supercerebros;
import com.facebook.react.ReactActivity;
// react-native-splash-screen instalation
import org.devio.rn.splashscreen.SplashScreen; // here
import android.os.Bundle;//here
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
//react-native-splash-screen installation
@Override
protected void onCreate(Bundle savedInstanceState) {
SplashScreen.show(this); // here
super.onCreate(savedInstanceState);
}
@Override
protected String getMainComponentName() {
return "supercerebros";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment