react-native-macos 0.64.20 → 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/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
|
@@ -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
package/package.json
CHANGED