react-native-macos 0.71.4 → 0.71.5
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/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
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