Java Code Examples for com.facebook.react.uimanager.UIViewOperationQueue#enqueueUpdateExtraData()

The following examples show how to use com.facebook.react.uimanager.UIViewOperationQueue#enqueueUpdateExtraData() . 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: ReactTextInputShadowNode.java    From react-native-GPay with MIT License 6 votes vote down vote up
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
  super.onCollectExtraUpdates(uiViewOperationQueue);

  if (mMostRecentEventCount != UNSET) {
    ReactTextUpdate reactTextUpdate =
        new ReactTextUpdate(
            spannedFromShadowNode(this, getText()),
            mMostRecentEventCount,
            mContainsImages,
            getPadding(Spacing.LEFT),
            getPadding(Spacing.TOP),
            getPadding(Spacing.RIGHT),
            getPadding(Spacing.BOTTOM),
            mTextAlign,
            mTextBreakStrategy);
    uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
  }
}
 
Example 2
Source File: ReactTextShadowNode.java    From react-native-GPay with MIT License 6 votes vote down vote up
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
  super.onCollectExtraUpdates(uiViewOperationQueue);

  if (mPreparedSpannableText != null) {
    ReactTextUpdate reactTextUpdate =
      new ReactTextUpdate(
        mPreparedSpannableText,
        UNSET,
        mContainsImages,
        getPadding(Spacing.START),
        getPadding(Spacing.TOP),
        getPadding(Spacing.END),
        getPadding(Spacing.BOTTOM),
        getTextAlign(),
        mTextBreakStrategy
      );
    uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
  }
}
 
Example 3
Source File: SizeReportingShadowNode.java    From react-native-amap with MIT License 5 votes vote down vote up
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
  super.onCollectExtraUpdates(uiViewOperationQueue);

  Map<String, Float> data = new HashMap<>();
  data.put("width", getLayoutWidth());
  data.put("height", getLayoutHeight());

  uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), data);
}
 
Example 4
Source File: ARTSurfaceViewShadowNode.java    From art with MIT License 4 votes vote down vote up
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  drawOutput(false);
  uiUpdater.enqueueUpdateExtraData(getReactTag(), this);
}
 
Example 5
Source File: ARTSurfaceViewShadowNode.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  drawOutput();
  uiUpdater.enqueueUpdateExtraData(getReactTag(), this);
}
 
Example 6
Source File: TweetShadowNode.java    From react-native-twitterkit with MIT License 4 votes vote down vote up
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
  super.onCollectExtraUpdates(uiViewOperationQueue);

  uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), getReactTag());
}