Browse Source

update readme

iou90 6 years ago
parent
commit
1a774811e4
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      README.md

+ 6
- 2
README.md View File

20
 `npm install react-native-autoheight-webview@0.2.3 --save` (rn < 0.44)
20
 `npm install react-native-autoheight-webview@0.2.3 --save` (rn < 0.44)
21
 
21
 
22
 ## Android
22
 ## Android
23
-`react-native link react-native-autoheight-webview` (version 0.10.6 and below)
23
+`react-native link react-native-autoheight-webview` (version <= 0.10.6)
24
+
25
+`react-native link react-native-webview` (version >= 1.0.0)
24
 
26
 
25
 `import AutoHeightWebView from 'react-native-autoheight-webview';`
27
 `import AutoHeightWebView from 'react-native-autoheight-webview';`
26
 
28
 
27
 ## iOS
29
 ## iOS
30
+`react-native link react-native-webview` (version >= 1.0.0)
31
+
28
 `import AutoHeightWebView from 'react-native-autoheight-webview';`
32
 `import AutoHeightWebView from 'react-native-autoheight-webview';`
29
 
33
 
30
 ## showcase
34
 ## showcase
106
 ```
110
 ```
107
 
111
 
108
 ## demo
112
 ## demo
109
-You may have to copy autoHeightWebView, node_modules folders and index.js to 'demo/node_modules/react-native-autoheight-webview/', cause of installing a local package with npm will create symlink, but there is no supporting of React Native to symlink (https://github.com/facebook/watchman/issues/105).
113
+You may have to use yarn to install the dependencies of the demo and remove demo folder from demo/node_modules/react-native-autoheight-webview, cause of installing a local package with npm will create symlink, but there is no supporting of React Native to symlink (https://github.com/facebook/watchman/issues/105).