Rename from ir-webview to react-native-webview
This commit is contained in:
parent
b6c10ae5df
commit
eb99f1e4b3
16
README.md
16
README.md
|
@ -1,6 +1,6 @@
|
|||
# Infinite Red WebView - a Modern, Cross-Platform WebView for React Native
|
||||
# React Native WebView - a Modern, Cross-Platform WebView for React Native
|
||||
|
||||
**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)).
|
||||
**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)).
|
||||
|
||||
## Platforms Supported
|
||||
|
||||
|
@ -11,18 +11,18 @@
|
|||
## Installation
|
||||
|
||||
```
|
||||
$ npm install --save ir-webview
|
||||
$ react-native link ir-webview
|
||||
$ npm install --save react-native-webview
|
||||
$ react-native link react-native-webview
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Import the `WebView` component from `ir-webview` and use it like so:
|
||||
Import the `WebView` component from `react-native-webview` and use it like so:
|
||||
|
||||
```jsx
|
||||
import React, { Component } from 'react'
|
||||
import { StyleSheet, Text, View } from 'react-native'
|
||||
import { WebView } from 'ir-webview'
|
||||
import { WebView } from 'react-native-webview'
|
||||
|
||||
// ...
|
||||
class MyWebComponent extends Component {
|
||||
|
@ -41,9 +41,9 @@ Additional properties are supported and will be added here; for now, refer to th
|
|||
|
||||
[https://facebook.github.io/react-native/docs/webview](https://facebook.github.io/react-native/docs/webview)
|
||||
|
||||
## Migrate from React Native core WebView to Infinite Red WebView
|
||||
## Migrate from React Native core WebView to React Native WebView
|
||||
|
||||
Simply install Infinite Red WebView and then use it in place of the core WebView. Their APIs are currently identical.
|
||||
Simply install React Native WebView and then use it in place of the core WebView. Their APIs are currently identical.
|
||||
|
||||
## Contributing
|
||||
|
||||
|
|
|
@ -7,15 +7,14 @@
|
|||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"ir-webview": "../",
|
||||
"react": "16.4.1",
|
||||
"react-native": "0.56.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0-beta",
|
||||
"babel-core": "^7.0.0-beta",
|
||||
"babel-preset-react-native": "5.0.2",
|
||||
"babel-jest": "23.4.2",
|
||||
"babel-preset-react-native": "5.0.2",
|
||||
"detox": "^8.1.4",
|
||||
"jest": "23.5.0",
|
||||
"react-test-renderer": "16.4.1"
|
||||
|
@ -34,4 +33,4 @@
|
|||
},
|
||||
"test-runner": "jest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ir-webview",
|
||||
"description": "React Native WebView component for iOS + Android",
|
||||
"name": "react-native-webview",
|
||||
"description": "React Native WebView component for iOS, Android, and Windows 10",
|
||||
"main": "index.js",
|
||||
"authors": [
|
||||
"Jamon Holmgren <jamon@infinite.red>"
|
||||
|
|
Loading…
Reference in New Issue