-
-
Notifications
You must be signed in to change notification settings - Fork 111
Description
/Users/macbook/ebanqo-business-app/node_modules/react-native-shared-element/ios/RNSharedElementStyle.m:43:70: error: implicit conversion of Objective-C pointer type 'UIColor *' to C pointer type 'CGColorRef _Nonnull' (aka 'struct CGColor *') requires a bridged cast
_borderColor = rctView.borderColor ? [UIColor colorWithCGColor:rctView.borderColor] : [UIColor clearColor];
^~~~~~~~~~~~~~~~~~~
/Users/macbook/ebanqo-business-app/node_modules/react-native-shared-element/ios/RNSharedElementStyle.m:43:70: note: use __bridge to convert directly (no change in ownership)
_borderColor = rctView.borderColor ? [UIColor colorWithCGColor:rctView.borderColor] : [UIColor clearColor];
^
(__bridge CGColorRef _Nonnull)( )
/Users/macbook/ebanqo-business-app/node_modules/react-native-shared-element/ios/RNSharedElementStyle.m:43:70: note: use CFBridgingRetain call to make an ARC object available as a +1 'CGColorRef _Nonnull' (aka 'struct CGColor *')
_borderColor = rctView.borderColor ? [UIColor colorWithCGColor:rctView.borderColor] : [UIColor clearColor];
^
CFBridgingRetain( )
/Users/macbook/ebanqo-business-app/node_modules/react-native-shared-element/ios/RNSharedElementStyle.m:43:70: warning: incompatible pointer types sending 'UIColor *' to parameter of type 'CGColorRef _Nonnull' (aka 'struct CGColor *') [-Wincompatible-pointer-types]
_borderColor = rctView.borderColor ? [UIColor colorWithCGColor:rctView.borderColor] : [UIColor clearColor];
^~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/macbook/ebanqo-business-app/ios/Pods/Target Support Files/RNSharedElement/RNSharedElement-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:31:43: note: passing argument to parameter 'cgColor' here
- (UIColor *)colorWithCGColor:(CGColorRef)cgColor;
^
1 warning and 1 error generated.