mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 19:44:13 +00:00
af5c21b1ef
Summary: `new MessageEvent` not support for Android 4.1 ~ 4.3 WebView. change ``` javascript document.dispatchEvent(new MessageEvent('message', data))) ``` to ``` javascript (function () { var event; var data = {}; try { event = new MessageEvent('message', data); } catch (e) { event = document.createEvent('MessageEvent'); event.initMessageEvent('message', true, true, data.data, data.origin, data.lastEventId, data.source); } document.dispatchEvent(event); })() ``` Closes https://github.com/facebook/react-native/pull/11560 Differential Revision: D4461360 fbshipit-source-id: 110220817d9570e86b31dcf8fe85f6616d54d36e
Building React Native for Android
See the docs on the website.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.