I'm new to React-Native and I'm trying to run the following code, however I keep getting this error:
Invariant Violation: View config getter callback for component
divmust be a function (receivedundefined). Make sure to start component names with a capital letter.
export default function App() {
console.log("this is a first run");
return (
<SafeAreaView style={styles.container}>
<Text>This is my first app</Text>
<TouchableOpacity onPress={() => console.log("HEYY")}>
<Image
source={{
width:200,
height:200,
uri: "https://picsum.photos/seed/picsum/200/300",
}}
/>
</TouchableOpacity>
</SafeAreaView>
);
}
Thanks for the help (: