Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNSharedelement issue on xcode run build #123

Closed
CurpraCode opened this issue Jul 18, 2024 · 2 comments
Closed

RNSharedelement issue on xcode run build #123

CurpraCode opened this issue Jul 18, 2024 · 2 comments

Comments

@CurpraCode
Copy link

/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.
Copy link

Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a snack.expo.dev link or link to a GitHub repo under your username).

Can you provide a minimal repro which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.

@CurpraCode
Copy link
Author

resolved thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant