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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Text/Text/RCTTextView.m +3 -9
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/RCTShadowView.m +1 -1
- package/React/Views/RCTView.m +2 -8
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
|
@@ -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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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)
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -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 =
|
|
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);
|
package/React/Views/RCTView.m
CHANGED
|
@@ -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
|
-
|
|
718
|
-
|
|
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
|
|
package/package.json
CHANGED