LunatiqueCoder / react-native-media-console

A React Native video player. Built with TypeScript ❤️
MIT License
194 stars 29 forks source link

Property 'source' does not exist on type 'IntrinsicAttributes & VideoPlayerProps'.ts(2322) #5

Closed dklymenk closed 2 years ago

dklymenk commented 2 years ago

Hello and thank you for this great library.

I couldn't exactly figure out why, but typescript complains at me for using the source prop.

DeepinScreenshot_select-area_20220519004825

Here is the line that causes the issue for me, in case it helps: https://github.com/dklymenk/warcrime/blob/f1ead22ec05eb2d48f3419c4095bdc136196d7ed/app/screens/report/report-screen.tsx#L112

LunatiqueCoder commented 2 years ago

Hello @dklymenk.

Thank you for pointing out this issue. Will check it as soon as possible.

dklymenk commented 2 years ago

It turned out that the issue is not related to this library. But I simply had to install the types package for underlying library. Installing @types/react-native-video fixes the issue.