@abihealth/goapp-react-native 1.43.0 → 1.44.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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.44.0](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.43.1...goapp-react-native-v1.44.0) (2025-10-14)
4
+
5
+
6
+ ### Features
7
+
8
+ * show animation before initialization ([#248](https://github.com/abiglobalhealth/react-native-sdk/issues/248)) ([02de29e](https://github.com/abiglobalhealth/react-native-sdk/commit/02de29e8b48c65b308c9ded13679df6db0cd27cb))
9
+
10
+ ## [1.43.1](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.43.0...goapp-react-native-v1.43.1) (2025-10-13)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * button size grows dynamically ([#246](https://github.com/abiglobalhealth/react-native-sdk/issues/246)) ([f4c27fb](https://github.com/abiglobalhealth/react-native-sdk/commit/f4c27fb48677821bd7908639ddc2341225ea1946))
16
+
3
17
  ## [1.43.0](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.42.0...goapp-react-native-v1.43.0) (2025-10-09)
4
18
 
5
19
 
@@ -120,7 +120,8 @@ var getStyles = function (_a) {
120
120
  columnGap: spacing.xs,
121
121
  alignItems: 'center',
122
122
  justifyContent: 'center',
123
- maxHeight: 53
123
+ minHeight: 53,
124
+ flexWrap: 'wrap'
124
125
  },
125
126
  buttonPrimary: {
126
127
  backgroundColor: palette.primary.base
@@ -46,6 +46,7 @@ var sslPinning_1 = require("../api/sslPinning");
46
46
  var user_1 = require("../api/user");
47
47
  var websocket_1 = require("../api/websocket");
48
48
  var i18n_1 = __importDefault(require("../locale/i18n"));
49
+ var InitialLoadingScreen_1 = require("../screens/InitialLoadingScreen");
49
50
  var theme_1 = require("../types/theme");
50
51
  var logger_1 = require("../utils/logger");
51
52
  var axios_1 = require("axios");
@@ -225,7 +226,7 @@ var ConsultationProvider = function (_a) {
225
226
  return (<exports.ConsultationContext.Provider value={value}>
226
227
  <react_i18next_1.I18nextProvider i18n={i18n_1.default}>
227
228
  <ThemeContext_1.ThemeProvider theme={theme} components={components}>
228
- {children}
229
+ {initialised ? children : <InitialLoadingScreen_1.InitialLoadingScreen />}
229
230
  </ThemeContext_1.ThemeProvider>
230
231
  </react_i18next_1.I18nextProvider>
231
232
  </exports.ConsultationContext.Provider>);
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const InitialLoadingScreen: () => React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.InitialLoadingScreen = void 0;
7
+ var animation_1 = require("../animations/LoadingCircleAnimation/animation");
8
+ var useCustomComponents_1 = require("../hooks/useCustomComponents");
9
+ var react_1 = __importDefault(require("react"));
10
+ var react_native_1 = require("react-native");
11
+ var InitialLoadingScreen = function () {
12
+ var screens = (0, useCustomComponents_1.useCustomComponents)().screens;
13
+ var _a = (screens === null || screens === void 0 ? void 0 : screens.InitialLoadingScreen) || {}, containerStyle = _a.containerStyle, LoadingAnimation = _a.LoadingAnimation;
14
+ return (<react_native_1.View style={containerStyle || { flex: 1, alignItems: 'center', justifyContent: 'center' }}>
15
+ {LoadingAnimation || <animation_1.LoadingCircleAnimation />}
16
+ </react_native_1.View>);
17
+ };
18
+ exports.InitialLoadingScreen = InitialLoadingScreen;
@@ -65,6 +65,10 @@ export type Components = {
65
65
  };
66
66
  TwoOptionsModal?: (_: Omit<TwoOptionsModalProps, 'visible'>) => ReactElement;
67
67
  screens?: {
68
+ InitialLoadingScreen?: {
69
+ containerStyle?: ViewStyle;
70
+ LoadingAnimation?: ReactElement;
71
+ };
68
72
  MatchingScreen?: {
69
73
  containerStyle?: ViewStyle;
70
74
  MatchingAnimation?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abihealth/goapp-react-native",
3
- "version": "1.43.0",
3
+ "version": "1.44.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"