Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

触摸崩溃 #24

Open
liupengandroid opened this issue Oct 15, 2021 · 2 comments
Open

触摸崩溃 #24

liupengandroid opened this issue Oct 15, 2021 · 2 comments

Comments

@liupengandroid
Copy link

liupengandroid commented Oct 15, 2021

Android , 触摸Modal就崩溃
RnVersion 0.65.1
java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.uimanager.events.EventDispatcher.dispatchEvent(com.facebook.react.uimanager.events.Event)' on a null object reference
at com.facebook.react.uimanager.JSTouchDispatcher.handleTouchEvent(JSTouchDispatcher.java:86)
at com.facebook.react.views.modal.ReactModalHostView$DialogRootViewGroup.onInterceptTouchEvent(ReactModalHostView.java:521)

@AndreyPatseiko
Copy link

AndreyPatseiko commented Oct 18, 2021

The same problem.
In RN 0.65.1.

Crash report from FB:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'void
com.facebook.react.uimanager.events.EventDispatcher.dispatchEvent(com.facebook.react.uimanager.events.Event)' on a null object reference
at com.facebook.react.uimanager.JSTouchDispatcher.handleTouchEvent(JSTouchDispatcher.java:86)
at com.facebook.react.views.modal.ReactModalHostView$DialogRootViewGroup.onInterceptTouchEvent(ReactModalHostView.java:521)

I switched to default RN modal. It support TabBar settings now - https://reactnative.dev/docs/modal#statusbartranslucent-android.

@congshengwu
Copy link

congshengwu commented Oct 22, 2021

@AndreyPatseiko
You are right, the default RN modal has supported statusBarTranslucent.
The issue I met in this library is the onPress event cannot be triggered on the modal on RN 0.66.1.
And I switched to default RN modal, it works well.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants