react-native-webview 설치
npm install --save react-native-webview

const windowWidth = Dimensions.get('window').width;
const windowHeight = Dimensions.get('window').height;
<SafeAreaView style={styles.container}>
<WebView
style={styles.webview}
source={{uri: 'https://naver.com'}}
/>
</SafeAreaView>
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'space-between',
},
webview: {
flex: 1,
width: windowWidth,
height: windowHeight,
},
'Mobile' 카테고리의 다른 글
| [React-Native] expo-cli 환경 구축 (eas-cli) (0) | 2024.02.27 |
|---|---|
| .aab -> .apk 변환 (2) | 2024.02.22 |
| [React-native] 절대 경로 설정 (expo) (0) | 2024.02.20 |
| [React-Native] expo-cli 환경 구축 (0) | 2024.02.20 |
| [React-Native] react-native-cli 환경 구축 (0) | 2024.02.20 |