ImageBackground Source
Learn that ImageBackground needs a source prop like Image.
Codejavascript
import React from 'react';
import { ImageBackground, Text } from 'react-native';
export default function Hero() {
return (
<ImageBackground uri="https://example.com/bg.png" style={{ flex: 1 }}>
<Text>Welcome</Text>
</ImageBackground>
);
}What is the bug in this code?