-
Notifications
You must be signed in to change notification settings - Fork 3
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with tailwind styling approaches #4
Comments
Thank you for your issue. It seems legit. I'll take a look and try to find a solution. If you already have a solution feel free to send your PR. |
@LucasVeloz thank you for your amazing package, unfortunately it doesn't work with styled component as well. |
@MariyaAntonenko @Klin-Coders Could you test if this version is supporting? |
Hi, I just tested the latest edition with the twrnc package, and unfortunately didn't find it to be compatible. Willing to help out. |
Hi! I'll take a look and fix it. It might take a while... because I work on this in my free time. |
I was thinking in creating a fallback props, if the library doesn't get the style of the child. it appeals to the fallback index. It might resolve for you guys? @PopBot @1finedev @MariyaAntonenko |
I looked react-native-shimmer-placeholder because twrnc is working there. After taking a brief look at the code of both packages, I do think it has to do with the defaultStyles, and our issue lies within createChildensWithStyles in utils.ts. I think it's when the cssStyles are being reduced where the the twrnc styling breaks. Perhaps if we just spread the style prop and removed the reducing in createChildrensWithStyles, that might help? |
I want to thank you for this amazing package which makes creating beautiful shimmers a breeze.
I style using nativewind in react native hence i have children that might look like this
but it does not show up unless i use the style attribute.
any insight is appreciated
The text was updated successfully, but these errors were encountered: