Created
August 30, 2016 09:20
-
-
Save zaynyatyi/59190488de20c2cbdc506cd10cfe4454 to your computer and use it in GitHub Desktop.
Crosswalk building test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.crosswalktest; | |
import android.app.Application; | |
import android.util.Log; | |
import com.facebook.react.ReactApplication; | |
import com.facebook.react.ReactInstanceManager; | |
import com.facebook.react.ReactNativeHost; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.react.shell.MainReactPackage; | |
import java.util.Arrays; | |
import java.util.List; | |
import com.jordansexton.react.crosswalk.webview.CrosswalkWebViewPackage; // <--- add this line | |
public class MainApplication extends Application implements ReactApplication { | |
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { | |
@Override | |
protected boolean getUseDeveloperSupport() { | |
return BuildConfig.DEBUG; | |
} | |
@Override | |
protected List<ReactPackage> getPackages() { | |
return Arrays.<ReactPackage>asList( | |
new MainReactPackage(), | |
new CrosswalkWebViewPackage() // <--- add this line | |
); | |
} | |
}; | |
@Override | |
public ReactNativeHost getReactNativeHost() { | |
return mReactNativeHost; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "CrosswalkTest", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "node node_modules/react-native/local-cli/cli.js start" | |
}, | |
"dependencies": { | |
"react": "15.2.1", | |
"react-native": "0.31.0", | |
"react-native-webview-crosswalk": "https://github.com/zaynyatyi/react-native-webview-crosswalk#e00c6cce24169b862dfd47d9f4d7748a65511d30" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment