웹뷰에서 카카오 로그인시 카카오앱으로 로그인 처리할때 입니다.
<WebView
ref={webViews}
source={{ uri: webview_url }}
useWebKit={false}
sharedCookiesEnabled
onMessage={(webViews) => onWebViewMessage(webViews)}
onNavigationStateChange={(webViews) =>
onNavigationStateChange(webViews)
}
onShouldStartLoadWithRequest={
onShouldStartLoadWithRequest
}
javaScriptEnabledAndroid={true}
allowFileAccess={true}
renderLoading={true}
mediaPlaybackRequiresUserAction={false}
setJavaScriptEnabled={false}
scalesPageToFit={true}
allowsFullscreenVideo={true}
allowsInlineMediaPlayback={true}
originWhitelist={['*']}
javaScriptEnabled={true}
userAgent="Mozilla/5.0 (Linux; Android 8.0.0; SM-G935S Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Mobile Safari/537.36"
/>
userAgent="Mozilla/5.0 (Linux; Android 8.0.0; SM-G935S Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Mobile Safari/537.36"
'웹프로그래밍 > React Native' 카테고리의 다른 글
macbook pro 개발자 저장소관리 (0) | 2023.04.20 |
---|---|
[react-native](Error) Invariant Violation: ViewPropTypes has been removed from React Native (0) | 2023.04.12 |
[react-native] ios 에서 textinput 한글분리 자모음 분리 문제해결 (0) | 2022.03.03 |
react-native-admob 어린이용 타켓팅 (0) | 2021.09.01 |
안드로이드 다크모드 해제/라이트모드 고정 (react-native android force light mode) (2) | 2021.08.31 |