You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Getting a TS Syntax error when using a string name in icon for regular style in React Native + Expo.
Reproducible test case
import { faWhale } from '@fortawesome/pro-regular-svg-icons/faWhale';
library.add(faWhale);
// TS2322: Type "fa-regular fa-whale" is not assignable to type IconProp
// index.d.ts(9, 3): The expected type comes from property icon which is declared here on type IntrinsicAttributes & Props
<FontAwesomeIcon icon={'fa-regular fa-whale'} />
Expected behavior
Following the guidelines here, this should technically work.
Describe the bug
Getting a TS Syntax error when using a string name in icon for regular style in React Native + Expo.
Reproducible test case
Expected behavior
Following the guidelines here, this should technically work.
Running RN on Expo:
The text was updated successfully, but these errors were encountered: