Skip to content

Commit 76bca80

Browse files
committed
fix: add typecast
1 parent b8d319b commit 76bca80

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apple/LayoutReanimation/REAAnimationsManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ - (void)setNewProps:(NSMutableDictionary *)newProps
250250
if (needsViewPositionUpdate) {
251251
CGPoint newCenter = CGPointMake(centerX, centerY);
252252
if (convertFromAbsolute) {
253-
REAUIView *window = RCTKeyWindow();
253+
REAUIView *window = (REAUIView* )RCTKeyWindow();
254254
CGPoint convertedCenter = [window convertPoint:newCenter toView:view.superview];
255255
view.center = convertedCenter;
256256
} else {

apple/LayoutReanimation/REASharedTransitionManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ - (void)configureTransitionContainer
529529
{
530530
if (!_isSharedTransitionActive) {
531531
_isSharedTransitionActive = YES;
532-
REAUIView *mainWindow = RCTKeyWindow();
532+
REAUIView *mainWindow = (REAUIView* )RCTKeyWindow();
533533
if (_transitionContainer == nil) {
534534
_transitionContainer = [REAUIView new];
535535
}

apple/LayoutReanimation/REASnapshot.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ - (instancetype)initWithAbsolutePosition:(REAUIView *)view
2828

2929
- (void)makeSnapshotForView:(REAUIView *)view useAbsolutePositionOnly:(BOOL)useAbsolutePositionOnly
3030
{
31-
REAUIView *mainWindow = RCTKeyWindow();
31+
REAUIView *mainWindow = (REAUIView* )RCTKeyWindow();
3232
CGPoint absolutePosition = [[view superview] convertPoint:view.center toView:nil];
3333
_values = [NSMutableDictionary new];
3434
#if TARGET_OS_OSX

0 commit comments

Comments
 (0)