mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Allow for customization of the RootViewManager
Reviewed By: astreet Differential Revision: D3473916 fbshipit-source-id: 0db8748a39a08d28b44173f72d3f738ccb9b4242
This commit is contained in:
parent
ee742277af
commit
747613920d
@ -70,17 +70,22 @@ public class NativeViewHierarchyManager {
|
||||
private final SparseBooleanArray mRootTags;
|
||||
private final ViewManagerRegistry mViewManagers;
|
||||
private final JSResponderHandler mJSResponderHandler = new JSResponderHandler();
|
||||
private final RootViewManager mRootViewManager = new RootViewManager();
|
||||
private final RootViewManager mRootViewManager;
|
||||
private final LayoutAnimationController mLayoutAnimator = new LayoutAnimationController();
|
||||
|
||||
private boolean mLayoutAnimationEnabled;
|
||||
|
||||
public NativeViewHierarchyManager(ViewManagerRegistry viewManagers) {
|
||||
this(viewManagers, new RootViewManager());
|
||||
}
|
||||
|
||||
public NativeViewHierarchyManager(ViewManagerRegistry viewManagers, RootViewManager manager) {
|
||||
mAnimationRegistry = new AnimationRegistry();
|
||||
mViewManagers = viewManagers;
|
||||
mTagsToViews = new SparseArray<>();
|
||||
mTagsToViewManagers = new SparseArray<>();
|
||||
mRootTags = new SparseBooleanArray();
|
||||
mRootViewManager = manager;
|
||||
}
|
||||
|
||||
public final View resolveView(int tag) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user