Skip to content

Commit

Permalink
fix: add typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Feb 2, 2024
1 parent b8d319b commit 76bca80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apple/LayoutReanimation/REAAnimationsManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ - (void)setNewProps:(NSMutableDictionary *)newProps
if (needsViewPositionUpdate) {
CGPoint newCenter = CGPointMake(centerX, centerY);
if (convertFromAbsolute) {
REAUIView *window = RCTKeyWindow();
REAUIView *window = (REAUIView* )RCTKeyWindow();
CGPoint convertedCenter = [window convertPoint:newCenter toView:view.superview];
view.center = convertedCenter;
} else {
Expand Down
2 changes: 1 addition & 1 deletion apple/LayoutReanimation/REASharedTransitionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ - (void)configureTransitionContainer
{
if (!_isSharedTransitionActive) {
_isSharedTransitionActive = YES;
REAUIView *mainWindow = RCTKeyWindow();
REAUIView *mainWindow = (REAUIView* )RCTKeyWindow();
if (_transitionContainer == nil) {
_transitionContainer = [REAUIView new];
}
Expand Down
2 changes: 1 addition & 1 deletion apple/LayoutReanimation/REASnapshot.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ - (instancetype)initWithAbsolutePosition:(REAUIView *)view

- (void)makeSnapshotForView:(REAUIView *)view useAbsolutePositionOnly:(BOOL)useAbsolutePositionOnly
{
REAUIView *mainWindow = RCTKeyWindow();
REAUIView *mainWindow = (REAUIView* )RCTKeyWindow();
CGPoint absolutePosition = [[view superview] convertPoint:view.center toView:nil];
_values = [NSMutableDictionary new];
#if TARGET_OS_OSX
Expand Down

0 comments on commit 76bca80

Please sign in to comment.