-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taps inside embedded View "leak through" to underlying screens #8208
Comments
In certain instances I have had the issue where after animating to a new screen, the previous screen's background disappears and the screens are completely see-through. This also has the same "taps" issue you describe. Very difficult to reproduce, until it does, and then it's all the time. It seems for me that using I don't want to hijack your issue, but I feel like this might be the exact same issue: the previous screen still being "active" (and mounted and what's not). Seems to be the same as #8200 |
@SleeplessByte I have not yet find a conclusion on when it shows up more or less, but true, it doesn't show up always, but eventually, it does.
I'm not sure what you mean, I have the latest version installed, as it is a peer-dependency of |
You import import { enableScreens } from 'react-native-screens'
enableScreens() |
@SleeplessByte Thanks, but no success :( |
I'm out of ideas then! Sorry 😞. I hope the maintainers will be able to reproduce and fix this |
For now, I solved it like the others using props.navigation.dispatch(
CommonActions.reset({
index: 1,
routes: [
{
name: 'ConferenceScreen',
},
],
}),
); |
@fritzfr can i ask a question is it custom sdk or did you expose the microphone and other buttons like ConferenceJoined event listener ? |
@batuhansahan It's a modified SDK. It's not exposing anything other than the default one, just the view is modified. But that isn't part of this issue. |
I have the exact same issue but with WebView (10.3.1). Stack Navigator with two screens Blog and Post.
|
Looking at the issue, sounds like it's a bug with the jitsi meet SDK that's not capturing taps properly/not working with React Native's responder system, and not a bug in React Navigation itself. Sounds like you could just position another view absolutely below your jitsi component if the taps are going through as a workaround. I'm closing the issue since this is not actionable for us. |
I have been also working with react-navigation and the jitsi-meet sdk having the same problem. On Android, the navigation.reset call crashes the app. |
@cristiam86 you probably want to open another issue if you have a bug to report. Otherwise, forums and resources such as Stack Overflow might be your best bet. |
I'm having the same problem. Also with combined with jitsi, but another view wrapping around it does not work. |
@ricardodolnl It's a Jitsi SDK bug, so it should be fixed there. |
same issue. any fix? |
Current Behavior
For several days now I am trying to figure out this bug happening with an "embedded" view and random navigation happening in the background, where taps seem to "leak" through the screen. This is by far one of the weirdest, but also most interesting issues I have encountered so far.
I implemented https://github.com/skrafft/react-native-jitsi-meet in my app. It exposes a single view,
JitsiMeetView
. I implemented that view in a separate screen in my app.Now the funny stuff: Tapping icons in that exposed view leads to
react-navigation
navigating to random places in the background, as if the taps "leak through" the screen and the app does navigate to places in the background, behind the currently active screen.For example, the View has a mute button. When I tap it, I can see the App making API calls to my backend, indicating a switch in screens "behind" the current screen (which is confirmed when leaving the screen implementing
JitsiMeetView
using.goBack
. The routing history is completely different, I am in a totally different part of the app then.The screen in this video is the screen implementing said view. You can see the app making API calls, which are only happening on completely different parts of the App, and it the end, I can even escape the current screen and land on my chat screen, which again, wasn't even in the history.
Expected Behavior
The taps should be contained to the current screen.
What I've tried
pointerEvents
on the wrapper of the view..<Screen>
andenableScreens()
How to reproduce
This issue here has a very similiar (if not the same) issue with reproducible code: #8200
In general:
Have a couple of screens, and have one of them implement the linked library above.
There is also an issue in the repo of said library, many others have that issue too and it seems like the issue is in fact with react-navigation: skrafft/react-native-jitsi-meet#85
There is also an older ticket already here, but it wasn't properly filled out: #7757
I am grateful for points in any direction or where to look, as I am nowhere close to understand why this might be happening.
Your Environment
Additional Info:
Some are reporting that the issue is not occurring when rendering the relevant screen in the stack conditionally, e.g.:
See skrafft/react-native-jitsi-meet#85 (comment).
The text was updated successfully, but these errors were encountered: