EXPERIENCE/MOBILE | ReactNative(20)
-
[RN] react-native-docview 적용하기
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. => MainApplication.java from : import com.philipphecht.RNDocViewerPackage; To: import com.reactlibrary.RNReactNativeDocViewerPackage; from : new RNDocViewerPackage() to : new RNReactNativeDocViewerPackage()
2019.05.23 -
[RN] RNW : onShouldStartLoadWithRequest
처음 호출한 URL에서 다시 Redirect하는 경우에, 사용하면 navState를 정확히 파악할 수 있다. => BackHandler 사용 시, canGoBack의 결과에 따라 앱을 종료하는 로직을 사용할 수 있음. onShouldStartLoadWithRequest Function that allows custom handling of any web view requests. Return true from the function to continue loading the request and false to stop loading. On Android, is not called on the first load. TypeRequired function No Example: { // Only allow ..
2019.05.22 -
[RN] react native webview cache clear 2019.05.22
-
[RN] Could not resolve project :react-native-gesture-handler.
':app@debug/compileClasspath': Could not resolve project :react-native-gesture-handler. STEP1) npm install --save react-native-gesture-handler STEP2) react-native link react-native-gesture-handler info iOS module "react-native-gesture-handler" is already linked info Android module "react-native-gesture-handler" is already linked https://reactnavigation.org/docs/en/getting-started.html#installati..
2019.05.22 -
[RN] Invariant Violation: requireNativeComponents:
"RNCWebView" was not found in the UIManger. step1. $ react-native link react-native-webview step2. Android - react-native-webview version >=6.X.X: Please make sure AndroidX is enabled in your project by editting android/gradle.properties and adding 2 lines: android.useAndroidX=true android.enableJetifier=true https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting..
2019.05.22 -
[RN] React-Native Start : 1 2019.05.21