mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Expose SurfaceID as part ReactRootView
Summary: This diff exposes the surfaceID as part of ReactRootView. Changelog: [internal] Reviewed By: JoshuaGross Differential Revision: D18474014 fbshipit-source-id: 98f651b211d3cc4df88c6b1eb257bc12129eff57
This commit is contained in:
1 parent
76f41a0578
commit
f0b6f8441b
4 files changed
+24
-4
No files matched your search
@@ -417,7 +417,8 @@ public class UIManagerModule extends ReactContextBaseJavaModule
|
||||
final int tag = ReactRootViewTagGenerator.getNextRootViewTag();
|
||||
final ReactApplicationContext reactApplicationContext = getReactApplicationContext();
|
||||
final ThemedReactContext themedRootContext =
|
||||
new ThemedReactContext(reactApplicationContext, rootView.getContext());
|
||||
new ThemedReactContext(
|
||||
reactApplicationContext, rootView.getContext(), ((ReactRoot) rootView).getSurfaceID());
|
||||
|
||||
mUIImplementation.registerRootView(rootView, tag, themedRootContext);
|
||||
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
|
||||
|
||||
Reference in new issue
Block a user