The below code gives me the following error. What to do?
TypeError: Image constructor: 'new' is required
<Image
style={{}}
source={{
uri: 'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png',
}}
/>
Make sure you import Image from 'react-native'
import { Image } from 'react-native';
If you're getting this error from a Next.js app then make sure to add the following import statement:
import Image from 'next/image';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With