gokcan/react-shimmer

TypeScript error: JSX element type 'Image' does not have any construct or call signatures ts(2604)

DanielRuf opened this issue · 3 comments

Not yet sure why this happens but it seems the current TypeScript version complains about the Image component.

Similar case in a different library: DylanVann/react-native-fast-image#646

Not sure if this is caused by this in the library:

grafik

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'