react-native-macos 0.74.27 → 0.74.28

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.
@@ -1048,6 +1048,22 @@ interface TextInputState {
1048
1048
  * noop if it wasn't focused
1049
1049
  */
1050
1050
  blurTextInput(textField?: React.ElementRef<HostComponent<unknown>>): void;
1051
+
1052
+ // [macOS
1053
+ /**
1054
+ * @param textField ref of the text field that was focused
1055
+ * Call on custom implementations of TextInput to notify the control was focused
1056
+ * noop if it was already focused
1057
+ */
1058
+ onTextInputFocus(textField?: React.ElementRef<HostComponent<unknown>>): void;
1059
+
1060
+ /**
1061
+ * @param textField ref of the text field that was blurred
1062
+ * Call on custom implementations of TextInput to notify the control was blurred
1063
+ * noop if it wasn't focused
1064
+ */
1065
+ onTextInputBlur(textField?: React.ElementRef<HostComponent<unknown>>): void;
1066
+ // macOS]
1051
1067
  }
1052
1068
 
1053
1069
  /**
@@ -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
 
@@ -1934,6 +1934,8 @@ ExportedForwardRef.State = {
1934
1934
  currentlyFocusedField: TextInputState.currentlyFocusedField,
1935
1935
  focusTextInput: TextInputState.focusTextInput,
1936
1936
  blurTextInput: TextInputState.blurTextInput,
1937
+ onTextInputFocus: TextInputState.focusInput, // [macOS]
1938
+ onTextInputBlur: TextInputState.blurInput, // [macOS]
1937
1939
  };
1938
1940
 
1939
1941
  export type TextInputComponentStatics = $ReadOnly<{|
@@ -1942,6 +1944,8 @@ export type TextInputComponentStatics = $ReadOnly<{|
1942
1944
  currentlyFocusedField: typeof TextInputState.currentlyFocusedField,
1943
1945
  focusTextInput: typeof TextInputState.focusTextInput,
1944
1946
  blurTextInput: typeof TextInputState.blurTextInput,
1947
+ onTextInputFocus: typeof TextInputState.focusInput, // [macOS]
1948
+ onTextInputBlur: typeof TextInputState.blurInput, // [macOS]
1945
1949
  |}>,
1946
1950
  |}>;
1947
1951
 
@@ -16,7 +16,7 @@ const version: $ReadOnly<{
16
16
  }> = {
17
17
  major: 0,
18
18
  minor: 74,
19
- patch: 27,
19
+ patch: 28,
20
20
  prerelease: null,
21
21
  };
22
22
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(74),
26
- RCTVersionPatch: @(27),
26
+ RCTVersionPatch: @(28),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.74.27
1
+ VERSION_NAME=0.74.28
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 74,
20
- "patch", 27,
20
+ "patch", 28,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 74;
20
- int32_t Patch = 27;
20
+ int32_t Patch = 28;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.74.27",
3
+ "version": "0.74.28",
4
4
  "description": "React Native for macOS",
5
5
  "license": "MIT",
6
6
  "repository": {