@jobber/components-native 0.84.4-CLEANUPre-6d043f4.28 → 0.84.4-CLEANUPre-eb76ad2.29

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.
@@ -1,6 +1,6 @@
1
1
  import type { SyntheticEvent } from "react";
2
2
  import React from "react";
3
- import type { NativeSyntheticEvent, StyleProp, TextInputFocusEventData, TextInputProps, TextStyle } from "react-native";
3
+ import type { FocusEvent, StyleProp, TextInputProps, TextStyle } from "react-native";
4
4
  import { TextInput } from "react-native";
5
5
  import type { RegisterOptions } from "react-hook-form";
6
6
  import type { IconNames } from "@jobber/design";
@@ -65,7 +65,7 @@ export interface InputTextProps extends Pick<InputFieldWrapperProps, "toolbar" |
65
65
  * Callback that is called when the text input is focused
66
66
  * @param event
67
67
  */
68
- readonly onFocus?: (event?: NativeSyntheticEvent<TextInputFocusEventData>) => void;
68
+ readonly onFocus?: (event?: FocusEvent) => void;
69
69
  /**
70
70
  * Callback that is called when the text input is blurred
71
71
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.84.4-CLEANUPre-6d043f4.28+6d043f490",
3
+ "version": "0.84.4-CLEANUPre-eb76ad2.29+eb76ad2fe",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -94,5 +94,5 @@
94
94
  "react-native-safe-area-context": "^5.4.0",
95
95
  "react-native-svg": ">=12.0.0"
96
96
  },
97
- "gitHead": "6d043f4908d39d779d91ffa9fe2e84418734665c"
97
+ "gitHead": "eb76ad2fe51bbac3bfa6c9cc86dbc6a2b41713d0"
98
98
  }
@@ -8,10 +8,9 @@ import React, {
8
8
  useState,
9
9
  } from "react";
10
10
  import type {
11
- NativeSyntheticEvent,
11
+ FocusEvent,
12
12
  ReturnKeyTypeOptions,
13
13
  StyleProp,
14
- TextInputFocusEventData,
15
14
  TextInputProps,
16
15
  TextStyle,
17
16
  } from "react-native";
@@ -113,9 +112,7 @@ export interface InputTextProps
113
112
  * Callback that is called when the text input is focused
114
113
  * @param event
115
114
  */
116
- readonly onFocus?: (
117
- event?: NativeSyntheticEvent<TextInputFocusEventData>,
118
- ) => void;
115
+ readonly onFocus?: (event?: FocusEvent) => void;
119
116
 
120
117
  /**
121
118
  * Callback that is called when the text input is blurred
@@ -423,7 +420,6 @@ function InputTextInternal(
423
420
  onFocus={event => {
424
421
  _name && setFocusedInput(_name);
425
422
  setFocused(true);
426
- // @ts-expect-error - TODO: fix this!
427
423
  onFocus?.(event);
428
424
  }}
429
425
  onBlur={() => {