Closed wschurman closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/expoio/vector-icons/ca1auq7fi
✅ Preview: https://vector-icons-git-wschurman-fix-ts-prop.expoio.now.sh
Why
The types here are incomplete for the current version documented at https://docs.expo.io/guides/icons/, and need to be sync'ed with the ones for
react-native-vector-icons
: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native-vector-icons/Icon.d.tsSpecifically, when using these in an app recently, I needed the
backgroundColor
prop onIonicons.Button
and needed to use a/* @ts-expect-error */
.How
Copy some defs from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native-vector-icons/Icon.d.ts manually.
Test Plan
yarn tsc