react-native-macos 0.66.72 → 0.66.75

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.
@@ -285,29 +285,37 @@
285
285
 
286
286
  - (void)reactFocus
287
287
  {
288
- if (![self becomeFirstResponder]) {
289
- self.reactIsFocusNeeded = YES;
290
- }
288
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
289
+ if (![[self window] makeFirstResponder:self]) {
290
+ #else
291
+ if (![self becomeFirstResponder]) {
292
+ #endif //// TODO(macOS GH#774)]
293
+ self.reactIsFocusNeeded = YES;
294
+ }
291
295
  }
292
296
 
293
297
  - (void)reactFocusIfNeeded
294
298
  {
295
- if (self.reactIsFocusNeeded) {
296
- if ([self becomeFirstResponder]) {
297
- self.reactIsFocusNeeded = NO;
298
- }
299
- }
299
+ if (self.reactIsFocusNeeded) {
300
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
301
+ if ([[self window] makeFirstResponder:self]) {
302
+ #else
303
+ if ([self becomeFirstResponder]) {
304
+ #endif // TODO(macOS GH#774)]
305
+ self.reactIsFocusNeeded = NO;
306
+ }
307
+ }
300
308
  }
301
309
 
302
310
  - (void)reactBlur
303
311
  {
304
- #if TARGET_OS_OSX // TODO(macOS GH#774)
312
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
305
313
  if (self == [[self window] firstResponder]) {
306
314
  [[self window] makeFirstResponder:[[self window] nextResponder]];
307
315
  }
308
316
  #else
309
317
  [self resignFirstResponder];
310
- #endif
318
+ #endif // TODO(macOS GH#774)]
311
319
  }
312
320
 
313
321
  #pragma mark - Layout
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.66.72
1
+ VERSION_NAME=0.66.75
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -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", 66,
20
- "patch", 72,
20
+ "patch", 75,
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 = 66;
20
- int32_t Patch = 72;
20
+ int32_t Patch = 75;
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.66.72",
3
+ "version": "0.66.75",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.2",
14
- "react-native": "0.66.72"
14
+ "react-native": "0.66.75"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",