
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View, ScrollView, Image } from 'react-native';
export default function App() {
return (
<ScrollView style={styles.container}>
<View style={styles.textContainer}>
<Text style={styles.textStyle}>나만의 꿀팁</Text>
<Image
source={{uri:"https://storage.googleapis.com/sparta-image.appspot.com/lecture/main.png"}}
resizeMode={"center"}
style={styles.imageStyle}
/>
</View>
<StatusBar style="light" />
</ScrollView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
textContainer: {
borderRadius:10,
margin:20,
padding:0,
},
textStyle: {
fontSize : 30,
fontWeight : "800",
textAlign : 'left',
marginTop : 20,
}
});
스마트폰에서 이미지가 안나오네요
