@Override public LayoutShadowNode createShadowNodeInstance() { // we use a custom shadow node that emits the width/height of the view // after layout with the updateExtraData method. Without this, we can't generate // a bitmap of the appropriate width/height of the rendered view. return new SizeReportingShadowNode(); }
@Override public LayoutShadowNode createShadowNodeInstance() { switch (mClassName) { case CLASS_GROUP: return new GroupShadowNode(); case CLASS_PATH: return new PathShadowNode(); case CLASS_CIRCLE: return new CircleShadowNode(); case CLASS_ELLIPSE: return new EllipseShadowNode(); case CLASS_LINE: return new LineShadowNode(); case CLASS_RECT: return new RectShadowNode(); case CLASS_TEXT: return new TextShadowNode(); case CLASS_TSPAN: return new TSpanShadowNode(); case CLASS_TEXT_PATH: return new TextPathShadowNode(); case CLASS_IMAGE: return new ImageShadowNode(); case CLASS_CLIP_PATH: return new ClipPathShadowNode(); case CLASS_DEFS: return new DefsShadowNode(); case CLASS_USE: return new UseShadowNode(); case CLASS_SYMBOL: return new SymbolShadowNode(); case CLASS_LINEAR_GRADIENT: return new LinearGradientShadowNode(); case CLASS_RADIAL_GRADIENT: return new RadialGradientShadowNode(); default: throw new IllegalStateException("Unexpected type " + mClassName); } }
@Override public Class<? extends LayoutShadowNode> getShadowNodeClass() { switch (mClassName) { case CLASS_GROUP: return GroupShadowNode.class; case CLASS_PATH: return PathShadowNode.class; case CLASS_CIRCLE: return CircleShadowNode.class; case CLASS_ELLIPSE: return EllipseShadowNode.class; case CLASS_LINE: return LineShadowNode.class; case CLASS_RECT: return RectShadowNode.class; case CLASS_TEXT: return TextShadowNode.class; case CLASS_TSPAN: return TSpanShadowNode.class; case CLASS_TEXT_PATH: return TextPathShadowNode.class; case CLASS_IMAGE: return ImageShadowNode.class; case CLASS_CLIP_PATH: return ClipPathShadowNode.class; case CLASS_DEFS: return DefsShadowNode.class; case CLASS_USE: return UseShadowNode.class; case CLASS_SYMBOL: return SymbolShadowNode.class; case CLASS_LINEAR_GRADIENT: return LinearGradientShadowNode.class; case CLASS_RADIAL_GRADIENT: return RadialGradientShadowNode.class; default: throw new IllegalStateException("Unexpected type " + mClassName); } }
@Override public LayoutShadowNode createShadowNodeInstance() { return new FlatReactModalShadowNode(); }
@Override public Class<? extends LayoutShadowNode> getShadowNodeClass() { return FlatReactModalShadowNode.class; }
@Override public LayoutShadowNode createShadowNodeInstance() { return new ReactTextInputShadowNode(); }
@Override public Class<? extends LayoutShadowNode> getShadowNodeClass() { return ReactTextInputShadowNode.class; }
@Override public LayoutShadowNode createShadowNodeInstance() { return new ReactSwitchShadowNode(); }
@Override public LayoutShadowNode createShadowNodeInstance() { return new ReactSliderShadowNode(); }
@Override public LayoutShadowNode createShadowNodeInstance() { return new ModalHostShadowNode(); }
@Override public Class<? extends LayoutShadowNode> getShadowNodeClass() { return ModalHostShadowNode.class; }
@Override public LayoutShadowNode createShadowNodeInstance() { return new SpinnerShadowNode(); }
@Override public LayoutShadowNode createShadowNodeInstance() { return new FloatingActionButtonShadowNode(); }
@Override public LayoutShadowNode createShadowNodeInstance() { return new BaiduMapShadowNode(); }