Получение ошибки при использовании Android Splashscreen с React NativeAndroid

Форум для тех, кто программирует под Android
Гость
Получение ошибки при использовании Android Splashscreen с React Native

Сообщение Гость »


How can I use Android's Splashscreen api with React Native ?

I tried online tutorials and getting below error

Код: Выделить всё

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

I tried an online solution, that is remove

Код: Выделить всё

savedInstanceState
from

Код: Выделить всё

super.onCreate()
method

but that too gave me an error

Код: Выделить всё

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.guardapp/com.guardapp.MainActivity}: java.lang.reflect.InvocationTargetException


Источник: https://stackoverflow.com/questions/781 ... act-native

Вернуться в «Android»