@jobber/components-native 0.40.0 → 0.40.1
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.40.
|
|
3
|
+
"version": "0.40.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"react-native": ">=0.69.2",
|
|
77
77
|
"react-native-modal-datetime-picker": " >=13.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "085162340a9683e608018a1426efc42af94cdf1b"
|
|
80
80
|
}
|
|
@@ -267,6 +267,7 @@ function InputTextInternal(
|
|
|
267
267
|
ref: Ref<InputTextRef>,
|
|
268
268
|
) {
|
|
269
269
|
const isAndroid = Platform.OS === "android";
|
|
270
|
+
const isIOS = Platform.OS === "ios";
|
|
270
271
|
|
|
271
272
|
const {
|
|
272
273
|
input: inputTransform = identity,
|
|
@@ -419,7 +420,13 @@ function InputTextInternal(
|
|
|
419
420
|
);
|
|
420
421
|
|
|
421
422
|
function handleChangeText(value: string) {
|
|
422
|
-
|
|
423
|
+
/**
|
|
424
|
+
* Replacing the U+FFFC character because it's duplicating text
|
|
425
|
+
* when dictating on iOS 16.
|
|
426
|
+
* https://github.com/facebook/react-native/issues/36521#issuecomment-1555421134
|
|
427
|
+
*/
|
|
428
|
+
const removedIOSCharValue = isIOS ? value.replace(/\uFFFC/g, "") : value;
|
|
429
|
+
const newValue = outputTransform(removedIOSCharValue);
|
|
423
430
|
setHasMiniLabel(Boolean(newValue));
|
|
424
431
|
onChangeText?.(newValue);
|
|
425
432
|
field.onChange(newValue);
|