2.0.0 • Published 7 years ago

react-native-crosswalk v2.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago