@abihealth/goapp-react-native 1.45.2 → 1.46.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.46.0](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.45.2...goapp-react-native-v1.46.0) (2025-11-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * no consultations screen customisable ([#256](https://github.com/abiglobalhealth/react-native-sdk/issues/256)) ([d9967bd](https://github.com/abiglobalhealth/react-native-sdk/commit/d9967bda27af85ae18d8fa0a26f200a67d64cef5))
9
+
3
10
  ## [1.45.2](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.45.1...goapp-react-native-v1.45.2) (2025-10-29)
4
11
 
5
12
 
@@ -7,6 +7,7 @@ exports.NoConsultationFoundScreen = void 0;
7
7
  var Header_1 = require("../components/headers/Header");
8
8
  var ScreenWrapper_1 = require("../components/ScreenWrapper");
9
9
  var Text_1 = require("../components/Text");
10
+ var useCustomComponents_1 = require("../hooks/useCustomComponents");
10
11
  var useTheme_1 = require("../hooks/useTheme");
11
12
  var useTranslation_1 = require("../hooks/useTranslation");
12
13
  var AbiLogoIcon_1 = require("../icons/AbiLogoIcon");
@@ -17,7 +18,11 @@ var NoConsultationFoundScreen = function () {
17
18
  var t = (0, useTranslation_1.useTranslation)().t;
18
19
  var theme = (0, useTheme_1.useTheme)();
19
20
  var styles = getStyles(theme);
20
- return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header centerIcon={<AbiLogoIcon_1.AbiLogoIcon />}/>} containerStyle={styles.container}>
21
+ var screens = (0, useCustomComponents_1.useCustomComponents)().screens;
22
+ var _a = (screens === null || screens === void 0 ? void 0 : screens.NoConsultationFoundScreen) || {}, containerStyle = _a.containerStyle, customComponent = _a.customComponent;
23
+ if (customComponent)
24
+ return customComponent();
25
+ return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header centerIcon={<AbiLogoIcon_1.AbiLogoIcon />}/>} containerStyle={[styles.container, containerStyle]}>
21
26
  <NoCaseFoundIcon_1.default />
22
27
  <Text_1.Text>{t('no_active_cases.title')}</Text_1.Text>
23
28
  </ScreenWrapper_1.ScreenWrapper>);
@@ -69,6 +69,10 @@ export type Components = {
69
69
  containerStyle?: ViewStyle;
70
70
  LoadingAnimation?: ReactElement;
71
71
  };
72
+ NoConsultationFoundScreen?: {
73
+ containerStyle?: ViewStyle;
74
+ customComponent?: () => ReactElement;
75
+ };
72
76
  MatchingScreen?: {
73
77
  containerStyle?: ViewStyle;
74
78
  MatchingAnimation?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abihealth/goapp-react-native",
3
- "version": "1.45.2",
3
+ "version": "1.46.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"