0
protected void onCreate(Bundle savedInstanceState) {
    SplashScreen.show(this); 
    super.onCreate(savedInstanceState);
    setContentView(R.layout.launch_screen);
    TextView footer = findViewById(R.id.footerText);
    footer.setText(getString(R.string.copyright, year));
}

Here in this code above, setText does not work. I cannot dynamically change the text in my splash screen (launch_screen), however when I comment out SplashScreen.show(this); it works. What is the reason for this and how to fix it without commenting it? Thanks.

Library I am using - https://github.com/crazycodeboy/react-native-splash-screen

Ravi Makwana
  • 2,782
  • 1
  • 29
  • 41
Jolly Good
  • 452
  • 7
  • 17

0 Answers0