@jobber/components-native 0.95.2-JOB-141866-5052098.24 → 0.95.2-JOB-147120-dc74fc6.9
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/dist/package.json +2 -2
- package/dist/src/Form/Form.js +2 -2
- package/dist/src/InputText/InputText.js +1 -8
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/Form/types.d.ts +0 -7
- package/package.json +2 -2
- package/src/Form/Form.tsx +1 -2
- package/src/Form/types.ts +0 -8
- package/src/InputText/InputText.tsx +1 -7
|
@@ -157,13 +157,6 @@ export interface FormProps<T extends FieldValues, SubmitResponseType> {
|
|
|
157
157
|
* Renders a footer below the save button.
|
|
158
158
|
*/
|
|
159
159
|
renderFooter?: React.ReactNode;
|
|
160
|
-
/**
|
|
161
|
-
* TODO: JOB-147156 This is a HACK for multiline inputs on iOS scrolling issue.
|
|
162
|
-
* 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.
|
|
165
|
-
*/
|
|
166
|
-
disableKeyboardAwareScroll?: boolean;
|
|
167
160
|
}
|
|
168
161
|
export type InternalFormProps<T extends FieldValues, SubmitResponseType> = Omit<FormProps<T, SubmitResponseType>, "initialLoading">;
|
|
169
162
|
export type ValidationRulesByFieldPath<T extends FieldValues> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.95.2-JOB-
|
|
3
|
+
"version": "0.95.2-JOB-147120-dc74fc6.9+dc74fc6e2",
|
|
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": "
|
|
99
|
+
"gitHead": "dc74fc6e2f9e7c6223d3409b7927b8acb72bdc15"
|
|
100
100
|
}
|
package/src/Form/Form.tsx
CHANGED
|
@@ -65,7 +65,6 @@ function InternalForm<T extends FieldValues, S>({
|
|
|
65
65
|
secondaryActions,
|
|
66
66
|
saveButtonOffset,
|
|
67
67
|
showStickySaveButton = false,
|
|
68
|
-
disableKeyboardAwareScroll = false,
|
|
69
68
|
renderFooter,
|
|
70
69
|
UNSAFE_allowDiscardLocalCacheWhenOffline,
|
|
71
70
|
}: InternalFormProps<T, S>) {
|
|
@@ -166,7 +165,7 @@ function InternalForm<T extends FieldValues, S>({
|
|
|
166
165
|
>
|
|
167
166
|
<KeyboardAwareScrollView
|
|
168
167
|
enableResetScrollToCoords={false}
|
|
169
|
-
enableAutomaticScroll={
|
|
168
|
+
enableAutomaticScroll={true}
|
|
170
169
|
enableOnAndroid={edgeToEdgeEnabled}
|
|
171
170
|
keyboardOpeningTime={
|
|
172
171
|
Platform.OS === "ios" ? tokens["timing-slowest"] : 0
|
package/src/Form/types.ts
CHANGED
|
@@ -201,14 +201,6 @@ export interface FormProps<T extends FieldValues, SubmitResponseType> {
|
|
|
201
201
|
* Renders a footer below the save button.
|
|
202
202
|
*/
|
|
203
203
|
renderFooter?: React.ReactNode;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* TODO: JOB-147156 This is a HACK for multiline inputs on iOS scrolling issue.
|
|
207
|
-
* 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.
|
|
210
|
-
*/
|
|
211
|
-
disableKeyboardAwareScroll?: boolean;
|
|
212
204
|
}
|
|
213
205
|
|
|
214
206
|
export type InternalFormProps<T extends FieldValues, SubmitResponseType> = Omit<
|
|
@@ -420,13 +420,7 @@ function InputTextInternal(
|
|
|
420
420
|
autoFocus={autoFocus}
|
|
421
421
|
autoComplete={autoComplete}
|
|
422
422
|
multiline={multiline}
|
|
423
|
-
|
|
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}
|
|
423
|
+
scrollEnabled={false}
|
|
430
424
|
textContentType={textContentType}
|
|
431
425
|
onChangeText={handleChangeText}
|
|
432
426
|
onSubmitEditing={handleOnSubmitEditing}
|