mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
assert on UIBackground thread if UIBackground thread is available
Reviewed By: raluca-elena Differential Revision: D5008046 fbshipit-source-id: 033b9ee76b331f6a4abcf4070e1a3206d7a8a422
This commit is contained in:
1 parent
d353b75c12
commit
83a58f6c4f
2 files changed
+9
-1
No files matched your search
@@ -233,7 +233,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
}
|
||||
|
||||
public void updateNodeSize(int nodeViewTag, int newWidth, int newHeight) {
|
||||
getReactApplicationContext().assertOnNativeModulesQueueThread();
|
||||
getReactApplicationContext().assertOnUIBackgroundOrNativeModulesThread();
|
||||
|
||||
mUIImplementation.updateNodeSize(nodeViewTag, newWidth, newHeight);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user