@javascriptcommon/react-native-carplay 2.4.1-beta.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ RCT_ENUM_CONVERTER(CPAssistantCellVisibility, (@{
33
33
  RCT_ENUM_CONVERTER(CPAssistantCellActionType, (@{
34
34
  @"playMedia": @(CPAssistantCellActionTypePlayMedia),
35
35
  @"startCall": @(CPAssistantCellActionTypeStartCall)
36
- }), CPAssistantCellActionTypeStartCall, integerValue)
36
+ }), CPAssistantCellActionTypePlayMedia, integerValue)
37
37
 
38
38
 
39
39
  + (CPMapButton*)CPMapButton:(id)json withHandler:(void (^)(CPMapButton * _Nonnull mapButton))handler {
package/ios/RNCarPlay.m CHANGED
@@ -267,7 +267,7 @@ RCT_EXPORT_METHOD(createTemplate:(NSString *)templateId config:(NSDictionary*)co
267
267
  NSDictionary *assistant = [config objectForKey:@"assistant"];
268
268
  BOOL _enabled = [assistant valueForKey:@"enabled"];
269
269
  if (_enabled) {
270
- CPAssistantCellConfiguration *conf = [[CPAssistantCellConfiguration alloc] initWithPosition:[RCTConvert CPAssistantCellPosition:[config valueForKey:@"position"]] visibility:[RCTConvert CPAssistantCellVisibility:[config valueForKey:@"visibility"]] assistantAction:[RCTConvert CPAssistantCellActionType:[config valueForKey:@"visibility"]]];
270
+ CPAssistantCellConfiguration *conf = [[CPAssistantCellConfiguration alloc] initWithPosition:[RCTConvert CPAssistantCellPosition:[assistant valueForKey:@"position"]] visibility:[RCTConvert CPAssistantCellVisibility:[assistant valueForKey:@"visibility"]] assistantAction:[RCTConvert CPAssistantCellActionType:[assistant valueForKey:@"action"]]];
271
271
  listTemplate = [[CPListTemplate alloc] initWithTitle:title sections:sections assistantCellConfiguration:conf];
272
272
  }
273
273
  }
@@ -4,7 +4,7 @@ exports.Template = void 0;
4
4
  const react_native_1 = require("react-native");
5
5
  const CarPlay_1 = require("../CarPlay");
6
6
  // eslint-disable-next-line @typescript-eslint/no-var-requires
7
- const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource');
7
+ const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource').default;
8
8
  class Template {
9
9
  config;
10
10
  get type() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@javascriptcommon/react-native-carplay",
3
- "version": "2.4.1-beta.0",
3
+ "version": "2.4.2",
4
4
  "description": "CarPlay for React Native",
5
5
  "main": "lib/index.js",
6
6
  "react-native": "src/index.ts",
@@ -3,7 +3,7 @@ import { CarPlay } from '../CarPlay';
3
3
  import { BarButton } from '../interfaces/BarButton';
4
4
 
5
5
  // eslint-disable-next-line @typescript-eslint/no-var-requires
6
- const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource');
6
+ const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource').default;
7
7
 
8
8
  export interface BaseEvent {
9
9
  /**