@iternio/react-native-auto-play 0.2.0-alpha.7 → 0.2.0-alpha.8

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.
@@ -27,7 +27,7 @@ export class Template {
27
27
  return HybridAutoPlay.popToTemplate(this.id);
28
28
  }
29
29
  setHeaderActions(headerActions) {
30
- const nitroActions = NitroActionUtil.convert(headerActions);
30
+ const nitroActions = NitroActionUtil.convert(this, headerActions);
31
31
  return HybridAutoPlay.setTemplateHeaderActions(this.id, nitroActions);
32
32
  }
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iternio/react-native-auto-play",
3
- "version": "0.2.0-alpha.7",
3
+ "version": "0.2.0-alpha.8",
4
4
  "description": "Android Auto and Apple CarPlay for react-native",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",
@@ -103,7 +103,10 @@ export class Template<TemplateConfigType, ActionsType> {
103
103
  }
104
104
 
105
105
  public setHeaderActions<T>(headerActions?: ActionsType) {
106
- const nitroActions = NitroActionUtil.convert(headerActions as HeaderActions<T>);
106
+ const nitroActions = NitroActionUtil.convert(
107
+ this as unknown as T,
108
+ headerActions as HeaderActions<T>
109
+ );
107
110
  return HybridAutoPlay.setTemplateHeaderActions(this.id, nitroActions);
108
111
  }
109
112
  }