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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Text/RCTTextAttributes.m +15 -8
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/RCTView.m +3 -0
- 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
|
@@ -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(
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
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:
|
|
98
|
+
[_scrollView setEnableFocusRing:enableFocusRing];
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
package/React/Base/RCTVersion.m
CHANGED
package/React/Views/RCTView.m
CHANGED
|
@@ -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
|
package/package.json
CHANGED