react-native-macos 0.64.17 → 0.64.21
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/Components/TextInput/TextInput.js +1 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +7 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +1 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +12 -0
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTActionSheetManager.mm +8 -9
- 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/ReactCommon/jsi/jsi/jsi.h +2 -0
- package/package.json +1 -1
- package/template/package.json +1 -1
|
@@ -1193,6 +1193,7 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1193
1193
|
accessibilityState={props.accessibilityState}
|
|
1194
1194
|
nativeID={props.nativeID}
|
|
1195
1195
|
testID={props.testID}
|
|
1196
|
+
enableFocusRing={props.enableFocusRing} // TODO(macOS GH#774)
|
|
1196
1197
|
{...additionalTouchableProps}>
|
|
1197
1198
|
{textInput}
|
|
1198
1199
|
</TouchableWithoutFeedback>
|
|
@@ -87,6 +87,13 @@
|
|
|
87
87
|
[self replaceSubview:previousTextField with:_backedTextInputView];
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
+
|
|
91
|
+
- (void)setEnableFocusRing:(BOOL)enableFocusRing {
|
|
92
|
+
[super setEnableFocusRing:enableFocusRing];
|
|
93
|
+
if ([_backedTextInputView respondsToSelector:@selector(setEnableFocusRing:)]) {
|
|
94
|
+
[_backedTextInputView setEnableFocusRing:enableFocusRing];
|
|
95
|
+
}
|
|
96
|
+
}
|
|
90
97
|
#endif // ]TODO(macOS GH#774)
|
|
91
98
|
|
|
92
99
|
@end
|
|
@@ -51,6 +51,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
51
51
|
@property (nonatomic, assign) NSTextAlignment textAlignment;
|
|
52
52
|
@property (nonatomic, getter=isAutomaticTextReplacementEnabled) BOOL automaticTextReplacementEnabled;
|
|
53
53
|
@property (nonatomic, getter=isAutomaticSpellingCorrectionEnabled) BOOL automaticSpellingCorrectionEnabled;
|
|
54
|
+
@property (nonatomic, assign) BOOL enableFocusRing;
|
|
54
55
|
@property (nonatomic, strong, nullable) RCTUIColor *selectionColor;
|
|
55
56
|
@property (weak, nullable) id<RCTUITextFieldDelegate> delegate;
|
|
56
57
|
#endif // ]TODO(macOS GH#774)
|
|
@@ -213,6 +213,18 @@
|
|
|
213
213
|
return ((RCTUITextFieldCell*)self.cell).font;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
- (void)setEnableFocusRing:(BOOL)enableFocusRing {
|
|
217
|
+
if (_enableFocusRing != enableFocusRing) {
|
|
218
|
+
_enableFocusRing = enableFocusRing;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (enableFocusRing) {
|
|
222
|
+
[self setFocusRingType:NSFocusRingTypeDefault];
|
|
223
|
+
} else {
|
|
224
|
+
[self setFocusRingType:NSFocusRingTypeNone];
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
216
228
|
#endif // ]TODO(macOS GH#774)
|
|
217
229
|
|
|
218
230
|
- (void)setPlaceholder:(NSString *)placeholder
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -118,16 +118,15 @@ RCT_EXPORT_METHOD(showActionSheetWithOptions
|
|
|
118
118
|
UIColor *tintColor = [RCTConvert UIColor:options.tintColor() ? @(*options.tintColor()) : nil];
|
|
119
119
|
|
|
120
120
|
if (controller == nil) {
|
|
121
|
-
RCTLogError(@"Tried to display action sheet but there is no application window. options: %@", @{
|
|
122
|
-
@"title" : title,
|
|
123
|
-
@"message" : message,
|
|
124
|
-
@"options" : buttons,
|
|
121
|
+
RCTLogError(@"Tried to display action sheet but there is no application window. options: %@", @{ /* // [ TODO(macOS GH#774): nil check our dict values before inserting them or we may crash */
|
|
122
|
+
@"title" : title ?: [NSNull null],
|
|
123
|
+
@"message" : message ?: [NSNull null],
|
|
124
|
+
@"options" : buttons ?: [NSNull null],
|
|
125
125
|
@"cancelButtonIndex" : @(cancelButtonIndex),
|
|
126
|
-
@"destructiveButtonIndices" : destructiveButtonIndices,
|
|
127
|
-
@"anchor" : anchor,
|
|
128
|
-
@"tintColor" : tintColor,
|
|
129
|
-
|
|
130
|
-
});
|
|
126
|
+
@"destructiveButtonIndices" : destructiveButtonIndices ?: [NSNull null],
|
|
127
|
+
@"anchor" : anchor ?: [NSNull null],
|
|
128
|
+
@"tintColor" : tintColor ?: [NSNull null],
|
|
129
|
+
}); /* // TODO(macOS GH#774): nil check our dict values before inserting them or we may crash ] */
|
|
131
130
|
return;
|
|
132
131
|
}
|
|
133
132
|
#endif // TODO(macOS GH#774)
|
|
@@ -937,7 +937,9 @@ class JSI_EXPORT Value {
|
|
|
937
937
|
std::is_base_of<String, T>::value ||
|
|
938
938
|
std::is_base_of<Object, T>::value,
|
|
939
939
|
"Value cannot be implicitly move-constructed from this type");
|
|
940
|
+
#ifndef __clang_analyzer__ // TODO(macOS GH#774) Disable [bugprone-move-forwarding-reference] when running clang static analysis
|
|
940
941
|
new (&data_.pointer) T(std::move(other));
|
|
942
|
+
#endif // __clang_analyzer__
|
|
941
943
|
}
|
|
942
944
|
|
|
943
945
|
/// Value("foo") will treat foo as a bool. This makes doing that a
|
package/package.json
CHANGED