react-navigation / react-navigation

Routing and navigation for your React Native apps
https://reactnavigation.org
23.3k stars 4.97k forks source link

useColorScheme is not working with fullScreenModal #11953

Open saintyusuf opened 3 weeks ago

saintyusuf commented 3 weeks ago

Current behavior

When I'm using useColorScheme from react-native, fullScreenModal's background is not changing dynamicly when I turn on/off dark mode on iPhone.

Expected behavior

It must work but it's not. But I already solved it!

I changed the fullScreenModal to containedModal and all dynamic styles are working now.

Reproduction

it's not needed in this case

Platform

Packages

Environment

package version
@react-navigation/native "^6.1.9"
@react-navigation/bottom-tabs "^6.5.11"
@react-navigation/drawer
@react-navigation/material-top-tabs
@react-navigation/stack
@react-navigation/native-stack "^6.9.17"
react-native-safe-area-context "4.6.3"
react-native-screens "~3.22.0"
react-native-gesture-handler
react-native-reanimated "~3.3.0"
react-native-tab-view
react-native-pager-view
react-native "0.72.10"
expo "~49.0.15"
node v20.10.0
npm or yarn npm: 10.2.3
github-actions[bot] commented 3 weeks ago

Couldn't find version numbers for the following packages in the issue:

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

github-actions[bot] commented 3 weeks ago

Hey @saintyusuf! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro.

The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue.

You can provide a repro using any of the following: