2.0.0 • Published 9 years ago

react-native-crosswalk v2.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
9 years ago

react-native-crosswalk-webview

Installation

Inside your react-native project run

$ npm install --save react-native-crosswalk

Add it to your android project

In android/setting.gradle

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

In android/build.gradle

...
allprojects {
    repositories {
        mavenLocal()
        jcenter()
        
        flatDir {             // <------ add this line
            dirs 'libs'       // <------ add this line
        }                     // <------ add this line
    }
}

In android/app/build.gradle

...
dependencies {
  ...
    compile (name: "xwalk_core_library-17.46.448.10", ext: "aar")    // <--- add this line
    compile project(':CrosswalkWebView')    // <--- add this line
}

Register Module (in MainActivity.java)

...
import com.atomix.react.crosswalk.webview.CrosswalkWebViewPackage;    // <--- add this line 
 
public class MainActivity extends ReactActivity {
  ......
 
  @Override
  protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
        new MainReactPackage(),
        new CrosswalkWebViewPackage(this)    // <--- add this line 
    );
  }
 
  ......
 
}

License

MIT

2.0.0

9 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago