React-native-youtube: app crashed when place Youtube component inside a pop up modal "Android"

Created on 3 Oct 2019  路  16Comments  路  Source: davidohayon669/react-native-youtube

The component renders fine on IOS pop up modal but on Android it crashes without any errors !

bug

Most helpful comment

I can confirm this issue!

This may help:

2019-11-16 11:04:09.369 14152-14152/com.fominha E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.fominha, PID: 14152
    java.lang.IllegalArgumentException: No view found for id 0x801 (unknown) for fragment VideoFragment{1414939 #1 id=0x801}
        at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1297)
        at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2431)
        at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2210)
        at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
        at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
        at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

All 16 comments

@sugip0304 What is this modal exactly?

same problem not working on react native modal, when we open modal and youtube crash. on android.

@davidohayon669 modal is a popup. if i click some image show pop up screen and i call react native youtube. it's work on ios but on android crash. i think @imadarif have some problem with me.

any work around for this case ?

@sugip0304 is the modal covering the Player? are there any useful error information? (Error message, logging)

@davidohayon669 In my case its react-native default model

Same issue with me.

Same issue here

I can confirm this issue!

This may help:

2019-11-16 11:04:09.369 14152-14152/com.fominha E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.fominha, PID: 14152
    java.lang.IllegalArgumentException: No view found for id 0x801 (unknown) for fragment VideoFragment{1414939 #1 id=0x801}
        at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1297)
        at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2431)
        at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2210)
        at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
        at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
        at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Same issue guys

Same Issue. Checking with react-native-modal
Edit: Working with React Native Navigation's Overlay

same issue

same issue

same issue, any fix?

any update?

same

any workaround for this issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manjeet-dobble picture manjeet-dobble  路  5Comments

nhcuong95 picture nhcuong95  路  5Comments

MattJLeach picture MattJLeach  路  5Comments

dungnguyen10989 picture dungnguyen10989  路  3Comments

RetroPronghorn picture RetroPronghorn  路  3Comments