@abihealth/goapp-react-native 1.43.1 → 1.45.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.
@@ -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.1",
3
+ "version": "1.45.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"