本文整理汇总了Java中com.facebook.react.uimanager.LayoutShadowNode类的典型用法代码示例。如果您正苦于以下问题:Java LayoutShadowNode类的具体用法?Java LayoutShadowNode怎么用?Java LayoutShadowNode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LayoutShadowNode类属于com.facebook.react.uimanager包,在下文中一共展示了LayoutShadowNode类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@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();
}
示例2: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@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);
}
}
示例3: getShadowNodeClass
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@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);
}
}
示例4: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
return new FlatReactModalShadowNode();
}
示例5: getShadowNodeClass
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public Class<? extends LayoutShadowNode> getShadowNodeClass() {
return FlatReactModalShadowNode.class;
}
示例6: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
return new ReactTextInputShadowNode();
}
示例7: getShadowNodeClass
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public Class<? extends LayoutShadowNode> getShadowNodeClass() {
return ReactTextInputShadowNode.class;
}
示例8: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
return new ReactSwitchShadowNode();
}
示例9: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
return new ReactSliderShadowNode();
}
示例10: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
return new ModalHostShadowNode();
}
示例11: getShadowNodeClass
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public Class<? extends LayoutShadowNode> getShadowNodeClass() {
return ModalHostShadowNode.class;
}
示例12: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
return new SpinnerShadowNode();
}
示例13: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
return new FloatingActionButtonShadowNode();
}
开发者ID:cesardeazevedo,项目名称:react-native-bottom-sheet-behavior,代码行数:5,代码来源:FloatingActionButtonManager.java
示例14: createShadowNodeInstance
import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
return new BaiduMapShadowNode();
}