Java 类com.facebook.react.uimanager.SizeMonitoringFrameLayout 实例源码

项目:RNLearn_Project1    文件:FlatNativeViewHierarchyManager.java   
@Override
public void addRootView(
    int tag,
    SizeMonitoringFrameLayout view,
    ThemedReactContext themedContext) {
  FlatViewGroup root = new FlatViewGroup(themedContext);
  view.addView(root);

  // When unmounting, ReactInstanceManager.detachViewFromInstance() will check id of the
  // top-level View (SizeMonitoringFrameLayout) and pass it back to JS. We want that View's id to
  // be set, otherwise NativeViewHierarchyManager will not be able to cleanup properly.
  view.setId(tag);

  addRootViewGroup(tag, root, themedContext);
}
项目:RNLearn_Project1    文件:FlatNativeViewHierarchyManager.java   
@Override
public void addRootView(
    int tag,
    SizeMonitoringFrameLayout view,
    ThemedReactContext themedContext) {
  FlatViewGroup root = new FlatViewGroup(themedContext);
  view.addView(root);

  // When unmounting, ReactInstanceManager.detachViewFromInstance() will check id of the
  // top-level View (SizeMonitoringFrameLayout) and pass it back to JS. We want that View's id to
  // be set, otherwise NativeViewHierarchyManager will not be able to cleanup properly.
  view.setId(tag);

  addRootViewGroup(tag, root, themedContext);
}