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 is not following the Appearance API from react-native #7872

Open
1 task done
MaxKanngard opened this issue Apr 23, 2024 · 1 comment
Open
1 task done

Android is not following the Appearance API from react-native #7872

MaxKanngard opened this issue Apr 23, 2024 · 1 comment

Comments

@MaxKanngard
Copy link

What happened?

When using setColorScheme from the Appearance coming from react-native ex: Appearance.setColorScheme('dark'). The color scheme is not getting updated according to the configs dark/light mode, if the config looks ex:

      bottomTabs: {
        options: {
          bottomTabs: {
            testID: testIDs.MAIN_BOTTOM_TABS,
            backgroundColor:{ light: '#ffffff', dark: '#0000ff' } ,
          },
        },

What was the expected behaviour?

When Appearance.setColorScheme('dark' | 'light' | null) is called the correct color should be used coming from the config.

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

Download forked project: https://github.com/MaxKanngard/react-native-navigation
Install and run playground
Open in iOS bottomTabs backgroundColor is blue.
Open in Android bottomTabs is backgroundColor NOT be blue.

When click on Setting to light bottomTabs backgroundColor will update on iOS but not on Android

In what environment did this happen?

React Native Navigation version: 7.39.1
React Native version: 0.73.3
Has Fabric (React Native's new rendering system) enabled: no
Node version: 18.18.2
Device model:
Android version:

@firasath-virtus
Copy link

firasath-virtus commented Apr 23, 2024

How to set the android navigation for .kt file
I have an issue to start the project for android react native 0.73.6 and its work fine for ios but not for android

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

No branches or pull requests

2 participants