Skip to content
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

sensitive view red box won't hide after navigate to other screens on android #39

Closed
msabaeian opened this issue Feb 5, 2022 · 2 comments

Comments

@msabaeian
Copy link

I'm using the Hide Sensitive Data (HSD) feature; everything is fine on iOS but not in android; the problem is when I navigate to another screen, the red box of HSD stays there until I reset the entire Stack or close the screen, and then It'll be disappearing.

uxcam-bug.mp4

ex: the red box of the Home tab stays there when I navigate to other screens, but when I click on Notification tab (change stack) it'll be disappear.

the correct behavior in iOS:

uxcam-iphone.mp4

Env:
"react-native": "^0.64.0",
"react": "17.0.1",
"react-native-ux-cam": "^5.3.4",
"react-navigation": "^4.4.4"

Is there any solution for this issue?

@msabaeian msabaeian changed the title sensitive views in android sensitive view red box won't hide after navigate to other screens on android Feb 5, 2022
@DFDIEGOH
Copy link

DFDIEGOH commented Feb 9, 2022

Hi @msabaeian Let me explain a little bit more about this issue. Since in React Native everything is running under the same activity, the screens are under the same stack, meaning that the screens are on top of each other.

It can be the case that if you have different screens with occluded screens and then navigate to another screen, then that second screens is going to be on top of the previous one meaning that the previous stack doesn't necessarily leaves and that is why the hidden views are still visible unless, the stack is reseted, as you mentioned.

At the moment there is no solution for this specific scenario since we need to investigate this further in order to adjust to the different ways of navigation that React Native has.

I apologize for the inconvenience but please let me know if you have further questions in this regard.

@ziga-hvalec
Copy link

Any update on this one?

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

No branches or pull requests

3 participants