Comments (2)
Yes, this is related to this issue #2 and needs documentation.
If you have a conditional className, don't remove the className attribute simply pass it an empty string (undefined & null also work in 0.0.17
. For every className attribute a hook is inserted - you need to keep the attribute there so the hook remains.
There are some other scenarios that you'll encounter (eg looping over lists) that face a similar problem. I'll have the documentation up for them soon
from nativewind.
This was significantly improved in 0.0.19
. I'm going to close this and track the documentation under #2
from nativewind.
Related Issues (20)
- Intelligent prompt only with className propName
- Error generating build android Expo(Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information)
- [V4] Conditionally rendered elements in a component don't receive styles properly
- [V4] jsxImportSource was not set to 'nativewind'.
- react native CLI - nativewind configuration for IOS APP HOT 1
- [v4] group-{modifier} does not respect "disabled" on web HOT 2
- Classes not applying after rebuild HOT 1
- v4: next.js - Cannot access displayName.toString on the server
- Button bug HOT 2
- spin animation not works
- nativewind v4 not working on vite
- Error: polyfill:environment-variables HOT 1
- Error occurred when used in conjunction with some UI libraries.
- [V4] error building in expo HOT 2
- Difference in Utility class generation with data-* HOT 1
- [V4] Missing support for transforming third party libraries
- Platform specific styles not applying
- stuck on rebuilding... done HOT 1
- text color
- [v4] Styles not being applied - Expo Router
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 nativewind.