250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- iOS 개발자
- 비전공자
- 비전공 개발자
- xcode
- MAC
- jQuery
- react
- 백엔드
- 자바스크립트
- ipad
- 풀스택
- IOS
- SWIFT
- HTML
- Animation
- image
- front-end
- hover
- iPhone
- CSS
- html5
- keyframes
- 애니메이션
- css3
- 프론트엔드
- php
- javascript
- button
- effect
- 개발자
Archives
- Today
- Total
비전공자 개발일기
React Native Webview 본문
728x90
SMALL
import React from "react";
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { WebView } from "react-native-webview";
const MYLINK = "https://relaxed-turing-e7ea57.netlify.app";
export default function App() {
return (
<View style={styles.container}>
<Text style={styles.text}>WEBVIEW</Text>
<View style={{ width: "100%", height: "100%" }}>
<WebView
source={{ url: MYLINK }}
onLoad={console.log("Looooood!")}
></WebView>
</View>
<StatusBar style="auto"></StatusBar>
</View>
);
}
const styles = StyleSheet.create({
container: {
marginTop: 40,
padding: 30,
flex: 1,
alignItems: "center",
justifyContent: "center",
borderColor: "#fff",
borderWidth: 2,
borderStyle: "solid",
},
text: {
fontSize: 30,
marginBottom: 20,
fontWeight: "700",
textAlign: "center",
color: "#2598eb",
},
});
728x90
LIST
'React & React Native' 카테고리의 다른 글
React Native Login & Basic Page (0) | 2022.02.27 |
---|---|
React Native Webview2 (0) | 2022.02.14 |
React Native Pressable (0) | 2022.02.06 |
React & React Native Props (0) | 2022.01.13 |
React & React Native Component (0) | 2022.01.11 |