Reputation: 113
don't know if i might have missed the answer somewhere, but i can not figure this out. I have followed this tutorial step by step
I have all the latest versions of everything installed as this video was posed on May 2020.
When he gets to adding images at about 56:43 my image does not show up.
Here is my code:
import { StatusBar } from "expo-status-bar";
import React from "react";
import { StyleSheet, Text, View, Image } from "react-native";
export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<Image
source={{
width: 200,
height: 300,
uri: "https://picsum.photos/200/300",
}}
/>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
And the result is
I tried looking for different solutions but cant find any, any help would be great as i would love to learn react-native
Thanks
Upvotes: 0
Views: 315
Reputation: 29
In your print screen you can see that the wifi icon on top has an 'x'.
It's probably the problem, your simulator cant connect to the internet to show the linked image.
Upvotes: 1