Browse Source

fix issue of index.js

iou90 5 years ago
parent
commit
ff83d4571e
6 changed files with 7 additions and 7 deletions
  1. 2
    2
      README.md
  2. 0
    0
      README_old.md
  3. 2
    1
      demo/package.json
  4. 0
    1
      demo/yarn.lock
  5. 1
    1
      index.js
  6. 2
    2
      package.json

+ 2
- 2
README.md View File

1
 # react-native-autoheight-webview
1
 # react-native-autoheight-webview
2
-An auto height webview for React Native, or even auto width for inline html.
2
+An auto height webview for React Native, even auto width for inline html.
3
 
3
 
4
 ## Versioning
4
 ## Versioning
5
 
5
 
6
 `npm install react-native-autoheight-webview --save` (rn >= 0.57)
6
 `npm install react-native-autoheight-webview --save` (rn >= 0.57)
7
 
7
 
8
-Read [Readme.old](./Readme.old.md) for earlier version guide.
8
+Read [README_old](./README_old.md) for earlier version guide.
9
 
9
 
10
 ## usage
10
 ## usage
11
 
11
 

Readme.old.md → README_old.md View File


+ 2
- 1
demo/package.json View File

9
   "dependencies": {
9
   "dependencies": {
10
     "react": "16.6.3",
10
     "react": "16.6.3",
11
     "react-native": "0.58.4",
11
     "react-native": "0.58.4",
12
-    "react-native-autoheight-webview": "../"
12
+    "react-native-autoheight-webview": "../",
13
+    "react-native-webview": "^5.2.1"
13
   },
14
   },
14
   "devDependencies": {
15
   "devDependencies": {
15
     "babel-core": "^7.0.0-bridge.0",
16
     "babel-core": "^7.0.0-bridge.0",

+ 0
- 1
demo/yarn.lock View File

4571
   dependencies:
4571
   dependencies:
4572
     immutable "^3.8.2"
4572
     immutable "^3.8.2"
4573
     prop-types "^15.7.2"
4573
     prop-types "^15.7.2"
4574
-    react-native-webview "^5.2.1"
4575
 
4574
 
4576
 react-native-webview@^5.2.1:
4575
 react-native-webview@^5.2.1:
4577
   version "5.2.1"
4576
   version "5.2.1"

+ 1
- 1
index.js View File

1
-import AutoHeightWebView from './autoHeightWebView/AutoHeightWebView';
1
+import AutoHeightWebView from './autoHeightWebView/index';
2
 
2
 
3
 export default AutoHeightWebView;
3
 export default AutoHeightWebView;

+ 2
- 2
package.json View File

1
 {
1
 {
2
   "name": "react-native-autoheight-webview",
2
   "name": "react-native-autoheight-webview",
3
-  "version": "0.11.0",
4
-  "description": "An auto height webview for React Native",
3
+  "version": "1.0.0",
4
+  "description": "An auto height webview for React Native, even auto width for inline html",
5
   "main": "autoHeightWebView",
5
   "main": "autoHeightWebView",
6
   "files": [
6
   "files": [
7
     "index.js",
7
     "index.js",