Skip to content

Commit e8dd2c3

Browse files
committed
fix types + update snapshot
1 parent 84341e4 commit e8dd2c3

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/react-native/Libraries/Components/TextInput/TextInput.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,8 @@ export type TextInputComponentStatics = $ReadOnly<{|
20552055
currentlyFocusedField: typeof TextInputState.currentlyFocusedField,
20562056
focusTextInput: typeof TextInputState.focusTextInput,
20572057
blurTextInput: typeof TextInputState.blurTextInput,
2058+
onTextInputFocus: typeof TextInputState.focusInput, // [macOS]
2059+
onTextInputBlur: typeof TextInputState.blurInput, // [macOS]
20582060
|}>,
20592061
|}>;
20602062

packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3303,6 +3303,8 @@ export type TextInputComponentStatics = $ReadOnly<{|
33033303
currentlyFocusedField: () => ?number,
33043304
focusTextInput: (textField: ?HostInstance) => void,
33053305
blurTextInput: (textField: ?HostInstance) => void,
3306+
onTextInputFocus: (textField: ?HostInstance) => void,
3307+
onTextInputBlur: (textField: ?HostInstance) => void,
33063308
|}>,
33073309
|}>;
33083310
export type TextInputType = InternalTextInput & TextInputComponentStatics;
@@ -3702,6 +3704,8 @@ export type TextInputComponentStatics = $ReadOnly<{|
37023704
currentlyFocusedField: typeof TextInputState.currentlyFocusedField,
37033705
focusTextInput: typeof TextInputState.focusTextInput,
37043706
blurTextInput: typeof TextInputState.blurTextInput,
3707+
onTextInputFocus: typeof TextInputState.focusInput,
3708+
onTextInputBlur: typeof TextInputState.blurInput,
37053709
|}>,
37063710
|}>;
37073711
declare module.exports: TextInputType;

0 commit comments

Comments
 (0)