Skip to content

Commit 6a621e1

Browse files
authored
chore: Merge pull request #15 from legobeat/metamask-namespace
rename package to @metamask/react-native-webview
2 parents a1144d9 + 4ef3ddb commit 6a621e1

19 files changed

+39
-39
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# React Native WebView
22

3-
![star this repo](https://img.shields.io/github/stars/react-native-webview/react-native-webview?style=flat-square)
3+
![star this repo](https://img.shields.io/github/stars/MetaMask/react-native-webview-mm?style=flat-square)
44
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
5-
[![NPM Version](https://img.shields.io/npm/v/react-native-webview.svg?style=flat-square)](https://www.npmjs.com/package/react-native-webview)
6-
![Npm Downloads](https://img.shields.io/npm/dm/react-native-webview.svg)
5+
[![NPM Version](https://img.shields.io/npm/v/@metamask/react-native-webview.svg?style=flat-square)](https://www.npmjs.com/package/@metamask/react-native-webview)
6+
![Npm Downloads](https://img.shields.io/npm/dm/@metamask/react-native-webview.svg)
77

88
**React Native WebView** is a community maintained WebView component for React Native. It is intended to be a replacement for the built-in WebView (which was [removed from core](https://github.com/react-native-community/discussions-and-proposals/pull/3)).
99

1010
### Maintainers
1111

12-
**Many thanks to these companies** for providing us with time to work on open source.
12+
**Many thanks to these companies** for providing us with time to work on open source.
1313
Please note that maintainers spend a lot of free time working on this too so feel free to sponsor them, **it really makes a difference.**
1414

15-
- [Thibault Malbranche](https://github.com/Titozzz) ([Twitter @titozzz](https://twitter.com/titozzz)) from [Brigad](https://www.brigad.co/en-gb/about-us)
15+
- [Thibault Malbranche](https://github.com/Titozzz) ([Twitter @titozzz](https://twitter.com/titozzz)) from [Brigad](https://www.brigad.co/en-gb/about-us)
1616
[*Sponsor me* ❤️ !](https://github.com/sponsors/Titozzz)
1717

1818

@@ -26,13 +26,13 @@ Shout-out to [Jamon Holmgren](https://github.com/jamonholmgren) from [Infinite R
2626

2727
Maintaining WebView is very complex, because it is often used for many different usecases (rendering svgs, pdfs, login flows, and much more). We also support many platforms and both architecture of react-native.
2828

29-
Since WebView was extracted from React Native core, nearly 500 pull requests have been merged.
30-
Considering that we have limited time, issues will mostly serve as a discussion place for the community, while **we will prioritize reviewing and merging pull requests.**
29+
Since WebView was extracted from React Native core, nearly 500 pull requests have been merged.
30+
Considering that we have limited time, issues will mostly serve as a discussion place for the community, while **we will prioritize reviewing and merging pull requests.**
3131

3232
### Platform compatibility
3333

34-
This project is compatible with **iOS**, **Android**, **Windows** and **macOS**.
35-
This project support both **the old** (paper) **and the new architecture** (fabric).
34+
This project is compatible with **iOS**, **Android**, **Windows** and **macOS**.
35+
This project support both **the old** (paper) **and the new architecture** (fabric).
3636
This project is compatible with [expo](https://docs.expo.dev/versions/latest/sdk/webview/).
3737

3838
### Getting Started
@@ -50,7 +50,7 @@ Import the `WebView` component from `react-native-webview` and use it like so:
5050
```tsx
5151
import React, { Component } from 'react';
5252
import { StyleSheet, Text, View } from 'react-native';
53-
import { WebView } from 'react-native-webview';
53+
import { WebView } from '@metamask/react-native-webview';
5454

5555
// ...
5656
const MyWebComponent = () => {
@@ -63,11 +63,11 @@ For more, read the [API Reference](./docs/Reference.md) and [Guide](./docs/Guide
6363
### Common issues
6464

6565
- If you're getting `Invariant Violation: Native component for "RNCWebView does not exist"` it likely means you forgot to run `react-native link` or there was some error with the linking process
66-
- If you encounter a build error during the task `:app:mergeDexRelease`, you need to enable multidex support in `android/app/build.gradle` as discussed in [this issue](https://github.com/react-native-webview/react-native-webview/issues/1344#issuecomment-650544648)
66+
- If you encounter a build error during the task `:app:mergeDexRelease`, you need to enable multidex support in `android/app/build.gradle` as discussed in [this issue](https://github.com/MetaMask/react-native-webview-mm/issues/1344#issuecomment-650544648)
6767

6868
#### Contributing
6969

70-
Contributions are welcome, see [Contributing.md](https://github.com/react-native-webview/react-native-webview/blob/master/docs/Contributing.md)
70+
Contributions are welcome, see [Contributing.md](https://github.com/MetaMask/react-native-webview-mm/blob/master/docs/Contributing.md)
7171

7272
### License
7373

example/examples/Alerts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {Component} from 'react';
22
import {Text, View} from 'react-native';
33

4-
import WebView from 'react-native-webview';
4+
import WebView from '@metamask/react-native-webview';
55

66
const HTML = `
77
<!DOCTYPE html>\n

example/examples/ApplePay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {Component} from 'react';
22
import {View} from 'react-native';
33

4-
import WebView from 'react-native-webview';
4+
import WebView from '@metamask/react-native-webview';
55

66
type Props = {};
77
type State = {};

example/examples/Background.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {Component} from 'react';
22
import {Text, View} from 'react-native';
33

4-
import WebView from 'react-native-webview';
4+
import WebView from '@metamask/react-native-webview';
55

66
const HTML = `
77
<!DOCTYPE html>\n

example/examples/ClearData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react';
22
import { View, Button } from 'react-native';
33

4-
import WebView from 'react-native-webview';
4+
import WebView from '@metamask/react-native-webview';
55

66
type Props = {};
77
type State = {};

example/examples/CustomMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {Component} from 'react';
22
import {Button, Linking, Text, View} from 'react-native';
33

4-
import WebView from 'react-native-webview';
4+
import WebView from '@metamask/react-native-webview';
55

66
const HTML = `
77
<!DOCTYPE html>\n

example/examples/Downloads.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {Component} from 'react';
22
import {Alert, Platform, View} from 'react-native';
33

4-
import WebView, {FileDownload} from 'react-native-webview';
4+
import WebView, {FileDownload} from '@metamask/react-native-webview';
55

66
const HTML = `
77
<!DOCTYPE html>\n

example/examples/Injection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {Component} from 'react';
22
import {Text, View, ScrollView} from 'react-native';
33

4-
import WebView from 'react-native-webview';
4+
import WebView from '@metamask/react-native-webview';
55

66
const HTML = `
77
<!DOCTYPE html>

example/examples/LocalPageLoad.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {Component} from 'react';
22
import {View, Text, Alert, TextInput, Button} from 'react-native';
3-
import WebView from 'react-native-webview';
3+
import WebView from '@metamask/react-native-webview';
44
const localHtmlFile = require('../assets/test.html');
55

66
export default class LocalPageLoad extends Component<Props, State> {

example/examples/Messaging.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {Component} from 'react';
22
import {View, Alert, TextInput} from 'react-native';
33

4-
import WebView from 'react-native-webview';
4+
import WebView from '@metamask/react-native-webview';
55

66
const HTML = `<!DOCTYPE html>\n
77
<html>

0 commit comments

Comments
 (0)