java.lang.RuntimeException: Unable to start activity ComponentInfo{com.guardapp/com.guardapp.MainActivity}: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.swmansion.rnscreens.ScreenStackFragment: calling Fragment constructor caused an exception
How can I use Android's Splashscreen api with React Native ?
I tried online tutorials and getting below error
[code]java.lang.RuntimeException: Unable to start activity ComponentInfo{com.guardapp/com.guardapp.MainActivity}: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.swmansion.rnscreens.ScreenStackFragment: calling Fragment constructor caused an exception[/code]
I tried an online solution, that is remove [code]savedInstanceState[/code] from [code]super.onCreate()[/code] method
but that too gave me an error
[code]java.lang.RuntimeException: Unable to start activity ComponentInfo{com.guardapp/com.guardapp.MainActivity}: java.lang.reflect.InvocationTargetException[/code]