Comments (6)
What tailwindcss
version do you have? In case you have a different version than 3.3.2 (the one we have on the template), then changing the darkMode: 'class'
to darkMode: 'media'
in the tailwind.config.js
file should solve this issue on mobile, while on web isn't going to work as expected.
from react-native-template-obytes.
I think I'm on the latest version and noticed the same. I just added the theme button from the settings screen to test it in my new home screen and find out every text and button remained white while the background turned white.
Btw thank you for the super great starter/template. I have tested some and I think this is the best. Specifically the workflow + husky section is super nice. Keep up the good work 😄👍💯🥇
from react-native-template-obytes.
Same here.
from react-native-template-obytes.
Hey @ElenaBitire thank you so much for bringing this up! It was the tailwind version issue. For everyone else getting this issue kindly downgrade your tailwind CSS to 3.3.2 from whatever version you are using and you will be good to go using the darkMode: class
in tailwind config.
from react-native-template-obytes.
What
tailwindcss
version do you have? In case you have a different version than 3.3.2 (the one we have on the template), then changing thedarkMode: 'class'
todarkMode: 'media'
in thetailwind.config.js
file should solve this issue on mobile, while on web isn't going to work as expected.
Thanks, it solved my problem
from react-native-template-obytes.
Yes, ensuring that the version is 3.3.2, not any above, solved the problem for me also.
Thank you very much.
from react-native-template-obytes.
Related Issues (20)
- How about using a expo router? HOT 1
- Can not start the app in Expo Go HOT 1
- react-native-mmkv is not supported in Expo Go! Use EAS (expoprebuild') or eject to a bare workflow instead. HOT 5
- c'est un test
- monorepo route error: .plugins[0] must be a string, object, function HOT 2
- Add Tamagui an optional UI kit HOT 2
- Web build is not working HOT 2
- using Expo AuthSession HOT 2
- pnpm android errors out with package name HOT 1
- Env Build Time HOT 5
- tailwindcss(android) rebuilding... TypeError: style.declarations.findLast is not a function HOT 2
- Loading custom fonts natively does not seem to work HOT 4
- Failed to create the native directory when running `pnpm android` HOT 5
- Add support for React Native Reusables HOT 1
- The correct way to use tailwind HOT 1
- App quit unexpectedly. HOT 1
- You attempted to import the Node standard library module "path" from "env.js" HOT 7
- Unmatched Router Bug on build for ios/android but works fine on expo go app. HOT 2
- pnpm android gives an error: A problem occurred configuring project ':expo-modules-core' -> ../25.1.8937393 did not have a source.properties file HOT 2
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 react-native-template-obytes.