Skip to content

v4: remapProps documentation, should I use it for className to style mapping? #601

Closed Answered by marklawlor
johnf asked this question in Q&A
Discussion options

You must be logged in to vote

Yep that was the issue. I decided to enable the interop for all native modules, so it should work in 4.0.4. However, react-native-vector-icons sets a default color, so you will need to either:

  • Use `remapProps(FontAwesome6Pro, { "className": "style" })
  • Or use the important modifier !text-pink-300

Either method will work, as they increase the style specificity

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@johnf
Comment options

@marklawlor
Comment options

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