Skip to content

Commit

Permalink
fix(build): fixes React-RCTText build with RN 0.69.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Jun 24, 2022
1 parent ef6ab3f commit d7f3a27
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Libraries/Text/React-RCTText.podspec
Expand Up @@ -26,7 +26,7 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "12.4" }
s.source = source
s.source_files = "**/*.{h,m}"
s.source_files = "**/*.{h,m,mm}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "RCTText"

Expand Down
Expand Up @@ -14,7 +14,7 @@ @implementation RCTInputAccessoryShadowView
- (void)insertReactSubview:(RCTShadowView *)subview atIndex:(NSInteger)atIndex
{
[super insertReactSubview:subview atIndex:atIndex];
subview.width = (YGValue) { RCTScreenSize().width, YGUnitPoint };
subview.width = (YGValue) { static_cast<float>(RCTScreenSize().width), YGUnitPoint };
}

@end

0 comments on commit d7f3a27

Please sign in to comment.