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

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.
@@ -158,10 +158,10 @@ export interface FormProps<T extends FieldValues, SubmitResponseType> {
158
158
  */
159
159
  renderFooter?: React.ReactNode;
160
160
  /**
161
+ * @internal Do not use this prop. It is a hack and will be removed.
161
162
  * TODO: JOB-147156 This is a HACK for multiline inputs on iOS scrolling issue.
162
163
  * Disables the keyboard aware scroll view.
163
- * This is useful when you want to disable the keyboard aware scroll view for a specific form.
164
- * For example, when you have a form with a lot of fields and you want to disable the keyboard aware scroll view.
164
+ * This is needed to fix issues with multiline inputs on iOS. DO NOT
165
165
  */
166
166
  disableKeyboardAwareScroll?: boolean;
167
167
  }
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",
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": "33b55b62a1a0046c1021d15feba75d331123e89d"
100
100
  }
package/src/Form/types.ts CHANGED
@@ -203,10 +203,10 @@ export interface FormProps<T extends FieldValues, SubmitResponseType> {
203
203
  renderFooter?: React.ReactNode;
204
204
 
205
205
  /**
206
+ * @internal Do not use this prop. It is a hack and will be removed.
206
207
  * TODO: JOB-147156 This is a HACK for multiline inputs on iOS scrolling issue.
207
208
  * Disables the keyboard aware scroll view.
208
- * This is useful when you want to disable the keyboard aware scroll view for a specific form.
209
- * For example, when you have a form with a lot of fields and you want to disable the keyboard aware scroll view.
209
+ * This is needed to fix issues with multiline inputs on iOS. DO NOT
210
210
  */
211
211
  disableKeyboardAwareScroll?: boolean;
212
212
  }
@@ -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}