com.facebook.react.uimanager.ReactShadowNodeImpl Java Examples

The following examples show how to use com.facebook.react.uimanager.ReactShadowNodeImpl. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TranslucentModalHostShadowNode.java    From react-native-modal-translucent with MIT License 5 votes vote down vote up
@Override
public void addChildAt(ReactShadowNodeImpl child, int i) {
    super.addChildAt(child, i);
    Point modalSize = TranslucentModalHostHelper.getModalHostSize(getThemedContext());
    child.setStyleWidth(modalSize.x);
    child.setStyleHeight(modalSize.y);
}
 
Example #2
Source File: ModalHostShadowNode.java    From react-native-GPay with MIT License 5 votes vote down vote up
/**
 * We need to set the styleWidth and styleHeight of the one child (represented by the <View/>
 * within the <RCTModalHostView/> in Modal.js. This needs to fill the entire window.
 */
@Override
public void addChildAt(ReactShadowNodeImpl child, int i) {
  super.addChildAt(child, i);
  Point modalSize = ModalHostHelper.getModalHostSize(getThemedContext());
  child.setStyleWidth(modalSize.x);
  child.setStyleHeight(modalSize.y);
}
 
Example #3
Source File: FabricUIManager.java    From react-native-GPay with MIT License 5 votes vote down vote up
private ReactShadowNode createRootShadowNode(int rootTag, ThemedReactContext themedReactContext) {
  ReactShadowNode rootNode = new ReactShadowNodeImpl();
  I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();
  if (sharedI18nUtilInstance.isRTL(themedReactContext)) {
    rootNode.setLayoutDirection(YogaDirection.RTL);
  }
  rootNode.setViewClassName("Root");
  rootNode.setReactTag(rootTag);
  rootNode.setThemedContext(themedReactContext);
  return rootNode;
}
 
Example #4
Source File: ARTGroupShadowNode.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
protected ReactShadowNodeImpl copy() {
  return new ARTGroupShadowNode(this);
}
 
Example #5
Source File: ReactSwitchManager.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public ReactShadowNodeImpl mutableCopy(long instanceHandle) {
  ReactSwitchShadowNode reactShadowNode = (ReactSwitchShadowNode) super.mutableCopy(instanceHandle);
  reactShadowNode.initMeasureFunction();
  return reactShadowNode;
}
 
Example #6
Source File: ReactSwitchManager.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public ReactShadowNodeImpl mutableCopyWithNewChildren(long instanceHandle) {
  ReactSwitchShadowNode reactShadowNode = (ReactSwitchShadowNode) super.mutableCopyWithNewChildren(instanceHandle);
  reactShadowNode.initMeasureFunction();
  return reactShadowNode;
}
 
Example #7
Source File: ProgressBarShadowNode.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public ReactShadowNodeImpl mutableCopyWithNewChildren(long instanceHandle) {
  ProgressBarShadowNode node = (ProgressBarShadowNode) super.mutableCopyWithNewChildren(instanceHandle);
  node.initMeasureFunction();
  return node;
}
 
Example #8
Source File: ProgressBarShadowNode.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public ReactShadowNodeImpl mutableCopy(long instanceHandle) {
  ProgressBarShadowNode node = (ProgressBarShadowNode) super.mutableCopy(instanceHandle);
  node.initMeasureFunction();
  return node;
}
 
Example #9
Source File: ReactSliderManager.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public ReactShadowNodeImpl mutableCopy(long instanceHandle) {
  ReactSliderShadowNode reactShadowNode = (ReactSliderShadowNode) super.mutableCopy(instanceHandle);
  reactShadowNode.initMeasureFunction();
  return reactShadowNode;
}
 
Example #10
Source File: ReactSliderManager.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public ReactShadowNodeImpl mutableCopyWithNewChildren(long instanceHandle) {
  ReactSliderShadowNode reactShadowNode = (ReactSliderShadowNode) super.mutableCopyWithNewChildren(instanceHandle);
  reactShadowNode.initMeasureFunction();
  return reactShadowNode;
}
 
Example #11
Source File: ReactRawTextShadowNode.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
protected ReactShadowNodeImpl copy() {
  return new ReactRawTextShadowNode(this);
}
 
Example #12
Source File: ReactTextShadowNode.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public ReactShadowNodeImpl mutableCopy(long instanceHandle) {
  ReactTextShadowNode copy = (ReactTextShadowNode) super.mutableCopy(instanceHandle);
  copy.initMeasureFunction();
  return copy;
}
 
Example #13
Source File: ReactTextShadowNode.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public ReactShadowNodeImpl mutableCopyWithNewChildren(long instanceHandle) {
  ReactTextShadowNode copy = (ReactTextShadowNode) super.mutableCopyWithNewChildren(instanceHandle);
  copy.initMeasureFunction();
  return copy;
}
 
Example #14
Source File: FabricUIManagerTest.java    From react-native-GPay with MIT License 4 votes vote down vote up
private ReactShadowNode createViewNode() {
  ReactShadowNode node = new ReactShadowNodeImpl();
  node.setViewClassName(ReactViewManager.REACT_CLASS);
  node.setThemedContext(mThemedReactContext);
  return node;
}
 
Example #15
Source File: FabricReconcilerTest.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public ReactShadowNodeImpl copy() {
  return new VirtualReactShadowNode(this);
}