Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6211

JSX element type 'HTMLImageElement' is not a constructor function for JSX elements

$
0
0
I am trying an example with React Native and Typescript and for the following code: 

<Image
        style={{
          width: 51,
          height: 51,
          resizeMode: 'contain',
        }}
        source={{ uri: portretPhoto }}
        style={styles.uploadedImage}
        resizeMode="contain"
      />

I get error: JSX element type 'HTMLImageElement' is not a constructor function for JSX elements. Type 'HTMLImageElement' is missing the following properties from type 'ElementClass': render, context, setState, forceUpdate, and 3 more.

How do I fix it?


Viewing all articles
Browse latest Browse all 6211

Trending Articles