Skip to content

Commit 8600765

Browse files
shwantonSaadnajmi
authored andcommitted
[fabric] Make RCTViewComponentView to be layer-backed by enabling wantsUpdateLayer
Summary: As title Test Plan: TBD I believe this is tested after cloning changes to fbsource and then testing there? Reviewers: shawndempsey, lefever, helenistic Reviewed By: lefever Differential Revision: https://phabricator.intern.facebook.com/D53783607 Tasks: T163838856
1 parent 1ae9a89 commit 8600765

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,11 @@ - (NSString *)componentViewName_DO_NOT_USE_THIS_IS_BROKEN
20252025
return RCTNSStringFromString([[self class] componentDescriptorProvider].name);
20262026
}
20272027

2028+
- (BOOL)wantsUpdateLayer
2029+
{
2030+
return YES;
2031+
}
2032+
20282033
@end
20292034

20302035
#ifdef __cplusplus

0 commit comments

Comments
 (0)