mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
assert that ShadowNodeRegistry is only accessed from one thread
Reviewed By: astreet Differential Revision: D3461859 fbshipit-source-id: 790e831d2ca239110e00a5723be40e870ceab020
This commit is contained in:
committed by
Facebook Github Bot 9
parent
c1f7aa3824
commit
e19225aa64
@@ -141,9 +141,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
* CatalystApplicationFragment as an example.
|
||||
*
|
||||
* TODO(6242243): Make addMeasuredRootView thread safe
|
||||
* NB: this method is horribly not-thread-safe, the only reason it works right now is because
|
||||
* it's called exactly once and is called before any JS calls are made. As soon as that fact no
|
||||
* longer holds, this method will need to be fixed.
|
||||
* NB: this method is horribly not-thread-safe.
|
||||
*/
|
||||
public int addMeasuredRootView(final SizeMonitoringFrameLayout rootView) {
|
||||
final int tag = mNextRootViewTag;
|
||||
|
||||
Reference in New Issue
Block a user