react-native-macos 0.0.0-bc183b64c → 0.0.0-bea60b79b

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.
@@ -17,5 +17,5 @@ exports.version = {
17
17
  major: 0,
18
18
  minor: 0,
19
19
  patch: 0,
20
- prerelease: 'bc183b64c',
20
+ prerelease: 'bea60b79b',
21
21
  };
@@ -17,6 +17,17 @@ NSString *const RCTTextAttributesTagAttributeName = @"RCTTextAttributesTagAttrib
17
17
 
18
18
  @implementation RCTTextAttributes
19
19
 
20
+ // [TODO(macOS GH#774)
21
+ + (RCTUIColor *)defaultForegroundColor
22
+ {
23
+ if (@available(iOS 13.0, *)) {
24
+ return [RCTUIColor labelColor];
25
+ } else {
26
+ return [RCTUIColor blackColor];
27
+ }
28
+ }
29
+ // ]TODO(macOS GH#774)
30
+
20
31
  - (instancetype)init
21
32
  {
22
33
  if (self = [super init]) {
@@ -31,13 +42,9 @@ NSString *const RCTTextAttributesTagAttributeName = @"RCTTextAttributesTagAttrib
31
42
  _textShadowRadius = NAN;
32
43
  _opacity = NAN;
33
44
  _textTransform = RCTTextTransformUndefined;
34
- // [TODO(OSS Candidate ISS#2710739)
35
- if (@available(iOS 13.0, *)) {
36
- _foregroundColor = [RCTUIColor labelColor];
37
- } else {
38
- _foregroundColor = [RCTUIColor blackColor];
39
- }
40
- // ]TODO(OSS Candidate ISS#2710739)
45
+ // [TODO(macOS GH#774)
46
+ _foregroundColor = [RCTTextAttributes defaultForegroundColor];
47
+ // ]TODO(macOS GH#774)
41
48
  }
42
49
 
43
50
  return self;
@@ -50,7 +57,7 @@ NSString *const RCTTextAttributesTagAttributeName = @"RCTTextAttributesTagAttrib
50
57
  // We will address this in the future.
51
58
 
52
59
  // Color
53
- _foregroundColor = textAttributes->_foregroundColor ?: _foregroundColor;
60
+ _foregroundColor = textAttributes->_foregroundColor == [RCTTextAttributes defaultForegroundColor] ? _foregroundColor : textAttributes->_foregroundColor;
54
61
  _backgroundColor = textAttributes->_backgroundColor ?: _backgroundColor;
55
62
  _opacity = !isnan(textAttributes->_opacity) ? (isnan(_opacity) ? 1.0 : _opacity) * textAttributes->_opacity : _opacity;
56
63
 
@@ -95,7 +95,7 @@
95
95
  - (void)setEnableFocusRing:(BOOL)enableFocusRing {
96
96
  [super setEnableFocusRing:enableFocusRing];
97
97
  if ([_scrollView respondsToSelector:@selector(setEnableFocusRing:)]) {
98
- [_scrollView setEnableFocusRing:YES];
98
+ [_scrollView setEnableFocusRing:enableFocusRing];
99
99
  }
100
100
  }
101
101
 
@@ -28,7 +28,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(0),
30
30
  RCTVersionPatch: @(0),
31
- RCTVersionPrerelease: @"bc183b64c",
31
+ RCTVersionPrerelease: @"bea60b79b",
32
32
  };
33
33
  });
34
34
  return __rnVersion;
@@ -1596,6 +1596,9 @@ NSString* const downArrowPressKey = @"ArrowDown";
1596
1596
  BOOL tabKeyPressed = NO;
1597
1597
  BOOL escapeKeyPressed = NO;
1598
1598
  NSString *key = event.charactersIgnoringModifiers;
1599
+ if ([key length] == 0) {
1600
+ return nil;
1601
+ }
1599
1602
  unichar const code = [key characterAtIndex:0];
1600
1603
 
1601
1604
  // detect arrow key presses
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.0.0-bc183b64c
1
+ VERSION_NAME=0.0.0-bea60b79b
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -22,5 +22,5 @@ public class ReactNativeVersion {
22
22
  "major", 0,
23
23
  "minor", 0,
24
24
  "patch", 0,
25
- "prerelease", "bc183b64c");
25
+ "prerelease", "bea60b79b");
26
26
  }
@@ -22,7 +22,7 @@ constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 0;
24
24
  int32_t Patch = 0;
25
- std::string_view Prerelease = "bc183b64c";
25
+ std::string_view Prerelease = "bea60b79b";
26
26
  } ReactNativeVersion;
27
27
 
28
28
  } // namespace facebook::react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.0.0-bc183b64c",
3
+ "version": "0.0.0-bea60b79b",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "react": "17.0.2",
15
15
  "react-native-macos": "1000.0.0",
16
- "react-native": "0.0.0-bc183b64c"
16
+ "react-native": "0.0.0-bea60b79b"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.12.9",