react-native-macos 0.66.72 → 0.66.75
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/ScrollView/ScrollView.js +0 -77
- package/Libraries/Components/View/ViewPropTypes.js +0 -6
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Lists/FlatList.js +37 -1
- package/Libraries/Lists/VirtualizedList.js +112 -83
- package/Libraries/Lists/VirtualizedSectionList.js +9 -5
- package/Libraries/Types/CoreEventTypes.js +0 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/RCTView.h +4 -6
- package/React/Views/RCTView.m +31 -200
- package/React/Views/RCTViewKeyboardEvent.h +6 -28
- package/React/Views/RCTViewKeyboardEvent.m +66 -61
- package/React/Views/RCTViewManager.m +2 -21
- package/React/Views/ScrollView/RCTScrollView.h +0 -1
- package/React/Views/ScrollView/RCTScrollView.m +55 -53
- package/React/Views/ScrollView/RCTScrollViewManager.m +0 -1
- package/React/Views/UIView+React.m +18 -10
- 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
|
@@ -285,29 +285,37 @@
|
|
|
285
285
|
|
|
286
286
|
- (void)reactFocus
|
|
287
287
|
{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
289
|
+
if (![[self window] makeFirstResponder:self]) {
|
|
290
|
+
#else
|
|
291
|
+
if (![self becomeFirstResponder]) {
|
|
292
|
+
#endif //// TODO(macOS GH#774)]
|
|
293
|
+
self.reactIsFocusNeeded = YES;
|
|
294
|
+
}
|
|
291
295
|
}
|
|
292
296
|
|
|
293
297
|
- (void)reactFocusIfNeeded
|
|
294
298
|
{
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
299
|
+
if (self.reactIsFocusNeeded) {
|
|
300
|
+
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
301
|
+
if ([[self window] makeFirstResponder:self]) {
|
|
302
|
+
#else
|
|
303
|
+
if ([self becomeFirstResponder]) {
|
|
304
|
+
#endif // TODO(macOS GH#774)]
|
|
305
|
+
self.reactIsFocusNeeded = NO;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
300
308
|
}
|
|
301
309
|
|
|
302
310
|
- (void)reactBlur
|
|
303
311
|
{
|
|
304
|
-
#if TARGET_OS_OSX // TODO(macOS GH#774)
|
|
312
|
+
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
305
313
|
if (self == [[self window] firstResponder]) {
|
|
306
314
|
[[self window] makeFirstResponder:[[self window] nextResponder]];
|
|
307
315
|
}
|
|
308
316
|
#else
|
|
309
317
|
[self resignFirstResponder];
|
|
310
|
-
#endif
|
|
318
|
+
#endif // TODO(macOS GH#774)]
|
|
311
319
|
}
|
|
312
320
|
|
|
313
321
|
#pragma mark - Layout
|
package/package.json
CHANGED