Socket
Book a DemoInstallSign in
Socket

react-native-webview-crosswalk

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-webview-crosswalk

Crosswalk's WebView for React Native on Android

Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
23
2200%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-webview-crosswalk

Crosswalk's WebView for React Native on Android.

npm version npm downloads npm licence

Installation

npm install react-native-webview-crosswalk --save

Include module in your Android project

  • In android/setting.gradle
...
include ':RNCrosswalkWebView', ':app'
project(':RNCrosswalkWebView').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview-crosswalk')
  • In android/app/build.gradle
...
dependencies {
  ...
  compile project(':RNCrosswalkWebView')
}
  • Register package in MainActivity.java
import com.jordansexton.react.crosswalk.webview.RNCrosswalkWebViewPackage;  // <--- import

public class MainActivity extends ReactActivity {
  ......

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

  ......

}

License

MIT

Keywords

react

FAQs

Package last updated on 23 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts