Browse Source

Rename from ir-webview to react-native-webview

Jamon Holmgren 6 years ago
parent
commit
eb99f1e4b3
3 changed files with 12 additions and 13 deletions
  1. 8
    8
      README.md
  2. 2
    3
      WebTest/package.json
  3. 2
    2
      package.json

+ 8
- 8
README.md View File

1
-# Infinite Red WebView - a Modern, Cross-Platform WebView for React Native
1
+# React Native WebView - a Modern, Cross-Platform WebView for React Native
2
 
2
 
3
-**Infinite Red WebView** is a modern, well-supported, and cross-platform (even Windows!) WebView for React Native. It is intended to be a replacement for the built-in WebView (which may be [removed from core](https://github.com/react-native-community/discussions-and-proposals/pull/3)).
3
+**React Native WebView** is a modern, well-supported, and cross-platform (even Windows!) WebView for React Native. It is intended to be a replacement for the built-in WebView (which may be [removed from core](https://github.com/react-native-community/discussions-and-proposals/pull/3)).
4
 
4
 
5
 ## Platforms Supported
5
 ## Platforms Supported
6
 
6
 
11
 ## Installation
11
 ## Installation
12
 
12
 
13
 ```
13
 ```
14
-$ npm install --save ir-webview
15
-$ react-native link ir-webview
14
+$ npm install --save react-native-webview
15
+$ react-native link react-native-webview
16
 ```
16
 ```
17
 
17
 
18
 ## Usage
18
 ## Usage
19
 
19
 
20
-Import the `WebView` component from `ir-webview` and use it like so:
20
+Import the `WebView` component from `react-native-webview` and use it like so:
21
 
21
 
22
 ```jsx
22
 ```jsx
23
 import React, { Component } from 'react'
23
 import React, { Component } from 'react'
24
 import { StyleSheet, Text, View } from 'react-native'
24
 import { StyleSheet, Text, View } from 'react-native'
25
-import { WebView } from 'ir-webview'
25
+import { WebView } from 'react-native-webview'
26
 
26
 
27
 // ...
27
 // ...
28
 class MyWebComponent extends Component {
28
 class MyWebComponent extends Component {
41
 
41
 
42
 [https://facebook.github.io/react-native/docs/webview](https://facebook.github.io/react-native/docs/webview)
42
 [https://facebook.github.io/react-native/docs/webview](https://facebook.github.io/react-native/docs/webview)
43
 
43
 
44
-## Migrate from React Native core WebView to Infinite Red WebView
44
+## Migrate from React Native core WebView to React Native WebView
45
 
45
 
46
-Simply install Infinite Red WebView and then use it in place of the core WebView. Their APIs are currently identical.
46
+Simply install React Native WebView and then use it in place of the core WebView. Their APIs are currently identical.
47
 
47
 
48
 ## Contributing
48
 ## Contributing
49
 
49
 

+ 2
- 3
WebTest/package.json View File

7
     "test": "jest"
7
     "test": "jest"
8
   },
8
   },
9
   "dependencies": {
9
   "dependencies": {
10
-    "ir-webview": "../",
11
     "react": "16.4.1",
10
     "react": "16.4.1",
12
     "react-native": "0.56.0"
11
     "react-native": "0.56.0"
13
   },
12
   },
14
   "devDependencies": {
13
   "devDependencies": {
15
     "@babel/core": "^7.0.0-beta",
14
     "@babel/core": "^7.0.0-beta",
16
     "babel-core": "^7.0.0-beta",
15
     "babel-core": "^7.0.0-beta",
17
-    "babel-preset-react-native": "5.0.2",
18
     "babel-jest": "23.4.2",
16
     "babel-jest": "23.4.2",
17
+    "babel-preset-react-native": "5.0.2",
19
     "detox": "^8.1.4",
18
     "detox": "^8.1.4",
20
     "jest": "23.5.0",
19
     "jest": "23.5.0",
21
     "react-test-renderer": "16.4.1"
20
     "react-test-renderer": "16.4.1"
34
     },
33
     },
35
     "test-runner": "jest"
34
     "test-runner": "jest"
36
   }
35
   }
37
-}
36
+}

+ 2
- 2
package.json View File

1
 {
1
 {
2
-  "name": "ir-webview",
3
-  "description": "React Native WebView component for iOS + Android",
2
+  "name": "react-native-webview",
3
+  "description": "React Native WebView component for iOS, Android, and Windows 10",
4
   "main": "index.js",
4
   "main": "index.js",
5
   "authors": [
5
   "authors": [
6
     "Jamon Holmgren <jamon@infinite.red>"
6
     "Jamon Holmgren <jamon@infinite.red>"