-
Notifications
You must be signed in to change notification settings - Fork 53
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 support style as array #28
Comments
same problem |
Would love to be able to use arrays with this which would allow for react-native-tailwind to work. |
+1 |
0.2.3 released to support arrays (thanks @puremana) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When wrapping a FontAwesomeIcon component with a library like Styled-Components, a style array is passed to the underlying component instead of an object. This causes a YellowBox warning and also the passed styles do not take effect.
I've experimented and fixed this by calling StyleSheet.flatten on the style within the FontAwesomeIcon component.
Is there any objection/limitation to making this modification in the library? If not, I'll be happy to submit a PR.
The text was updated successfully, but these errors were encountered: