Browse files

Exposing `setDirtiedFunc` as plain C function YGNodeSetDirtiedFunc

Summary: Trivial. Those lines were lost during rebasing of the original commit.

Reviewed By: priteshrnandgaonkar

Differential Revision: D6717696

fbshipit-source-id: a5dce25427c8977352b3ae7ea01e546a540e0c13
  • Loading branch information...
shergin authored and facebook-github-bot committed Jan 15, 2018
1 parent ce3146a commit 6bb8617f3a2f3f80f89eb00595a621aec35aca83
Showing with 22 additions and 0 deletions.
  1. +12 −0 RNTester/js/TextExample.ios.js
  2. +8 −0 ReactCommon/yoga/yoga/Yoga.cpp
  3. +2 −0 ReactCommon/yoga/yoga/Yoga.h
@@ -233,8 +233,20 @@ exports.examples = [
render: function() {
return (
The text
<View style={{borderColor: 'red', borderWidth: 1}}>
<Text style={{borderColor: 'blue', borderWidth: 1}}>Text Inside</Text>
<Text style={{borderColor: 'green', borderWidth: 1}}>Another text Inside</Text>
<Text style={{borderColor: 'yellow', borderWidth: 1}}>
Total inseption
<View style={{borderColor: 'red', borderWidth: 1}}>
<Text style={{borderColor: 'blue', borderWidth: 1}}>Insepted Text Inside</Text>
The text should wrap if it goes on multiple lines. See, this is going
to the next line.
The text after.
@@ -175,6 +175,14 @@ void YGNodeSetBaselineFunc(YGNodeRef node, YGBaselineFunc baselineFunc) {
YGDirtiedFunc YGNodeGetDirtiedFunc(YGNodeRef node) {
return node->getDirtied();
void YGNodeSetDirtiedFunc(YGNodeRef node, YGDirtiedFunc dirtiedFunc) {
YGPrintFunc YGNodeGetPrintFunc(YGNodeRef node) {
return node->getPrintFunc();
@@ -166,6 +166,8 @@ YGMeasureFunc YGNodeGetMeasureFunc(YGNodeRef node);
void YGNodeSetMeasureFunc(YGNodeRef node, YGMeasureFunc measureFunc);
YGBaselineFunc YGNodeGetBaselineFunc(YGNodeRef node);
void YGNodeSetBaselineFunc(YGNodeRef node, YGBaselineFunc baselineFunc);
YGDirtiedFunc YGNodeGetDirtiedFunc(YGNodeRef node);
void YGNodeSetDirtiedFunc(YGNodeRef node, YGDirtiedFunc dirtiedFunc);
YGPrintFunc YGNodeGetPrintFunc(YGNodeRef node);
void YGNodeSetPrintFunc(YGNodeRef node, YGPrintFunc printFunc);
bool YGNodeGetHasNewLayout(YGNodeRef node);

0 comments on commit 6bb8617

Please sign in to comment.