react-native-macos 0.0.0-0e7a57b98 → 0.0.0-0eb748893

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: '0e7a57b98',
20
+ prerelease: '0eb748893',
21
21
  };
@@ -104,15 +104,9 @@
104
104
  #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
105
105
  - (NSString *)description
106
106
  {
107
- NSString *superDescription = super.description;
108
- NSRange semicolonRange = [superDescription rangeOfString:@";"];
109
- NSString *replacement = [NSString stringWithFormat:@"; reactTag: %@; text: %@", self.reactTag, _textStorage.string];
110
- // [TODO(macOS GH#774): super.description isn't guaranteed to have a semicolon in it on macOS
111
- if (semicolonRange.location == NSNotFound) {
112
- return [superDescription stringByAppendingString:replacement];
113
- } else {
114
- return [superDescription stringByReplacingCharactersInRange:semicolonRange withString:replacement];
115
- }
107
+ // [TODO(macOS GH#774): we shouldn't make assumptions on what super's description is. Just append additional content.
108
+ NSString *stringToAppend = [NSString stringWithFormat:@" reactTag: %@; text: %@", self.reactTag, _textStorage.string];
109
+ return [[super description] stringByAppendingString:stringToAppend];
116
110
  // TODO(macOS GH#774)]
117
111
  }
118
112
  #endif // TODO(macOS GH#774)
@@ -28,7 +28,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(0),
30
30
  RCTVersionPatch: @(0),
31
- RCTVersionPrerelease: @"0e7a57b98",
31
+ RCTVersionPrerelease: @"0eb748893",
32
32
  };
33
33
  });
34
34
  return __rnVersion;
@@ -52,7 +52,7 @@ typedef NS_ENUM(unsigned int, meta_prop_t) {
52
52
  #if !TARGET_OS_OSX // [TODO(macOS GH#774)
53
53
  float pixelsInPoint = RCTScreenScale();
54
54
  #else
55
- float pixelsInPoint = 0; // TODO(ISS#1656079): Turn off pixel rounding for macOS until we can get screen resolution passed here
55
+ float pixelsInPoint = 1; // TODO(ISS#1656079): Use 1x alignment for macOS until we can use backing resolution
56
56
  #endif // ]TODO(macOS GH#774)
57
57
  YGConfigSetPointScaleFactor(yogaConfig, pixelsInPoint);
58
58
  YGConfigSetUseLegacyStretchBehaviour(yogaConfig, true);
@@ -714,14 +714,8 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
714
714
  #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
715
715
  - (NSString *)description
716
716
  {
717
- NSString *superDescription = super.description;
718
- NSRange semicolonRange = [superDescription rangeOfString:@";"];
719
- if (semicolonRange.location == NSNotFound) { // [TODO(macOS GH#774)
720
- return [[superDescription substringToIndex:superDescription.length - 1] stringByAppendingFormat:@"; reactTag: %@; frame = %@; layer = %@>", self.reactTag, NSStringFromCGRect(self.frame), self.layer];
721
- } else { // ]TODO(macOS GH#774)
722
- NSString *replacement = [NSString stringWithFormat:@"; reactTag: %@;", self.reactTag];
723
- return [superDescription stringByReplacingCharactersInRange:semicolonRange withString:replacement];
724
- } // TODO(macOS GH#774)
717
+ // TODO(macOS GH#774): we shouldn't make assumptions on what super's description is. Just append additional content.
718
+ return [[super description] stringByAppendingFormat:@" reactTag: %@; frame = %@; layer = %@", self.reactTag, NSStringFromCGRect(self.frame), self.layer];
725
719
  }
726
720
  #endif // TODO(macOS GH#774)
727
721
 
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.0.0-0e7a57b98
1
+ VERSION_NAME=0.0.0-0eb748893
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", "0e7a57b98");
25
+ "prerelease", "0eb748893");
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 = "0e7a57b98";
25
+ std::string_view Prerelease = "0eb748893";
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-0e7a57b98",
3
+ "version": "0.0.0-0eb748893",
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-0e7a57b98"
16
+ "react-native": "0.0.0-0eb748893"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.12.9",