|
@@ -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
|
|