react-native-macos 0.75.25 → 0.75.26
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/Libraries/Components/TextInput/TextInput.d.ts +16 -0
- package/Libraries/Components/TextInput/TextInput.flow.js +2 -0
- package/Libraries/Components/TextInput/TextInput.js +4 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
|
@@ -1029,6 +1029,22 @@ interface TextInputState {
|
|
|
1029
1029
|
* noop if it wasn't focused
|
|
1030
1030
|
*/
|
|
1031
1031
|
blurTextInput(textField?: React.ElementRef<HostComponent<unknown>>): void;
|
|
1032
|
+
|
|
1033
|
+
// [macOS
|
|
1034
|
+
/**
|
|
1035
|
+
* @param textField ref of the text field that was focused
|
|
1036
|
+
* Call on custom implementations of TextInput to notify the control was focused
|
|
1037
|
+
* noop if it was already focused
|
|
1038
|
+
*/
|
|
1039
|
+
onTextInputFocus(textField?: React.ElementRef<HostComponent<unknown>>): void;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* @param textField ref of the text field that was blurred
|
|
1043
|
+
* Call on custom implementations of TextInput to notify the control was blurred
|
|
1044
|
+
* noop if it wasn't focused
|
|
1045
|
+
*/
|
|
1046
|
+
onTextInputBlur(textField?: React.ElementRef<HostComponent<unknown>>): void;
|
|
1047
|
+
// macOS]
|
|
1032
1048
|
}
|
|
1033
1049
|
|
|
1034
1050
|
/**
|
|
@@ -1223,6 +1223,8 @@ export type TextInputComponentStatics = $ReadOnly<{|
|
|
|
1223
1223
|
currentlyFocusedField: () => ?number,
|
|
1224
1224
|
focusTextInput: (textField: ?ComponentRef) => void,
|
|
1225
1225
|
blurTextInput: (textField: ?ComponentRef) => void,
|
|
1226
|
+
onTextInputFocus: (textField: ?ComponentRef) => void, // [macOS]
|
|
1227
|
+
onTextInputBlur: (textField: ?ComponentRef) => void, // [macOS]
|
|
1226
1228
|
|}>,
|
|
1227
1229
|
|}>;
|
|
1228
1230
|
|
|
@@ -1877,6 +1877,8 @@ ExportedForwardRef.State = {
|
|
|
1877
1877
|
currentlyFocusedField: TextInputState.currentlyFocusedField,
|
|
1878
1878
|
focusTextInput: TextInputState.focusTextInput,
|
|
1879
1879
|
blurTextInput: TextInputState.blurTextInput,
|
|
1880
|
+
onTextInputFocus: TextInputState.focusInput, // [macOS]
|
|
1881
|
+
onTextInputBlur: TextInputState.blurInput, // [macOS]
|
|
1880
1882
|
};
|
|
1881
1883
|
|
|
1882
1884
|
export type TextInputComponentStatics = $ReadOnly<{|
|
|
@@ -1885,6 +1887,8 @@ export type TextInputComponentStatics = $ReadOnly<{|
|
|
|
1885
1887
|
currentlyFocusedField: typeof TextInputState.currentlyFocusedField,
|
|
1886
1888
|
focusTextInput: typeof TextInputState.focusTextInput,
|
|
1887
1889
|
blurTextInput: typeof TextInputState.blurTextInput,
|
|
1890
|
+
onTextInputFocus: typeof TextInputState.focusInput, // [macOS]
|
|
1891
|
+
onTextInputBlur: typeof TextInputState.blurInput, // [macOS]
|
|
1888
1892
|
|}>,
|
|
1889
1893
|
|}>;
|
|
1890
1894
|
|
package/React/Base/RCTVersion.m
CHANGED