@hedia/recommendation-screen 1.0.1 → 1.0.3

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.
Files changed (116) hide show
  1. package/Changelog.md +4 -0
  2. package/README.md +0 -0
  3. package/android/app/BUCK +0 -0
  4. package/android/app/build.gradle +0 -0
  5. package/android/app/build_defs.bzl +0 -0
  6. package/android/app/debug.keystore +0 -0
  7. package/android/app/proguard-rules.pro +0 -0
  8. package/android/app/src/debug/AndroidManifest.xml +0 -0
  9. package/android/app/src/debug/java/com/hediarecommendationscreen/ReactNativeFlipper.java +0 -0
  10. package/android/app/src/main/AndroidManifest.xml +0 -0
  11. package/android/app/src/main/java/com/hediarecommendationscreen/MainActivity.java +0 -0
  12. package/android/app/src/main/java/com/hediarecommendationscreen/MainApplication.java +0 -0
  13. package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  14. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  15. package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  16. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  17. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  18. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  19. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  20. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  21. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  22. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  23. package/android/app/src/main/res/values/strings.xml +0 -0
  24. package/android/app/src/main/res/values/styles.xml +0 -0
  25. package/android/build.gradle +0 -0
  26. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  27. package/android/gradle/wrapper/gradle-wrapper.properties +0 -0
  28. package/android/gradle.properties +0 -0
  29. package/android/gradlew +0 -0
  30. package/android/gradlew.bat +0 -0
  31. package/android/settings.gradle +0 -0
  32. package/index.d.ts +5 -5
  33. package/index.js +16 -16
  34. package/index.ts +0 -0
  35. package/ios/HediaRecommendationScreen/AppDelegate.h +0 -0
  36. package/ios/HediaRecommendationScreen/AppDelegate.m +0 -0
  37. package/ios/HediaRecommendationScreen/Base.lproj/LaunchScreen.xib +0 -0
  38. package/ios/HediaRecommendationScreen/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
  39. package/ios/HediaRecommendationScreen/Images.xcassets/Contents.json +0 -0
  40. package/ios/HediaRecommendationScreen/Info.plist +0 -0
  41. package/ios/HediaRecommendationScreen/main.m +0 -0
  42. package/ios/HediaRecommendationScreen-tvOS/Info.plist +0 -0
  43. package/ios/HediaRecommendationScreen-tvOSTests/Info.plist +0 -0
  44. package/ios/HediaRecommendationScreen.xcodeproj/project.pbxproj +0 -0
  45. package/ios/HediaRecommendationScreen.xcodeproj/xcshareddata/xcschemes/HediaRecommendationScreen-tvOS.xcscheme +0 -0
  46. package/ios/HediaRecommendationScreen.xcodeproj/xcshareddata/xcschemes/HediaRecommendationScreen.xcscheme +0 -0
  47. package/ios/HediaRecommendationScreenTests/HediaRecommendationScreenTests.m +0 -0
  48. package/ios/HediaRecommendationScreenTests/Info.plist +0 -0
  49. package/ios/Podfile +0 -0
  50. package/package.json +8 -10
  51. package/src/RecommendationScreen.d.ts +42 -42
  52. package/src/RecommendationScreen.js +124 -124
  53. package/src/RecommendationScreen.tsx +0 -0
  54. package/src/assets/happy.png +0 -0
  55. package/src/assets/happy_active.png +0 -0
  56. package/src/assets/neutral.png +0 -0
  57. package/src/assets/neutral_active.png +0 -0
  58. package/src/assets/sad.png +0 -0
  59. package/src/assets/sad_active.png +0 -0
  60. package/src/assets/semi_happy.png +0 -0
  61. package/src/assets/semi_happy_active.png +0 -0
  62. package/src/assets/semi_sad.png +0 -0
  63. package/src/assets/semi_sad_active.png +0 -0
  64. package/src/components/Emotion.d.ts +14 -14
  65. package/src/components/Emotion.js +49 -49
  66. package/src/components/Emotion.tsx +0 -0
  67. package/src/components/Header.d.ts +52 -52
  68. package/src/components/Header.js +62 -62
  69. package/src/components/Header.tsx +0 -0
  70. package/src/components/Icon.js +0 -0
  71. package/src/components/InfoBars.d.ts +67 -67
  72. package/src/components/InfoBars.js +71 -71
  73. package/src/components/InfoBars.tsx +0 -0
  74. package/src/components/InvisibleNumberInput.d.ts +24 -24
  75. package/src/components/InvisibleNumberInput.js +64 -64
  76. package/src/components/InvisibleNumberInput.tsx +0 -0
  77. package/src/components/MoodIcon.d.ts +14 -14
  78. package/src/components/MoodIcon.js +51 -51
  79. package/src/components/MoodIcon.tsx +0 -0
  80. package/src/components/RecentInsulin.d.ts +9 -9
  81. package/src/components/RecentInsulin.js +71 -71
  82. package/src/components/RecentInsulin.tsx +0 -0
  83. package/src/components/RecommendedCarbs.d.ts +30 -30
  84. package/src/components/RecommendedCarbs.js +143 -143
  85. package/src/components/RecommendedCarbs.tsx +0 -0
  86. package/src/components/RecommendedInsulin.d.ts +22 -22
  87. package/src/components/RecommendedInsulin.js +91 -91
  88. package/src/components/RecommendedInsulin.tsx +0 -0
  89. package/src/components/Remeasure.d.ts +13 -13
  90. package/src/components/Remeasure.js +73 -73
  91. package/src/components/Remeasure.tsx +0 -0
  92. package/src/components/TransferToLogbook.d.ts +14 -14
  93. package/src/components/TransferToLogbook.js +73 -73
  94. package/src/components/TransferToLogbook.tsx +0 -0
  95. package/src/locale/da/messages.js +0 -0
  96. package/src/locale/da/messages.po +0 -0
  97. package/src/locale/en/messages.js +0 -0
  98. package/src/locale/en/messages.po +0 -0
  99. package/src/locale/i18nUtils.d.ts +5 -5
  100. package/src/locale/i18nUtils.js +22 -22
  101. package/src/locale/i18nUtils.ts +0 -0
  102. package/src/types/enum.d.ts +26 -26
  103. package/src/types/enum.js +34 -34
  104. package/src/types/enum.ts +0 -0
  105. package/src/types/types.d.ts +21 -21
  106. package/src/types/types.js +2 -2
  107. package/src/types/types.ts +0 -0
  108. package/src/utils/Constants.d.ts +3 -3
  109. package/src/utils/Constants.js +6 -6
  110. package/src/utils/Constants.ts +0 -0
  111. package/src/utils/RecommendationError.d.ts +9 -9
  112. package/src/utils/RecommendationError.js +16 -16
  113. package/src/utils/RecommendationError.ts +0 -0
  114. package/src/utils/Utils.d.ts +5 -5
  115. package/src/utils/Utils.js +24 -24
  116. package/src/utils/Utils.ts +0 -0
@@ -1,54 +1,54 @@
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
- const react_1 = __importDefault(require("react"));
7
- const react_native_1 = require("react-native");
8
- const i18nUtils_1 = require("../locale/i18nUtils");
9
- const enum_1 = require("../types/enum");
10
- const MoodIcon_1 = __importDefault(require("./MoodIcon"));
11
- class Emotion extends react_1.default.Component {
12
- constructor() {
13
- super(...arguments);
14
- this.state = {
15
- selected: 0,
16
- };
17
- this.handleIconPress = (selected, toggle) => {
18
- const select = toggle ? selected : 0;
19
- this.setState({
20
- selected: select,
21
- });
22
- this.props.moodSelected(select);
23
- };
24
- }
25
- render() {
26
- const values = Object.values(enum_1.MoodEnum).filter((val) => isNaN(Number(val)));
27
- const mapped = values.map((key) => {
28
- const moodValue = enum_1.MoodEnum[key];
29
- return (<MoodIcon_1.default onPress={(toggle) => this.handleIconPress(moodValue, toggle)} active={moodValue === this.state.selected} mood={moodValue} key={moodValue}/>);
30
- });
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
+ const react_1 = __importDefault(require("react"));
7
+ const react_native_1 = require("react-native");
8
+ const i18nUtils_1 = require("../locale/i18nUtils");
9
+ const enum_1 = require("../types/enum");
10
+ const MoodIcon_1 = __importDefault(require("./MoodIcon"));
11
+ class Emotion extends react_1.default.Component {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.state = {
15
+ selected: 0,
16
+ };
17
+ this.handleIconPress = (selected, toggle) => {
18
+ const select = toggle ? selected : 0;
19
+ this.setState({
20
+ selected: select,
21
+ });
22
+ this.props.moodSelected(select);
23
+ };
24
+ }
25
+ render() {
26
+ const values = Object.values(enum_1.MoodEnum).filter((val) => isNaN(Number(val)));
27
+ const mapped = values.map((key) => {
28
+ const moodValue = enum_1.MoodEnum[key];
29
+ return (<MoodIcon_1.default onPress={(toggle) => this.handleIconPress(moodValue, toggle)} active={moodValue === this.state.selected} mood={moodValue} key={moodValue}/>);
30
+ });
31
31
  return (<react_native_1.View style={emotionStyles.container}>
32
32
  <react_native_1.View style={emotionStyles.feelingContainer}>
33
33
  <react_native_1.Text style={emotionStyles.feelingText}>{i18nUtils_1.i18n._("How are you feeling?")}</react_native_1.Text>
34
34
  </react_native_1.View>
35
35
  <react_native_1.View style={emotionStyles.moodIconContainer}>{mapped}</react_native_1.View>
36
- </react_native_1.View>);
37
- }
38
- }
39
- exports.default = Emotion;
40
- const emotionStyles = react_native_1.StyleSheet.create({
41
- container: {
42
- flex: 1,
43
- },
44
- feelingContainer: {
45
- marginVertical: `3%`,
46
- },
47
- feelingText: {
48
- textAlign: `center`,
49
- color: `white`,
50
- fontWeight: `bold`,
51
- fontSize: react_native_1.Dimensions.get(`screen`).width / 26,
52
- },
53
- moodIconContainer: { flex: 1, flexDirection: `row`, justifyContent: `center` },
54
- });
36
+ </react_native_1.View>);
37
+ }
38
+ }
39
+ exports.default = Emotion;
40
+ const emotionStyles = react_native_1.StyleSheet.create({
41
+ container: {
42
+ flex: 1,
43
+ },
44
+ feelingContainer: {
45
+ marginVertical: `3%`,
46
+ },
47
+ feelingText: {
48
+ textAlign: `center`,
49
+ color: `white`,
50
+ fontWeight: `bold`,
51
+ fontSize: react_native_1.Dimensions.get(`screen`).width / 26,
52
+ },
53
+ moodIconContainer: { flex: 1, flexDirection: `row`, justifyContent: `center` },
54
+ });
File without changes
@@ -1,52 +1,52 @@
1
- import React from "react";
2
- import { IRecommendationProps } from "../RecommendationScreen";
3
- interface IProps {
4
- exitCallback: IRecommendationProps["exitCallback"];
5
- }
6
- interface IState {
7
- hello: string;
8
- }
9
- export default class Header extends React.Component<IProps, IState> {
10
- state: IState;
11
- render(): JSX.Element;
12
- }
13
- export declare const headerStyles: {
14
- backgroundColour: {
15
- backgroundColor: string;
16
- };
17
- margin: {
18
- margin: string;
19
- flexDirection: "row";
20
- flex: number;
21
- };
22
- headerContainer: {
23
- flexDirection: "row";
24
- flex: number;
25
- };
26
- exitButtonContainer: {
27
- flex: number;
28
- };
29
- exitButton: {
30
- flex: number;
31
- };
32
- iconStyle: {
33
- fontSize: number;
34
- color: string;
35
- };
36
- headerTextContainer: {
37
- flex: number;
38
- justifyContent: "center";
39
- alignItems: "center";
40
- marginTop: string;
41
- };
42
- headerText: {
43
- fontSize: number;
44
- fontWeight: "bold";
45
- textAlign: "center";
46
- color: string;
47
- };
48
- headerFiller: {
49
- flex: number;
50
- };
51
- };
52
- export {};
1
+ import React from "react";
2
+ import { IRecommendationProps } from "../RecommendationScreen";
3
+ interface IProps {
4
+ exitCallback: IRecommendationProps["exitCallback"];
5
+ }
6
+ interface IState {
7
+ hello: string;
8
+ }
9
+ export default class Header extends React.Component<IProps, IState> {
10
+ state: IState;
11
+ render(): JSX.Element;
12
+ }
13
+ export declare const headerStyles: {
14
+ backgroundColour: {
15
+ backgroundColor: string;
16
+ };
17
+ margin: {
18
+ margin: string;
19
+ flexDirection: "row";
20
+ flex: number;
21
+ };
22
+ headerContainer: {
23
+ flexDirection: "row";
24
+ flex: number;
25
+ };
26
+ exitButtonContainer: {
27
+ flex: number;
28
+ };
29
+ exitButton: {
30
+ flex: number;
31
+ };
32
+ iconStyle: {
33
+ fontSize: number;
34
+ color: string;
35
+ };
36
+ headerTextContainer: {
37
+ flex: number;
38
+ justifyContent: "center";
39
+ alignItems: "center";
40
+ marginTop: string;
41
+ };
42
+ headerText: {
43
+ fontSize: number;
44
+ fontWeight: "bold";
45
+ textAlign: "center";
46
+ color: string;
47
+ };
48
+ headerFiller: {
49
+ flex: number;
50
+ };
51
+ };
52
+ export {};
@@ -1,22 +1,22 @@
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.headerStyles = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const react_native_1 = require("react-native");
9
- const i18nUtils_1 = require("../locale/i18nUtils");
10
- const Constants_1 = require("../utils/Constants");
11
- const Icon_1 = __importDefault(require("./Icon"));
12
- class Header extends react_1.default.Component {
13
- constructor() {
14
- super(...arguments);
15
- this.state = {
16
- hello: `World`,
17
- };
18
- }
19
- render() {
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.headerStyles = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const react_native_1 = require("react-native");
9
+ const i18nUtils_1 = require("../locale/i18nUtils");
10
+ const Constants_1 = require("../utils/Constants");
11
+ const Icon_1 = __importDefault(require("./Icon"));
12
+ class Header extends react_1.default.Component {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.state = {
16
+ hello: `World`,
17
+ };
18
+ }
19
+ render() {
20
20
  return (<react_1.default.Fragment>
21
21
  <react_native_1.SafeAreaView style={exports.headerStyles.backgroundColour}/>
22
22
  <react_native_1.View style={exports.headerStyles.headerContainer}>
@@ -37,46 +37,46 @@ class Header extends react_1.default.Component {
37
37
  <react_native_1.View style={exports.headerStyles.headerFiller}/>
38
38
  </react_native_1.View>
39
39
  </react_native_1.View>
40
- </react_1.default.Fragment>);
41
- }
42
- }
43
- exports.default = Header;
44
- exports.headerStyles = react_native_1.StyleSheet.create({
45
- backgroundColour: {
46
- backgroundColor: Constants_1.BACKGROUND_COLOUR_PURPLE,
47
- },
48
- margin: {
49
- margin: `3%`,
50
- flexDirection: `row`,
51
- flex: 1,
52
- },
53
- headerContainer: {
54
- flexDirection: `row`,
55
- flex: 1,
56
- },
57
- exitButtonContainer: {
58
- flex: 1,
59
- },
60
- exitButton: {
61
- flex: 1,
62
- },
63
- iconStyle: {
64
- fontSize: react_native_1.Dimensions.get(`screen`).width / 10,
65
- color: Constants_1.BORDER_COLOUR_WHITE,
66
- },
67
- headerTextContainer: {
68
- flex: 5,
69
- justifyContent: `center`,
70
- alignItems: `center`,
71
- marginTop: `5%`,
72
- },
73
- headerText: {
74
- fontSize: react_native_1.Dimensions.get(`screen`).width / 14,
75
- fontWeight: `bold`,
76
- textAlign: `center`,
77
- color: `white`,
78
- },
79
- headerFiller: {
80
- flex: 1,
81
- },
82
- });
40
+ </react_1.default.Fragment>);
41
+ }
42
+ }
43
+ exports.default = Header;
44
+ exports.headerStyles = react_native_1.StyleSheet.create({
45
+ backgroundColour: {
46
+ backgroundColor: Constants_1.BACKGROUND_COLOUR_PURPLE,
47
+ },
48
+ margin: {
49
+ margin: `3%`,
50
+ flexDirection: `row`,
51
+ flex: 1,
52
+ },
53
+ headerContainer: {
54
+ flexDirection: `row`,
55
+ flex: 1,
56
+ },
57
+ exitButtonContainer: {
58
+ flex: 1,
59
+ },
60
+ exitButton: {
61
+ flex: 1,
62
+ },
63
+ iconStyle: {
64
+ fontSize: react_native_1.Dimensions.get(`screen`).width / 10,
65
+ color: Constants_1.BORDER_COLOUR_WHITE,
66
+ },
67
+ headerTextContainer: {
68
+ flex: 5,
69
+ justifyContent: `center`,
70
+ alignItems: `center`,
71
+ marginTop: `5%`,
72
+ },
73
+ headerText: {
74
+ fontSize: react_native_1.Dimensions.get(`screen`).width / 14,
75
+ fontWeight: `bold`,
76
+ textAlign: `center`,
77
+ color: `white`,
78
+ },
79
+ headerFiller: {
80
+ flex: 1,
81
+ },
82
+ });
File without changes
File without changes
@@ -1,67 +1,67 @@
1
- import React from "react";
2
- export interface IProps {
3
- label: string;
4
- value?: string;
5
- units: string;
6
- showZeroAsDash: boolean;
7
- }
8
- export default class InfoBars extends React.Component<IProps> {
9
- render(): JSX.Element;
10
- }
11
- export declare const infoStyles: {
12
- container: {
13
- flex: number;
14
- };
15
- margin: {
16
- flex: number;
17
- margin: string;
18
- marginBottom: number;
19
- };
20
- border: {
21
- borderWidth: number;
22
- borderColor: string;
23
- borderRadius: number;
24
- };
25
- borderContainer: {
26
- flex: number;
27
- flexDirection: "row";
28
- justifyContent: "space-between";
29
- paddingLeft: string;
30
- paddingRight: string;
31
- };
32
- labelContainer: {
33
- flex: number;
34
- justifyContent: "center";
35
- };
36
- label: {
37
- color: string;
38
- fontSize: number;
39
- fontWeight: "bold";
40
- };
41
- valueUnitContainer: {
42
- flex: number;
43
- justifyContent: "flex-end";
44
- flexDirection: "row";
45
- };
46
- valueContainer: {
47
- flex: number;
48
- justifyContent: "flex-end";
49
- };
50
- value: {
51
- color: string;
52
- fontSize: number;
53
- fontWeight: "bold";
54
- textAlign: "right";
55
- };
56
- unitContainer: {
57
- flex: number;
58
- justifyContent: "flex-end";
59
- paddingBottom: string;
60
- };
61
- units: {
62
- color: string;
63
- fontSize: number;
64
- textAlign: "left";
65
- paddingLeft: string;
66
- };
67
- };
1
+ import React from "react";
2
+ export interface IProps {
3
+ label: string;
4
+ value?: string;
5
+ units: string;
6
+ showZeroAsDash: boolean;
7
+ }
8
+ export default class InfoBars extends React.Component<IProps> {
9
+ render(): JSX.Element;
10
+ }
11
+ export declare const infoStyles: {
12
+ container: {
13
+ flex: number;
14
+ };
15
+ margin: {
16
+ flex: number;
17
+ margin: string;
18
+ marginBottom: number;
19
+ };
20
+ border: {
21
+ borderWidth: number;
22
+ borderColor: string;
23
+ borderRadius: number;
24
+ };
25
+ borderContainer: {
26
+ flex: number;
27
+ flexDirection: "row";
28
+ justifyContent: "space-between";
29
+ paddingLeft: string;
30
+ paddingRight: string;
31
+ };
32
+ labelContainer: {
33
+ flex: number;
34
+ justifyContent: "center";
35
+ };
36
+ label: {
37
+ color: string;
38
+ fontSize: number;
39
+ fontWeight: "bold";
40
+ };
41
+ valueUnitContainer: {
42
+ flex: number;
43
+ justifyContent: "flex-end";
44
+ flexDirection: "row";
45
+ };
46
+ valueContainer: {
47
+ flex: number;
48
+ justifyContent: "flex-end";
49
+ };
50
+ value: {
51
+ color: string;
52
+ fontSize: number;
53
+ fontWeight: "bold";
54
+ textAlign: "right";
55
+ };
56
+ unitContainer: {
57
+ flex: number;
58
+ justifyContent: "flex-end";
59
+ paddingBottom: string;
60
+ };
61
+ units: {
62
+ color: string;
63
+ fontSize: number;
64
+ textAlign: "left";
65
+ paddingLeft: string;
66
+ };
67
+ };
@@ -1,15 +1,15 @@
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.infoStyles = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const react_native_1 = require("react-native");
9
- const Constants_1 = require("../utils/Constants");
10
- const Header_1 = require("./Header");
11
- class InfoBars extends react_1.default.Component {
12
- render() {
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.infoStyles = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const react_native_1 = require("react-native");
9
+ const Constants_1 = require("../utils/Constants");
10
+ const Header_1 = require("./Header");
11
+ class InfoBars extends react_1.default.Component {
12
+ render() {
13
13
  return (<react_native_1.View style={exports.infoStyles.container}>
14
14
  <react_native_1.View style={exports.infoStyles.margin}>
15
15
  <react_native_1.View style={exports.infoStyles.border}>
@@ -28,62 +28,62 @@ class InfoBars extends react_1.default.Component {
28
28
  </react_native_1.View>
29
29
  </react_native_1.View>
30
30
  </react_native_1.View>
31
- </react_native_1.View>);
32
- }
33
- }
34
- exports.default = InfoBars;
35
- exports.infoStyles = react_native_1.StyleSheet.create({
36
- container: { flex: 1 },
37
- margin: {
38
- flex: 1,
39
- margin: Header_1.headerStyles.margin.margin,
40
- marginBottom: 0,
41
- },
42
- border: {
43
- borderWidth: 2,
44
- borderColor: Constants_1.BORDER_COLOUR_WHITE,
45
- borderRadius: 5,
46
- },
47
- borderContainer: {
48
- flex: 1,
49
- flexDirection: `row`,
50
- justifyContent: `space-between`,
51
- paddingLeft: `3%`,
52
- paddingRight: `3%`,
53
- },
54
- labelContainer: {
55
- flex: 7,
56
- justifyContent: `center`,
57
- },
58
- label: {
59
- color: `white`,
60
- fontSize: react_native_1.Dimensions.get(`screen`).width / 22,
61
- fontWeight: `bold`,
62
- },
63
- valueUnitContainer: {
64
- flex: 4,
65
- justifyContent: `flex-end`,
66
- flexDirection: `row`,
67
- },
68
- valueContainer: {
69
- flex: 1,
70
- justifyContent: `flex-end`,
71
- },
72
- value: {
73
- color: `white`,
74
- fontSize: react_native_1.Dimensions.get(`screen`).width / 16,
75
- fontWeight: `bold`,
76
- textAlign: `right`,
77
- },
78
- unitContainer: {
79
- flex: 1,
80
- justifyContent: `flex-end`,
81
- paddingBottom: `3%`,
82
- },
83
- units: {
84
- color: `white`,
85
- fontSize: react_native_1.Dimensions.get(`screen`).width / 30,
86
- textAlign: `left`,
87
- paddingLeft: `5%`,
88
- },
89
- });
31
+ </react_native_1.View>);
32
+ }
33
+ }
34
+ exports.default = InfoBars;
35
+ exports.infoStyles = react_native_1.StyleSheet.create({
36
+ container: { flex: 1 },
37
+ margin: {
38
+ flex: 1,
39
+ margin: Header_1.headerStyles.margin.margin,
40
+ marginBottom: 0,
41
+ },
42
+ border: {
43
+ borderWidth: 2,
44
+ borderColor: Constants_1.BORDER_COLOUR_WHITE,
45
+ borderRadius: 5,
46
+ },
47
+ borderContainer: {
48
+ flex: 1,
49
+ flexDirection: `row`,
50
+ justifyContent: `space-between`,
51
+ paddingLeft: `3%`,
52
+ paddingRight: `3%`,
53
+ },
54
+ labelContainer: {
55
+ flex: 7,
56
+ justifyContent: `center`,
57
+ },
58
+ label: {
59
+ color: `white`,
60
+ fontSize: react_native_1.Dimensions.get(`screen`).width / 22,
61
+ fontWeight: `bold`,
62
+ },
63
+ valueUnitContainer: {
64
+ flex: 4,
65
+ justifyContent: `flex-end`,
66
+ flexDirection: `row`,
67
+ },
68
+ valueContainer: {
69
+ flex: 1,
70
+ justifyContent: `flex-end`,
71
+ },
72
+ value: {
73
+ color: `white`,
74
+ fontSize: react_native_1.Dimensions.get(`screen`).width / 16,
75
+ fontWeight: `bold`,
76
+ textAlign: `right`,
77
+ },
78
+ unitContainer: {
79
+ flex: 1,
80
+ justifyContent: `flex-end`,
81
+ paddingBottom: `3%`,
82
+ },
83
+ units: {
84
+ color: `white`,
85
+ fontSize: react_native_1.Dimensions.get(`screen`).width / 30,
86
+ textAlign: `left`,
87
+ paddingLeft: `5%`,
88
+ },
89
+ });
File without changes