当前位置: 首页>>代码示例>>Java>>正文


Java LayoutShadowNode类代码示例

本文整理汇总了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();
}
 
开发者ID:laoqiu,项目名称:react-native-amap,代码行数:8,代码来源:AMapMarkerManager.java

示例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);
    }
}
 
开发者ID:react-native-community,项目名称:react-native-svg,代码行数:40,代码来源:RenderableViewManager.java

示例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);
    }
}
 
开发者ID:react-native-community,项目名称:react-native-svg,代码行数:40,代码来源:RenderableViewManager.java

示例4: createShadowNodeInstance

import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
  return new FlatReactModalShadowNode();
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:RCTModalHostManager.java

示例5: getShadowNodeClass

import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public Class<? extends LayoutShadowNode> getShadowNodeClass() {
  return FlatReactModalShadowNode.class;
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:RCTModalHostManager.java

示例6: createShadowNodeInstance

import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
  return new ReactTextInputShadowNode();
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:ReactTextInputManager.java

示例7: getShadowNodeClass

import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public Class<? extends LayoutShadowNode> getShadowNodeClass() {
  return ReactTextInputShadowNode.class;
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:ReactTextInputManager.java

示例8: createShadowNodeInstance

import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
  return new ReactSwitchShadowNode();
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:ReactSwitchManager.java

示例9: createShadowNodeInstance

import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
  return new ReactSliderShadowNode();
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:ReactSliderManager.java

示例10: createShadowNodeInstance

import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
  return new ModalHostShadowNode();
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:ReactModalHostManager.java

示例11: getShadowNodeClass

import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public Class<? extends LayoutShadowNode> getShadowNodeClass() {
  return ModalHostShadowNode.class;
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:ReactModalHostManager.java

示例12: createShadowNodeInstance

import com.facebook.react.uimanager.LayoutShadowNode; //导入依赖的package包/类
@Override
public LayoutShadowNode createShadowNodeInstance() {
    return new SpinnerShadowNode();
}
 
开发者ID:webschik,项目名称:react-native-spinner-android,代码行数:5,代码来源:SpinnerManager.java

示例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();
}
 
开发者ID:hufeng,项目名称:BaiduMapKit,代码行数:5,代码来源:BaiduMapViewManager.java


注:本文中的com.facebook.react.uimanager.LayoutShadowNode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。