Skip to content

Commit

Permalink
fix incorrect set function for focused image
Browse files Browse the repository at this point in the history
  • Loading branch information
saminadhikari18 committed Apr 16, 2024
1 parent 109c0a6 commit 9c0bf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-carplay/ios/RCTConvert+RNCarPlay.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ + (CPMapButton*)CPMapButton:(id)json withHandler:(void (^)(CPMapButton * _Nonnul
}

if ([json objectForKey:@"focusedImage"]) {
[mapButton setImage:[RCTConvert UIImage:json[@"focusedImage"]]];
[mapButton setFocusedImage:[RCTConvert UIImage:json[@"focusedImage"]]];
}

if ([json objectForKey:@"disabled"]) {
Expand Down

0 comments on commit 9c0bf42

Please sign in to comment.