-
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
Invalid prop style
of type array
supplied to FontAwesomeIcon
, expected object
#40
Comments
I have the same error. I don't get the error on every screen. My expected behavior is no warning message. The warning message shows up on iOS (11.4), not in android. |
This is a cruicial bug, because if <FontAwesomeIcon
css={`
margin-left: 14px;
`}
icon={['fal', iconName]}
size={24}
/> |
For everyone for whoom this bug is cruicial might check out might forked project - https://github.com/breeffy/react-native-svg-icons There is an added support for arrays. |
Seems like a temporary work around until a proper fix is done, it to wrap the FontAwesomeIcon component in a Fragment.
I am using styled-components and was seeing the exact issue described above. |
0.2.3 released to support arrays (thanks @puremana) |
Describe the bug
Warning message appears on simulator/console when clicking/tapping the icon when wrapped in a Touchable component
Reproducible test case
dep versions from package.json
run this file on new react native project and the error should show when you tap
Expected behavior
No warning message spam
Desktop (please complete the following information):
Additional context
Was reported on a different github repo here
FortAwesome/react-fontawesome#245
The text was updated successfully, but these errors were encountered: