Comments (19)
@nandorojo I am facing the issue on Android. Also with the Alert component. I am tracking the issue here expo/expo#27584
from zeego.
I'm using it and dark mode is working fine for me. I don't think I used any setting.
from zeego.
if you are using a native app make sure your app also works in dark mode as well
from zeego.
@timothyerwin can you show a screenshot of it working? i didn’t think the upstream ios library supported dark mode
from zeego.
from zeego.
the upstream ios library is built on an actual ios component, so yeah, apple supports that
from zeego.
ah yeah you’re right, works on beatgig too
from zeego.
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.
I figured it out. I fixed it by installing expo-system-ui
from zeego.
good to know, we could add this to the docs
from zeego.
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.
i added userInterfaceStyle: ‘dark’
to my app config since we only do dark mode. but you could try setting it to automatic
from zeego.
i added
userInterfaceStyle: ‘dark’
to my app config since we only do dark mode. but you could try setting it toautomatic
Thanks, but I thought @michaelkremenetsky was able to toggle it in app via expo system ui
from zeego.
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.
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.
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.
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.
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.
@nandorojo Submitted a PR #62
from zeego.
Related Issues (20)
- Docs menu bug on mobile HOT 2
- Error building the app (pod install fails) HOT 6
- Z-index issue on web in modal HOT 1
- V2 RFC HOT 1
- Can't install on React Native CLI HOT 4
- Ability to change menu theme on android HOT 3
- Why DropdownMenu.ItemIcon is not showing when used in a custom component? HOT 1
- Delay on ContextMenu onSelect HOT 8
- onOpenChange not firing HOT 1
- Android ContextMenu is opening to the left
- Issue when installing Zeego
- Auxiliary gets smaller every time HOT 4
- [iOS] Dropdown menu items ordered incorrectly. HOT 3
- Question: Two Previews or Two Separate Context Menus HOT 5
- Where to find icons for `androidIconName` prop HOT 6
- Question re: tapping outside a DropdownMenu
- expo-router Stack.Screen headerTitle aligned to left instead of center HOT 1
- Context menu doesn't work at all on the web HOT 1
- iOS Context Menu Ignores action Prop and Defaults to Long Press
- Prevent ContextMenu Preview from dismissing ContextMenu when pressed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zeego.