@applicaster/zapp-react-native-utils 14.0.19-rc.1 → 14.0.20-rc.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "14.0.19-rc.1",
3
+ "version": "14.0.20-rc.0",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "14.0.19-rc.1",
30
+ "@applicaster/applicaster-types": "14.0.20-rc.0",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",
@@ -1,6 +1,8 @@
1
1
  /// <reference types="@applicaster/applicaster-types" />
2
2
  import * as React from "react";
3
3
 
4
+ import { coreLogger } from "@applicaster/zapp-react-native-utils/logger";
5
+
4
6
  import { findComponentByType } from "@applicaster/zapp-react-native-utils/pluginUtils";
5
7
  import { usePickFromState } from "@applicaster/zapp-react-native-redux/hooks";
6
8
 
@@ -17,7 +19,7 @@ export function useComponentResolver(
17
19
  ): React.ComponentType<any> {
18
20
  const { plugins, components } = usePickFromState(["plugins", "components"]);
19
21
 
20
- return React.useMemo(
22
+ const component = React.useMemo(
21
23
  () =>
22
24
  findComponentByType({
23
25
  components,
@@ -27,4 +29,12 @@ export function useComponentResolver(
27
29
  }),
28
30
  watchers
29
31
  );
32
+
33
+ if (!component) {
34
+ coreLogger.warn({
35
+ message: `useComponentResolver: Component of type ${componentType} not found`,
36
+ });
37
+ }
38
+
39
+ return component;
30
40
  }