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

Logo about #26

Closed
Angelk90 opened this issue Mar 22, 2022 · 1 comment
Closed

Logo about #26

Angelk90 opened this issue Mar 22, 2022 · 1 comment

Comments

@Angelk90
Copy link
Contributor

Hi @ospfranco , as you can see from the image when it is in light mode, the logo is not visible.

I tried a similar thing, but when the theme change happens it doesn't update.

let hydrate = async () => {
    const storeState = await AsyncStorage.getItem('@ui.store')
    const colorScheme = Appearance.getColorScheme()
    console.log(colorScheme)// no update
...

{
      iconImage: colorScheme === 'dark' ? Assets.SolWhiteSmall : Assets.SolBlackSmall,
      name: 'About',
      type: ItemType.CONFIGURATION,
      callback: () => {
        store.focusWidget(FocusableWidget.ABOUT)
      },
      preventClose: true,
    },


}

Schermata 2022-03-22 alle 19 12 55

@ospfranco
Copy link
Owner

ah, well, that will not work, hydrate only runs once and you cannot use hooks outside components, but this is somewhat minor, I'll take care of it another day

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

2 participants