react-native-crosswalk-webview

Webview Crosswalk for React Native (Android)

Usage no npm install needed!

<script type="module">
  import reactNativeCrosswalkWebview from 'https://cdn.skypack.dev/react-native-crosswalk-webview';
</script>

README

��#� �r�e�a�c�t�-�n�a�t�i�v�e�-�c�r�o�s�s�w�a�l�k�-�w�e�b�v�i�e�w� � �W�e�b�v�i�e�w� �C�r�o�s�s�w�a�l�k� �f�o�r� �R�e�a�c�t� �N�a�t�i�v�e� �(�A�n�d�r�o�i�d�)� � � � �#�#�#� �I�n�s�t�a�l�l�a�t�i�o�n� � � � �� �F�r�o�m� �t�h�e� �r�o�o�t� �o�f� �y�o�u�r� �R�e�a�c�t� �N�a�t�i�v�e� �p�r�o�j�e�c�t� � � � �shell npm install --save react-native-crosswalk-webview mkdir android/app/libs � � �� �D�o�w�n�l�o�a�d� �a�n�d� �C�o�p�y� �f�i�l�e� �[�x�w�a�l�k�_�c�o�r�e�_�l�i�b�r�a�r�y�-�1�6�.�4�6�.�4�4�8�.�1�0�.�a�a�r�]� �(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�g�r�o�v�e�r�t�b�/�r�e�a�c�t�-�n�a�t�i�v�e�-�c�r�o�s�s�w�a�l�k�-�w�e�b�v�i�e�w�-�e�x�a�m�p�l�e�/�r�a�w�/�m�a�s�t�e�r�/�a�n�d�r�o�i�d�/�a�p�p�/�l�i�b�s�/�x�w�a�l�k�_�c�o�r�e�_�l�i�b�r�a�r�y�-�1�7�.�4�6�.�4�4�8�.�1�0�.�a�a�r�)� �i�n�:� � �shell node_modules/react-native-crosswalk-webview/libs/ android/app/libs/ � � � � �#�#�#� �I�n�c�l�u�d�e� �m�o�d�u�l�e� �i�n� �y�o�u�r� �A�n�d�r�o�i�d� �p�r�o�j�e�c�t� � � � �� �I�n� �android/setting.gradle� � � � �gradle ... include ':CrosswalkWebView', ':app' project(':CrosswalkWebView').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-crosswalk-webview') � � � � �#�#�#� �I�n�c�l�u�d�e� �l�i�b�s� �i�n� �y�o�u�r� �A�n�d�r�o�i�d� �p�r�o�j�e�c�t� � � � �� �I�n� �android/build.gradle� � � � �gradle ... allprojects { repositories { mavenLocal() jcenter() flatDir { // <--- add this line dirs 'libs' // <--- add this line } // <--- add this line } } � � � � �� �I�n� �android/app/build.gradle� � � � �gradle ... dependencies { ... compile (name: "xwalk_core_library-17.46.448.10", ext: "aar") // <--- add this line compile project(':CrosswalkWebView') // <--- add this line } � � � � �� �R�e�g�i�s�t�e�r� �p�a�c�k�a�g�e� �i�n� �M�a�i�n�A�c�t�i�v�i�t�y�.�j�a�v�a� � � � �java import com.grovertb.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 ); } ...... } � � �#�#� �E�X�A�M�P�L�E� � � � � �*� �[�E�x�a�m�p�l�e�]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�g�r�o�v�e�r�t�b�/�r�e�a�c�t�-�n�a�t�i�v�e�-�c�r�o�s�s�w�a�l�k�-�w�e�b�v�i�e�w�-�e�x�a�m�p�l�e�)� � �#�#� �L�i�c�e�n�s�e� � �M�I�T� � �