@hedia/recommendation-screen 2.1.47-alpha.1 → 2.1.47-alpha.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.
@@ -27,7 +27,9 @@ 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({ value: this.props.remeasureTime });
30
+ this.slider?.setNativeProps({
31
+ value: this.props.remeasureTime,
32
+ });
31
33
  }
32
34
  /**
33
35
  * Steps:
@@ -75,13 +77,11 @@ export default class Remeasure extends React.Component {
75
77
  </View>) : null}
76
78
  </View>
77
79
  </View>
78
- <Slider
79
- // @ts-ignore
80
- ref={(slider) => {
80
+ <Slider ref={(slider) => {
81
81
  if (slider !== null) {
82
82
  this.slider = slider;
83
83
  }
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}/>
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}/>
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.47-alpha.1",
3
+ "version": "2.1.47-alpha.3",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -18,6 +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
+ "pipeline": "npm run tsc && npm run lint && npm run pkg-json-lint && npm run prettier && npm run package-audit",
21
22
  "prepublishOnly": "npm ci --ignore-scripts --legacy-peer-deps && npm run build",
22
23
  "postpublish": "npm run clean",
23
24
  "a": "index-git.sh && cd android && gradlew clean && cd .. && react-native run-android",
@@ -26,7 +27,8 @@
26
27
  "extract": "lingui extract",
27
28
  "extract-clean": "lingui extract --clean",
28
29
  "compile": "npm run cleanLanguage && lingui compile",
29
- "cleanLanguage": "node ./src/locale/CleanLanguage.ts"
30
+ "cleanLanguage": "node ./src/locale/CleanLanguage.ts",
31
+ "prepare": "husky install"
30
32
  },
31
33
  "keywords": [
32
34
  "Hedia",
@@ -48,7 +50,7 @@
48
50
  "@babel/runtime": "7.12.5",
49
51
  "@hedia/npm-audit-pipeline": "0.5.0",
50
52
  "@hedia/recommendation-calculator": "2.0.15",
51
- "@react-native-community/slider": "4.3.1",
53
+ "@react-native-community/slider": "3.0.0",
52
54
  "@testing-library/jest-native": "3.1.0",
53
55
  "@types/jest": "26.0.24",
54
56
  "@types/lingui__core": "2.7.0",
@@ -61,6 +63,7 @@
61
63
  "babel-jest": "26.0.1",
62
64
  "babel-loader": "8.1.0",
63
65
  "babel-plugin-macros": "2.8.0",
66
+ "husky": "8.0.1",
64
67
  "jest": "26.6.3",
65
68
  "metro-react-native-babel-preset": "0.66.2",
66
69
  "npm-package-json-lint": "5.4.1",
@@ -90,7 +93,7 @@
90
93
  "peerDependencies": {
91
94
  "@hedia/recommendation-calculator": "2.0.15",
92
95
  "@lingui/macro": "2.9.2",
93
- "@react-native-community/slider": "4.3.1",
96
+ "@react-native-community/slider": "3.0.0",
94
97
  "react-native-linear-gradient": "2.5.6",
95
98
  "react-native-vector-icons": "9.1.0"
96
99
  }