MainActivity cannot be cast to androidx.fragment.app.FragmentActivity #26827
Labels
Bug
Platform: Android
Android applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
When i upgrade my APP with react-native 0.60.5 in Android,
My app is integration-with-existing-apps
The problems occurs
It's seems like my
MainActivity
must extends toFragmentActivity
, according to this PR. But my activity extends NativeActivity already, and we need it.Can anyone tell me
Why DialogModule supports only FragmentActivity
please?If it must do, can you give me any ideas about how to deal with
FragmentActivity
andNativeActivity
please?React Native version:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
Memory: 7.34 GB / 15.96 GB
Binaries:
Node: 10.16.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.16.0 - D:\soft\Yarn\bin\yarn.CMD
npm: 6.11.3 - C:\Program Files\nodejs\npm.CMD
react-native: 0.60.5
react: 16.8.6
Steps To Reproduce
Describe what you expected to happen:
Expect no such error occurs .
Snack, code example, screenshot, or link to a repository:
#23365
electrode-io/electrode-native#1363
The text was updated successfully, but these errors were encountered: