@hedia/recommendation-screen 2.1.27-alpha.8 → 2.1.27

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 (47) hide show
  1. package/package.json +1 -1
  2. package/src/components/InvisibleNumberInput.js +16 -3
  3. package/coverage/clover.xml +0 -715
  4. package/coverage/coverage-final.json +0 -28
  5. package/coverage/lcov-report/base.css +0 -224
  6. package/coverage/lcov-report/block-navigation.js +0 -79
  7. package/coverage/lcov-report/favicon.png +0 -0
  8. package/coverage/lcov-report/index.html +0 -201
  9. package/coverage/lcov-report/prettify.css +0 -1
  10. package/coverage/lcov-report/prettify.js +0 -2
  11. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  12. package/coverage/lcov-report/sorter.js +0 -170
  13. package/coverage/lcov-report/src/RecommendationScreen.tsx.html +0 -2501
  14. package/coverage/lcov-report/src/__tests__/index.html +0 -111
  15. package/coverage/lcov-report/src/__tests__/utils.tsx.html +0 -533
  16. package/coverage/lcov-report/src/components/Header.tsx.html +0 -356
  17. package/coverage/lcov-report/src/components/InfoBars.tsx.html +0 -518
  18. package/coverage/lcov-report/src/components/InvisibleNumberInput.tsx.html +0 -539
  19. package/coverage/lcov-report/src/components/LimitationMessage.tsx.html +0 -209
  20. package/coverage/lcov-report/src/components/LineSeparator.tsx.html +0 -161
  21. package/coverage/lcov-report/src/components/RecentInsulin.tsx.html +0 -410
  22. package/coverage/lcov-report/src/components/RecommendationModal.tsx.html +0 -923
  23. package/coverage/lcov-report/src/components/RecommendedCarbs.tsx.html +0 -1061
  24. package/coverage/lcov-report/src/components/RecommendedInsulin.tsx.html +0 -779
  25. package/coverage/lcov-report/src/components/Remeasure.tsx.html +0 -551
  26. package/coverage/lcov-report/src/components/TransferToLogbook.tsx.html +0 -443
  27. package/coverage/lcov-report/src/components/TwoOptionModal.tsx.html +0 -665
  28. package/coverage/lcov-report/src/components/activity/Activity.tsx.html +0 -371
  29. package/coverage/lcov-report/src/components/activity/ActivityIcon.tsx.html +0 -281
  30. package/coverage/lcov-report/src/components/activity/ActivityIntensity.tsx.html +0 -281
  31. package/coverage/lcov-report/src/components/activity/index.html +0 -141
  32. package/coverage/lcov-report/src/components/index.html +0 -276
  33. package/coverage/lcov-report/src/components/mood/Emotion.tsx.html +0 -353
  34. package/coverage/lcov-report/src/components/mood/MoodIcon.tsx.html +0 -335
  35. package/coverage/lcov-report/src/components/mood/index.html +0 -126
  36. package/coverage/lcov-report/src/index.html +0 -111
  37. package/coverage/lcov-report/src/locale/i18nUtils.ts.html +0 -206
  38. package/coverage/lcov-report/src/locale/index.html +0 -111
  39. package/coverage/lcov-report/src/utils/AttentionMessages.tsx.html +0 -554
  40. package/coverage/lcov-report/src/utils/Constants.ts.html +0 -248
  41. package/coverage/lcov-report/src/utils/RecommendationError.tsx.html +0 -620
  42. package/coverage/lcov-report/src/utils/RecommendationUtils.ts.html +0 -764
  43. package/coverage/lcov-report/src/utils/Translations.ts.html +0 -131
  44. package/coverage/lcov-report/src/utils/Utils.ts.html +0 -545
  45. package/coverage/lcov-report/src/utils/Validations.ts.html +0 -1544
  46. package/coverage/lcov-report/src/utils/index.html +0 -201
  47. package/coverage/lcov.info +0 -1610
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/recommendation-screen",
3
- "version": "2.1.27-alpha.8",
3
+ "version": "2.1.27",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TextInput } from "react-native";
2
+ import { Platform, StyleSheet, TextInput } from "react-native";
3
3
  /**
4
4
  * InvisibleNumberInput is used to enable numerical input by the user without displaying a traditional input field on the screen.
5
5
  * Since the input field is made invisible and thus can’t be tapped directly by the user we need to be able to call
@@ -100,10 +100,23 @@ export default class InvisibleNumberInput extends React.Component {
100
100
  */
101
101
  render() {
102
102
  const { testID } = this.props;
103
- return (<TextInput testID={testID} accessibilityLabel="InvisibleNumberInput" value={`${this.state.value}`} ref={(textInput) => {
103
+ return (<TextInput testID={testID} accessibilityLabel={`InvisibleNumberInput`} value={`${this.state.value}`} ref={(textInput) => {
104
104
  if (textInput !== null) {
105
105
  this.textInput = textInput;
106
106
  }
107
- }} keyboardType="numeric" onChangeText={this.handleOnChangeText} onEndEditing={this.onEndEdit} maxLength={this.props.maxLength} selectTextOnFocus/>);
107
+ }} style={inputStyles.input} keyboardType={`numeric`} returnKeyType={`done`} onChangeText={this.handleOnChangeText} onEndEditing={this.onEndEdit} maxLength={this.props.maxLength} selectTextOnFocus/>);
108
108
  }
109
109
  }
110
+ const inputStyles = StyleSheet.create({
111
+ input: {
112
+ ...Platform.select({
113
+ ios: {
114
+ width: 0,
115
+ height: 0,
116
+ },
117
+ android: {
118
+ opacity: 0,
119
+ },
120
+ }),
121
+ },
122
+ });