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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
NativeWind & v2.0.0 #76
Comments
Responsive classes already supported? |
Would be great if this package could play nicely with Typescript React Native setup |
@aboahab They are already supported but not documented, added to the list 馃憤
https://tailwindcss-react-native.vercel.app/compilation/babel#typescript @apetta Docs for this are a bit hidden, added to the list 馃憤 |
Congratulations! I feel lucky to find your package! I just searched on NPM and noticed your recent updates and immediately downloaded. Your docs are clear and helpful, too! 鈿涳笍 |
Thanks @marklawlor, this package is really great. Would be nice to have a search feature in the new docs to fish out the hidden info like that (maybe fuse.js ?) |
Good point. I should qualifiy for the open-source algolia account. I'll set that up once I switch domains 馃憤 |
Hi, thank you for this awesome package. I'm just curious, is the JIT feature has been enabled? |
@arryanggaputra This library has a peer dependency of Tailwind CSS 3+. Tailwind 3 is JIT only and removes the concept of pruning. |
Hi, there! Are there be a migration guide from v1 to v2? |
@p4bl1t0 I've updated the original post with a link to the preview docs Migration guide is here https://tailwindcss-react-native-git-next-mwlawlor.vercel.app/guides/tailwindcss-react-native For most people it should just be removing |
Babel plugin name should be replaced with the new name in the docs. Took me 5 minutes to find out what's the problem :) |
I'm looking at releasing NativeWind sometime this week as a soft release. It's missing some minor features like the In other news, the docs have moved to https://www.nativewind.dev/ and finally have a search feature 馃帀 |
Hey there thanks for this great package any plans to support other <View>
{items.map( item => <Text key={item} className="mt-4 first:mt-0">{item}</Text> )}
</View> |
I'll add support for them after <View className="space-y-4">
{items.map( item => <Text key={item}>{item}</Text> )}
</View> |
@marklawlor unfortunately my real case is a bit diffrent, I have a Example <FlatList
data={DATA}
renderItem={ item => <Text key={item}>{item}</Text>}
/> With the previous code snippet, |
@mohammed-elhaouari in that cases you use styled() api: |
Thanks @p4bl1t0 I will try this and see if it works properly. |
You're welcome. I used with react-native-elements and works like charm |
super pumped to have found this project. we are huge fans of tailwind over at https://github.com/calcom/cal.com and we're looking to launch an open source mobile app next year, preferably in RN + tailwind. @marklawlor do you think nativewind will be production ready by Q1 2023? how does funding/interest/resources look like? We'd love to become a gold sponsor as soon as we start implementing and as we'd heavily rely on this package to work and get continuous support |
The I need to experiment a bit more with FlatList (and other renderProp based components) to find something that works without breaking compatibility between Native & Web. |
Glad you like it 馃挴 I expect a production version "soon". NativeWind is rewrite of The last thing holding up 2.0.0 is platform themes/scaling functions, which might include a breaking change. I'm just following up on another round of feedback before I commit to the API. NativeWind currently only has me as a single contributor and I'm developing it for my own startup. Funding is minimal and just through Github sponsors. A still have a lot of plans for this library so I'll be working on it well into the future. |
A new version of This version introduce an improved API for setting per device theme functions https://www.nativewind.dev/customization/theme#per-device-theme-values I'm going to wait 1-2 weeks for any last bug reports before releasing the full version, during which I'll be focusing on improving the documentation & adding more examples. |
From this point onwards I'll be sticking to semver for future releases. |
This is mostly an issue for myself. to track my progress on v2.0.0.
v2.0.0 started as a small cleanup but has grown into a large refactor fixing many underlying issues. It will also be released under a new name NativeWind 馃帀
The new (in progress) documentation can be found here: https://www.nativewind.dev
A migration guide can be found here: https://www.nativewind.dev/guides/tailwindcss-react-native
Features
Testing
Website
TaiwindProvider
from setupRepo
Post 2.0
The text was updated successfully, but these errors were encountered: