Skip to content
Discussion options

You must be logged in to vote

https://www.nativewind.dev/guides/custom-components#passing-styles-to-components

Unless third-party component libraries (like RNE) explicitly implement the support for it, className does not get passed down to the child native component. RNE is just a wrapper over the actual native components. You can refer to the source file of each component to understand better.

To support Nativewind, we need to explicitly pass down any additional props (like className) to the child component. This needs to be added as a new enhancement PR. You can refer to https://www.nativewind.dev/v4/guides/third-party-components for more details.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@theianmay
Comment options

Answer selected by theianmay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants