Coder Social home page Coder Social logo

Dark Mode? about zeego HOT 19 CLOSED

michaelkremenetsky avatar michaelkremenetsky commented on August 14, 2024
Dark Mode?

from zeego.

Comments (19)

Estevete avatar Estevete commented on August 14, 2024 1

@nandorojo I am facing the issue on Android. Also with the Alert component. I am tracking the issue here expo/expo#27584

from zeego.

timothyerwin avatar timothyerwin commented on August 14, 2024

I'm using it and dark mode is working fine for me. I don't think I used any setting.

from zeego.

timothyerwin avatar timothyerwin commented on August 14, 2024

if you are using a native app make sure your app also works in dark mode as well

from zeego.

nandorojo avatar nandorojo commented on August 14, 2024

@timothyerwin can you show a screenshot of it working? i didn’t think the upstream ios library supported dark mode

from zeego.

timothyerwin avatar timothyerwin commented on August 14, 2024

IMG_4899

from zeego.

timothyerwin avatar timothyerwin commented on August 14, 2024

the upstream ios library is built on an actual ios component, so yeah, apple supports that

from zeego.

nandorojo avatar nandorojo commented on August 14, 2024

ah yeah you’re right, works on beatgig too

from zeego.

michaelkremenetsky avatar michaelkremenetsky commented on August 14, 2024

weird that it doesn't work for me on expo dev client, I guess I'll keep playing with it, although I was also hoping there would be some way to toggle it at the app level since my app has its own theme settings that allow you to override the system ones.

from zeego.

michaelkremenetsky avatar michaelkremenetsky commented on August 14, 2024

I figured it out. I fixed it by installing expo-system-ui

from zeego.

nandorojo avatar nandorojo commented on August 14, 2024

good to know, we could add this to the docs

from zeego.

Darren120 avatar Darren120 commented on August 14, 2024

I figured it out. I fixed it by installing expo-system-ui

Hey I have installed expo-system-ui but unable to toggle dark mode for the dropdown. I tried setting the background

  await SystemUI.setBackgroundColorAsync(dark ? "black" : "white");

but the dropdown still light :/
how did u do it?

from zeego.

nandorojo avatar nandorojo commented on August 14, 2024

i added userInterfaceStyle: ‘dark’ to my app config since we only do dark mode. but you could try setting it to automatic

from zeego.

Darren120 avatar Darren120 commented on August 14, 2024

i added userInterfaceStyle: ‘dark’ to my app config since we only do dark mode. but you could try setting it to automatic

Thanks, but I thought @michaelkremenetsky was able to toggle it in app via expo system ui

from zeego.

michaelkremenetsky avatar michaelkremenetsky commented on August 14, 2024

Unfortunately, the only way I was able to get it toggle was by changing the system theme in settings. expo-system-ui just made it so it would follow the system theme.

from zeego.

michaelkremenetsky avatar michaelkremenetsky commented on August 14, 2024

If anyone finds a way to toggle it in-app I would love to know, I wanted to add in-app theme settings but couldn't find a way to the toggle the zeego components.

from zeego.

miafoo avatar miafoo commented on August 14, 2024

I've got an app that supports multiple themes. If a user has selected a darker theme but their iOS appearance is light it will also render the context menus as light variants rather than dark versions which is not very nice.

Is there any way to explicitly set the appearance to either light or dark which overrides the OS level appearance?

Edit: As a workaround I've used this package, which seems to work great so far: https://www.npmjs.com/package/react-native-override-color-scheme

from zeego.

michaelkremenetsky avatar michaelkremenetsky commented on August 14, 2024

Thank you the workaround is exactly what I was looking for, I don't think theirs anything built into the library itself though

from zeego.

nandorojo avatar nandorojo commented on August 14, 2024

Hey guys, I'm going to close this out. I'd love to add this to the docs though, can anyone send a PR for dark mode that mentions the override color scheme library? Thank you!

CC @miafoo @michaelkremenetsky

from zeego.

michaelkremenetsky avatar michaelkremenetsky commented on August 14, 2024

@nandorojo Submitted a PR #62

from zeego.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.