2
React 네이티브를 사용하여 네이티브 개발에 참여하고 Android 응용 프로그램을 개발하는 것을 처음 접했습니다. 프로필 페이지에서 이름과 연락처 세부 정보를 아래에 표시하려고합니다.uri 이미지가 실제 기본 이미지보기로 렌더링되지 않습니다.
return(
<View style={{flex: 1}}>
<ScrollView contentContainerStyle={styles.contentContainer}>
<View style={styles.card}>
<View style={styles.horizontalCard}>
<Image
style={{width: 34, height: 34}}
source={{uri:
'http://test.abc.com/appdummyurl/images/mobile.png'}}
/>
<Text style={styles.header}>{this.state.user_email}</Text>
</View>
<View style={styles.horizontalCard}>
<Image
style={{width: 34, height: 34}}
source={{uri:
'http://test.abc.com/appdummyurl/images/images/profile.png'}}
/>
<Text style={styles.header}>{this.state.user_no}</Text>
</View>
</View>
</ScrollView>
<TouchableOpacity onPress={this.logOut}>
<View style={styles.BottonCard}>
<Text style={styles.Btntext}>LOG OUT</Text>
</View>
</TouchableOpacity>
</View>
);
모든 그것의 빈 공간을 보여주는 첫 번째 이미지는 첫 번째 이미지보기로로드를 제외하고는 두 번째 이미지를 위해 잘 작동한다. 그것을 이해하도록 도와주세요.
또한 이미지 URL 대신 변수를 사용할 수있는 방법을 알려주세요.
브라우저에서 테스트 할 때 두 가지 모두 잘 작동합니까? –
예 @SandraK. 그것의 브라우저에서 작동 –