react-native-macos 0.0.0-2a9e51702 → 0.0.0-2bcaeb189

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: '2a9e51702',
20
+ prerelease: '2bcaeb189',
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
 
@@ -28,7 +28,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(0),
30
30
  RCTVersionPatch: @(0),
31
- RCTVersionPrerelease: @"2a9e51702",
31
+ RCTVersionPrerelease: @"2bcaeb189",
32
32
  };
33
33
  });
34
34
  return __rnVersion;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.0.0-2a9e51702
1
+ VERSION_NAME=0.0.0-2bcaeb189
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", "2a9e51702");
25
+ "prerelease", "2bcaeb189");
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 = "2a9e51702";
25
+ std::string_view Prerelease = "2bcaeb189";
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-2a9e51702",
3
+ "version": "0.0.0-2bcaeb189",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -97,4 +97,4 @@ RUBY VERSION
97
97
  ruby 3.0.4p208
98
98
 
99
99
  BUNDLED WITH
100
- 2.3.18
100
+ 2.3.19
@@ -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-2a9e51702"
16
+ "react-native": "0.0.0-2bcaeb189"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.12.9",