# react-native-crosswalk-do

> Crosswalk's WebView for React Native on Android (0.59.8+)

Latest version **1.0.7** (published 2019-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-crosswalk-do
pnpm add react-native-crosswalk-do
yarn add react-native-crosswalk-do
bun add react-native-crosswalk-do
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-05-30 |
| First published | 2018-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 69.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 3 |
| Author | Rafayel Hovhannsiyan |
| Maintainers | rafayel |
| Keywords | react, native, react native, webview, crosswalk, xwalk, android |

## Links

- npm: https://www.npmjs.com/package/react-native-crosswalk-do
- Repository: https://github.com/RafaelHovhannisyan/react-native-crosswalk-do
- Issues: https://github.com/RafaelHovhannisyan/react-native-crosswalk-do/issues
- npm.io page: https://npm.io/package/react-native-crosswalk-do

## Dependencies (1)

- [node-wget](https://npm.io/package/node-wget.md) 0.4.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2019-05-30
- 1.0.6 — 2019-05-29
- 1.0.5 — 2019-05-29
- 1.0.4 — 2019-05-29
- 1.0.2 — 2019-05-29
- 1.0.1 — 2019-05-29
- 1.0.0 — 2019-05-29
- 0.1.0 — 2018-04-16

## README

# react-native-webview-crosswalk-do

#### Forked from [jordansexton](https://github.com/jordansexton). Not contributed for two years. Some bugs fixed and added dynamic build.gradle(which taking android compile and sdk versions from ext object)

[![npm licence](http://img.shields.io/npm/l/react-native-webview-crosswalk.svg?style=flat-square)](https://npmjs.org/package/react-native-webview-crosswalk "View this project on npm")

### Latest Dependencies

*  `react-native >=0.59.8`, `react >= 16.8.3`

### Installation

* From the root of your React Native project

```shell
npm install react-native-crosswalk-do --save

node_modules/react-native-crosswalk-do/libs/xwalk_core_library-23.53.589.4-arm.aar 
to your 
android/app/libs
```

### Include module in your Android project

* In `android/setting.gradle`

```gradle
...
include ':CrosswalkWebView', ':app'
project(':CrosswalkWebView').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-crosswalk-do')
```

### Include libs in your Android project

* In `android/build.gradle`

```gradle
...
allprojects {
    repositories {
        mavenLocal()
        jcenter()

        flatDir {          // <--- add this line
            dirs 'libs'    // <--- add this line
        }                  // <--- add this line
    }
}
```

* In `android/app/build.gradle` (I guess in latest version you don't need to add)

```gradle
...
dependencies {
  ...
  implementation (name: "xwalk_core_library-23.53.589.4-arm", ext: "aar")     // <--- add this line
  implementation project(':CrosswalkWebView')                             // <--- add this line
}
```

* Register package, sdd code into MainApplication.java:

```java
import com.rafaelhovhannisyan.react.crosswalk.webview.CrosswalkWebViewPackage;    // <--- add this line

public class MainApplication extends Application implements ReactApplication {
  ......

  @Override
  protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
        new MainReactPackage(),
        new CrosswalkWebViewPackage()    // <--- add this line
    );
  }

  ......

}
```

## License
MIT

---
_Source: https://npm.io/package/react-native-crosswalk-do · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
