Skip to content

Commit

Permalink
changed the opaque rendering to false
Browse files Browse the repository at this point in the history
  • Loading branch information
susonthapa committed Oct 8, 2023
1 parent 85997e4 commit f142e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-carplay/ios/RNCarPlay.m
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ -(UIImage*)dynamicImageWithNormalImage:(UIImage*)normalImage darkImage:(UIImage*

- (UIImage *)imageWithSize:(UIImage *)image convertToSize:(CGSize)size {
UIGraphicsImageRendererFormat *renderFormat = [UIGraphicsImageRendererFormat defaultFormat];
renderFormat.opaque = YES;
renderFormat.opaque = NO;
UIGraphicsImageRenderer *renderer = [[UIGraphicsImageRenderer alloc] initWithSize:size format:renderFormat];

UIImage *resizedImage = [renderer imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {
Expand Down

0 comments on commit f142e58

Please sign in to comment.