Skip to content
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

TypeError: undefined is not an object (evaluating 'icon.icon') #28

Open
solonifer opened this issue Mar 18, 2019 · 4 comments
Open

TypeError: undefined is not an object (evaluating 'icon.icon') #28

solonifer opened this issue Mar 18, 2019 · 4 comments

Comments

@solonifer
Copy link

solonifer commented Mar 18, 2019

Description

V1 worked perfect, after upgrading to V2 this error occurred.

Environment

  • What react-native-fontawesome-pro version are you using?
    2.1.0
  • What react-native version are you using?
    0.57.8
  • Does the issue occur on IOS, Android or Both?
    IOS, not tested on Android

"@fortawesome/free-brands-svg-icons": "^5.7.2",
"@fortawesome/pro-light-svg-icons": "^5.7.2",
"@fortawesome/pro-regular-svg-icons": "^5.7.2",
"@fortawesome/pro-solid-svg-icons": "^5.7.2",

@glasje
Copy link

glasje commented Mar 25, 2019

you must initialize the object in the app.js
I had the same error and it was because I omit what the package documentation says

image

@Nitingadhiya
Copy link

Thanks its work for me.

@Paul-Lategan
Copy link

You're a legend, thanks!

@AhmedRazaTester
Copy link

AhmedRazaTester commented Oct 6, 2020

Add this at the top of your app.js

import { configureFontAwesomePro } from "react-native-fontawesome-pro";
configureFontAwesomePro();

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants