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

🐛[android] navigation problem #1406

Closed
3 of 4 tasks
baesumin opened this issue Jan 1, 2023 · 7 comments
Closed
3 of 4 tasks

🐛[android] navigation problem #1406

baesumin opened this issue Jan 1, 2023 · 7 comments
Labels
🐛 bug Something isn't working

Comments

@baesumin
Copy link

baesumin commented Jan 1, 2023

What were you trying to do?

I come back from another screen and try to use the camera again.

Reproduceable Code

No response

What happened instead?

I see only a black screen. But the camera function works.
(If i take a picture on a black screen, the actual screen is taken.)

Relevant log output

No response

Device

s21+ ultra

VisionCamera Version

2.15.2

Additional information

@baesumin baesumin added the 🐛 bug Something isn't working label Jan 1, 2023
@ramssutharr
Copy link

having same issue. are you able to resolved it ?

@MatBdry
Copy link

MatBdry commented Jan 9, 2023

Hi !

I think the problem will be fix in V3 (#1251).

As far I'm concerned, I "fixed" the issue by adding a condition on isActive, depending on isFocused props on react-navigation. It forces the Camera to be reload. It's not ideal, but it's better than nothing until V3 is ready :-)

@baesumin
Copy link
Author

baesumin commented Jan 10, 2023

Hi !

I think the problem will be fix in V3 (#1251).

As far I'm concerned, I "fixed" the issue by adding a condition on isActive, depending on isFocused props on react-navigation. It forces the Camera to be reload. It's not ideal, but it's better than nothing until V3 is ready :-)

thanks! :)

@muzhaqi16
Copy link

I am still having this issue on Android with react-nativgation. I am using the isFocused hook but it still persists.

@baesumin
Copy link
Author

I am still having this issue on Android with react-nativgation. I am using the isFocused hook but it still persists.

i resolved it.

const isfocused = useIsFocused();
<Camera isActive={isfocused} .../>

@dunapanta
Copy link

dunapanta commented Mar 10, 2023

fiFor me it works with @baesumin solution but also if I use useNavigation hook instead of navigation

const {navigate} = useNavigation();

onPress={() =>navigate('ScreenName', {
          prop
        })
}

@jasbirrajrana
Copy link

still having this issue I am using the isFocused hook but it still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants