fd3484481a
Summary: `mRCTEventEmitter` is used by 2 different threads. It's assigned on the UI thread and it's accessed on the JavaScript thread. Currently, it can be the case that the UI thread assigns `mRCTEventEmitter` and later the JS thread accesses it but still sees null. This change fixes the issue by marking the `mRCTEventEmitter` variable as `volatile` to ensure that both threads see the same value for `mRCTEventEmitter`. **Test plan (required)** This change is currently used in my team's app. We're no longer seeing a crash in `EventDispatcher`. Adam Comella Microsoft Corp. Closes https://github.com/facebook/react-native/pull/9655 Differential Revision: D3790888 Pulled By: andreicoman11 fbshipit-source-id: 68cdbc74faffb36dc2bca8ad3d4a78929badbe9c |
||
---|---|---|
.. | ||
libs | ||
src | ||
.npmignore | ||
DEFS | ||
DevExperience.md | ||
README.md | ||
build.gradle | ||
gradle.properties | ||
release.gradle |
README.md
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.