react-native-macos 0.71.4 → 0.71.6
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/TextInput/Multiline/RCTMultilineTextInputView.m +2 -0
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +2 -2
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/ScrollView/RCTScrollView.m +6 -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
|
@@ -198,7 +198,7 @@ static void *TextFieldSelectionObservingContext = &TextFieldSelectionObservingCo
|
|
|
198
198
|
// enter/return
|
|
199
199
|
if (commandSelector == @selector(insertNewline:) || commandSelector == @selector(insertNewlineIgnoringFieldEditor:)) {
|
|
200
200
|
[self textFieldDidEndEditingOnExit];
|
|
201
|
-
if ([textInputDelegate
|
|
201
|
+
if ([textInputDelegate textInputShouldSubmitOnReturn]) {
|
|
202
202
|
[[_backedTextInputView window] makeFirstResponder:nil];
|
|
203
203
|
}
|
|
204
204
|
commandHandled = YES;
|
|
@@ -434,7 +434,7 @@ static void *TextFieldSelectionObservingContext = &TextFieldSelectionObservingCo
|
|
|
434
434
|
id<RCTBackedTextInputDelegate> textInputDelegate = [_backedTextInputView textInputDelegate];
|
|
435
435
|
// enter/return
|
|
436
436
|
if ((commandSelector == @selector(insertNewline:) || commandSelector == @selector(insertNewlineIgnoringFieldEditor:))) {
|
|
437
|
-
if (textInputDelegate
|
|
437
|
+
if ([textInputDelegate textInputShouldSubmitOnReturn]) {
|
|
438
438
|
[_backedTextInputView.window makeFirstResponder:nil];
|
|
439
439
|
commandHandled = YES;
|
|
440
440
|
}
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
#if !TARGET_OS_OSX // [macOS]
|
|
25
25
|
#import "RCTRefreshControl.h"
|
|
26
26
|
#else // [macOS
|
|
27
|
+
#import "RCTI18nUtil.h"
|
|
27
28
|
#import "RCTViewKeyboardEvent.h"
|
|
28
29
|
#endif // macOS]
|
|
29
30
|
|
|
@@ -263,6 +264,11 @@
|
|
|
263
264
|
[NSAnimationContext beginGrouping];
|
|
264
265
|
[[NSAnimationContext currentContext] setDuration:0.3];
|
|
265
266
|
[[self.contentView animator] setBoundsOrigin:contentOffset];
|
|
267
|
+
// Handling a weird bug where setBoundsOrigin doesn't actually update view bounds
|
|
268
|
+
if ([[RCTI18nUtil sharedInstance] isRTL] && contentOffset.y < 1) {
|
|
269
|
+
[self.contentView scrollToPoint:contentOffset];
|
|
270
|
+
[self reflectScrolledClipView:self.contentView];
|
|
271
|
+
}
|
|
266
272
|
[NSAnimationContext endGrouping];
|
|
267
273
|
} else {
|
|
268
274
|
self.contentOffset = contentOffset;
|
package/package.json
CHANGED