@hedia/recommendation-screen 2.1.46 → 2.1.47-alpha.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.
@@ -27,9 +27,7 @@ export default class Remeasure extends React.Component {
27
27
  * 1. Call the setNativeProps() method on the slider to set its value to the remeasureTime prop.
28
28
  */
29
29
  componentDidMount() {
30
- this.slider?.setNativeProps({
31
- value: this.props.remeasureTime,
32
- });
30
+ this.slider?.setNativeProps({ value: this.props.remeasureTime });
33
31
  }
34
32
  /**
35
33
  * Steps:
@@ -77,11 +75,13 @@ export default class Remeasure extends React.Component {
77
75
  </View>) : null}
78
76
  </View>
79
77
  </View>
80
- <Slider ref={(slider) => {
78
+ <Slider
79
+ // @ts-ignore
80
+ ref={(slider) => {
81
81
  if (slider !== null) {
82
82
  this.slider = slider;
83
83
  }
84
- }} testID={Testing.Id.RemeasureTestIds.RemeasureSlider} maximumTrackTintColor={BORDER_COLOUR_GREY} minimumTrackTintColor={BORDER_COLOUR_TEAL} thumbTintColor={BORDER_COLOUR_TEAL} maximumValue={6} minimumValue={0} step={0.5} style={[remeasureStyles.sliderStyle, { marginHorizontal }]} onValueChange={this.handleSliderChange}/>
84
+ }} tapToSeek={true} testID={Testing.Id.RemeasureTestIds.RemeasureSlider} maximumTrackTintColor={BORDER_COLOUR_GREY} minimumTrackTintColor={BORDER_COLOUR_TEAL} thumbTintColor={BORDER_COLOUR_TEAL} maximumValue={6} minimumValue={0} step={0.5} style={[remeasureStyles.sliderStyle, { marginHorizontal }]} onValueChange={this.handleSliderChange}/>
85
85
  </View>);
86
86
  }
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/recommendation-screen",
3
- "version": "2.1.46",
3
+ "version": "2.1.47-alpha.0",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -18,7 +18,7 @@
18
18
  "prettier-fix": "prettier --write \"**/*.{ts,tsx}\"",
19
19
  "pkg-json-lint": "npmPkgJsonLint .",
20
20
  "package-audit": "npm-audit --critical --warn",
21
- "prepublishOnly": "npm ci --ignore-scripts && npm run build",
21
+ "prepublishOnly": "npm ci --ignore-scripts --legacy-peer-deps && npm run build",
22
22
  "postpublish": "npm run clean",
23
23
  "a": "index-git.sh && cd android && gradlew clean && cd .. && react-native run-android",
24
24
  "start": "react-native start",
@@ -48,7 +48,7 @@
48
48
  "@babel/runtime": "7.12.5",
49
49
  "@hedia/npm-audit-pipeline": "0.5.0",
50
50
  "@hedia/recommendation-calculator": "2.0.15",
51
- "@react-native-community/slider": "3.0.0",
51
+ "@react-native-community/slider": "4.3.1",
52
52
  "@testing-library/jest-native": "3.1.0",
53
53
  "@types/jest": "26.0.24",
54
54
  "@types/lingui__core": "2.7.0",
@@ -84,13 +84,13 @@
84
84
  "@lingui/cli": "2.9.2",
85
85
  "@lingui/macro": "2.9.2",
86
86
  "@lingui/react": "2.9.2",
87
- "moment": "2.29.3",
87
+ "moment": "2.29.4",
88
88
  "react-native-modal": "13.0.0"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@hedia/recommendation-calculator": "2.0.15",
92
92
  "@lingui/macro": "2.9.2",
93
- "@react-native-community/slider": "3.0.0",
93
+ "@react-native-community/slider": "4.3.1",
94
94
  "react-native-linear-gradient": "2.5.6",
95
95
  "react-native-vector-icons": "9.1.0"
96
96
  }