TypeScript error: JSX element type 'Image' does not have any construct or call signatures ts(2604)
DanielRuf opened this issue · 3 comments
DanielRuf commented
Not yet sure why this happens but it seems the current TypeScript version complains about the Image
component.
DanielRuf commented
Similar case in a different library: DylanVann/react-native-fast-image#646
DanielRuf commented
DanielRuf commented
Switching to this seems to work:
import { Image } from 'react-shimmer/src';
Nvm, it seems the readme on npmjs.com/react-shimmer is outdated as there this is used:
import Image, { Shimmer } from 'react-shimmer'