@jobber/components-native 0.95.2-JOB-141866-a6ee36d.22 → 0.95.2-JOB-141866-5052098.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.95.2-JOB-141866-a6ee36d.22+a6ee36d10",
3
+ "version": "0.95.2-JOB-141866-5052098.24+505209802",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -96,5 +96,5 @@
96
96
  "react-native-safe-area-context": "^5.4.0",
97
97
  "react-native-svg": ">=12.0.0"
98
98
  },
99
- "gitHead": "a6ee36d10f2c1ba08f20ad6bb9019e274bcee16f"
99
+ "gitHead": "5052098024ddd00b6992954ce35278a551c13ed4"
100
100
  }
@@ -420,7 +420,13 @@ function InputTextInternal(
420
420
  autoFocus={autoFocus}
421
421
  autoComplete={autoComplete}
422
422
  multiline={multiline}
423
- scrollEnabled={false}
423
+ // TODO: JOB-147156 This is a HACK for multiline inputs on iOS scrolling issue.
424
+ // This hack should be removed once we swap keyboard aware libraries in JOB-147156
425
+ // If this is needed then we need to figure out a better solution.
426
+ // Makes sure it doesn't jump to the top of the screen when the keyboard is shown and a new line is added.
427
+ // This is tech debt related to an issue where keyboard aware scrollview doesn't work if `scrollEnabled` is true. However,
428
+ // when `scrollEnabled` is false it causes an issue where super long text inputs will jump to the top when a new line is added to the bottom of the input.
429
+ scrollEnabled={Platform.OS === "ios" && multiline}
424
430
  textContentType={textContentType}
425
431
  onChangeText={handleChangeText}
426
432
  onSubmitEditing={handleOnSubmitEditing}