-
I was trying to use use the component with Global Import using the This is the way I'm trying to use it: But when I pass a string to the icon prop, it show's me this error: I look up the interface definition for the Props (node_modules@fortawesome\react-native-fontawesome\index.d.ts) and added a string option to the icon prop like this: export interface Props {
icon: IconProp | string;
...
} But this change is only temporary on node_modules. I don't know if this is a issue or if there is a correct way to do this. Please someone help me out! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey! |
Beta Was this translation helpful? Give feedback.
Hey!
To save changes on
node_modules
you can usepatch-package
(https://www.npmjs.com/package/patch-package) however, you should consider rising an issue/discussion in https://github.com/FortAwesome/react-native-fontawesome repository as this issue isn't related toreact-native-svg
.