Skip to content

Commit

Permalink
fix: Fix type of YGNodeConstRef for latest react-native version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Mar 6, 2024
1 parent 55ac78e commit 2b8b115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ios/JBBaseTextShadowView.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

NSString *const JBBaseTextShadowViewEmbeddedShadowViewAttributeName = @"JBBaseTextShadowViewEmbeddedShadowViewAttributeName";

static void RCTInlineViewYogaNodeDirtied(YGNodeRef node)
static void RCTInlineViewYogaNodeDirtied(YGNodeConstRef node)
{
// An inline view (a view nested inside of a text node) does not have a parent
// in the Yoga tree. Consequently, we have to manually propagate the inline
Expand Down
4 changes: 2 additions & 2 deletions ios/JBTextShadowView.m
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ - (CGFloat)lastBaselineForSize:(CGSize)size
return size.height + maximumDescender;
}

static YGSize RCTTextShadowViewMeasure(YGNodeRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode)
static YGSize RCTTextShadowViewMeasure(YGNodeConstRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode)
{
CGSize maximumSize = (CGSize){
widthMode == YGMeasureModeUndefined ? CGFLOAT_MAX : RCTCoreGraphicsFloatFromYogaFloat(width),
Expand Down Expand Up @@ -422,7 +422,7 @@ static YGSize RCTTextShadowViewMeasure(YGNodeRef node, float width, YGMeasureMod
};
}

static float RCTTextShadowViewBaseline(YGNodeRef node, const float width, const float height)
static float RCTTextShadowViewBaseline(YGNodeConstRef node, const float width, const float height)
{
JBTextShadowView *shadowTextView = (__bridge JBTextShadowView *)YGNodeGetContext(node);

Expand Down

0 comments on commit 2b8b115

Please sign in to comment.