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

[BUG] PlatformColor doesn't seem to be working correctly with Views & Text but works perfectly with the navigation ? #79

Open
a-eid opened this issue Jan 11, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@a-eid
Copy link

a-eid commented Jan 11, 2022

PlatformColor doesn't seem to be working correctly on android as it does on ios.
it requires app reload.

pc-template.mp4

To Reproduce

  • add this code & toggle dark/light mode in your app
      <Text
        style={{
          color: platformNativeColor(PlatformColorsIOS.label, PlatformColorsAndroid.primaryText),
          fontSize: 30,
        }}
      >
        here we goo
      </Text>

Expected behavior
android should work, same as IOS.

Screenshots
check the video above.

Additional context
this could be & most likely is an issue with react native it self.
but I'm wondering why does it work perfectly with navigation constructs and not with react native's elements.

@a-eid a-eid added the bug Something isn't working label Jan 11, 2022
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

2 participants