Procházet zdrojové kódy

Rename from ir-webview to react-native-webview

Jamon Holmgren před 6 roky
rodič
revize
eb99f1e4b3
3 změnil soubory, kde provedl 12 přidání a 13 odebrání
  1. 8
    8
      README.md
  2. 2
    3
      WebTest/package.json
  3. 2
    2
      package.json

+ 8
- 8
README.md Zobrazit soubor

@@ -1,6 +1,6 @@
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 5
 ## Platforms Supported
6 6
 
@@ -11,18 +11,18 @@
11 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 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 22
 ```jsx
23 23
 import React, { Component } from 'react'
24 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 28
 class MyWebComponent extends Component {
@@ -41,9 +41,9 @@ Additional properties are supported and will be added here; for now, refer to th
41 41
 
42 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 48
 ## Contributing
49 49
 

+ 2
- 3
WebTest/package.json Zobrazit soubor

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

+ 2
- 2
package.json Zobrazit soubor

@@ -1,6 +1,6 @@
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 4
   "main": "index.js",
5 5
   "authors": [
6 6
     "Jamon Holmgren <jamon@infinite.red>"