|
@@ -12,22 +12,7 @@ Cause of moving View.propTypes to ViewPropTypes in React Naitve 0.44 (https://gi
|
12
|
12
|
`npm install react-native-autoheight-webview@0.2.3 --save` (rn < 0.44)
|
13
|
13
|
|
14
|
14
|
## android
|
15
|
|
-1. `react-native link react-native-autoheight-webview`
|
16
|
|
-2. in MainApplication.java
|
17
|
|
-```javascript
|
18
|
|
-import com.dscj.autoheightwebview.AutoHeightWebViewPackage; // Add this
|
19
|
|
-
|
20
|
|
-public class MainApplication extends Application implements ReactApplication {
|
21
|
|
- //...
|
22
|
|
- private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
|
23
|
|
- //...
|
24
|
|
- @Override
|
25
|
|
- protected List<ReactPackage> getPackages() {
|
26
|
|
- return Arrays.<ReactPackage>asList(
|
27
|
|
- //...
|
28
|
|
- new AutoHeightWebViewPackage() // Add this
|
29
|
|
- //...
|
30
|
|
-```
|
|
15
|
+`react-native link react-native-autoheight-webview`
|
31
|
16
|
|
32
|
17
|
## showcase
|
33
|
18
|

|