@jobber/components-native 0.95.2-JOB-141866-a6ee36d.22 → 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.
|
@@ -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<
|