react-native-macos 0.68.42 → 0.68.45
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/CoreModules/RCTPerfMonitor.mm +1 -1
- package/React/Views/RCTView.m +3 -0
- package/React/Views/UIView+React.h +2 -0
- package/React/Views/UIView+React.m +22 -13
- 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/scripts/react_native_pods.rb +0 -3
- package/template/Gemfile.lock +2 -2
- package/template/package.json +1 -1
- package/third-party-podspecs/boost-for-react-native.podspec +0 -20
package/React/Base/RCTVersion.m
CHANGED
|
@@ -176,7 +176,7 @@ RCT_EXPORT_MODULE()
|
|
|
176
176
|
{
|
|
177
177
|
if (!_devMenuItem) {
|
|
178
178
|
__weak __typeof__(self) weakSelf = self;
|
|
179
|
-
__weak RCTDevSettings *devSettings = [self
|
|
179
|
+
__weak RCTDevSettings *devSettings = [[self bridge] devSettings]; // TODO(macOS GH#774)
|
|
180
180
|
if (devSettings.isPerfMonitorShown) {
|
|
181
181
|
[weakSelf show];
|
|
182
182
|
}
|
package/React/Views/RCTView.m
CHANGED
|
@@ -779,6 +779,9 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
|
|
|
779
779
|
name:NSViewBoundsDidChangeNotification
|
|
780
780
|
object:[[self enclosingScrollView] contentView]];
|
|
781
781
|
}
|
|
782
|
+
|
|
783
|
+
[self reactViewDidMoveToWindow]; // TODO(macOS GH#1412)
|
|
784
|
+
|
|
782
785
|
[super viewDidMoveToWindow];
|
|
783
786
|
}
|
|
784
787
|
|
|
@@ -267,18 +267,17 @@
|
|
|
267
267
|
}
|
|
268
268
|
#endif // TODO(macOS GH#774)
|
|
269
269
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
*/
|
|
273
|
-
- (BOOL)reactIsFocusNeeded
|
|
270
|
+
// [TODO(macOS GH#1412)
|
|
271
|
+
- (void)reactViewDidMoveToWindow
|
|
274
272
|
{
|
|
275
|
-
|
|
273
|
+
[self reactFocusIfNeeded];
|
|
276
274
|
}
|
|
275
|
+
// TODO(macOS GH#1412)]
|
|
277
276
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
277
|
+
/**
|
|
278
|
+
* Focus manipulation.
|
|
279
|
+
*/
|
|
280
|
+
static __weak RCTPlatformView *_pendingFocusView; // TODO(macOS GH#1412)
|
|
282
281
|
|
|
283
282
|
- (void)reactFocus
|
|
284
283
|
{
|
|
@@ -287,19 +286,23 @@
|
|
|
287
286
|
#else
|
|
288
287
|
if (![self becomeFirstResponder]) {
|
|
289
288
|
#endif //// TODO(macOS GH#774)]
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
// [TODO(macOS GH#1412)
|
|
290
|
+
_pendingFocusView = self;
|
|
291
|
+
} else {
|
|
292
|
+
_pendingFocusView = nil;
|
|
293
|
+
}
|
|
294
|
+
// TODO(macOS GH#1412)]
|
|
292
295
|
}
|
|
293
296
|
|
|
294
297
|
- (void)reactFocusIfNeeded
|
|
295
298
|
{
|
|
296
|
-
if (self
|
|
299
|
+
if ([self isEqual:_pendingFocusView]) { // TODO(macOS GH#1412)
|
|
297
300
|
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
298
301
|
if ([[self window] makeFirstResponder:self]) {
|
|
299
302
|
#else
|
|
300
303
|
if ([self becomeFirstResponder]) {
|
|
301
304
|
#endif // TODO(macOS GH#774)]
|
|
302
|
-
|
|
305
|
+
_pendingFocusView = nil; // TODO(macOS GH#1412)
|
|
303
306
|
}
|
|
304
307
|
}
|
|
305
308
|
}
|
|
@@ -313,6 +316,12 @@
|
|
|
313
316
|
#else
|
|
314
317
|
[self resignFirstResponder];
|
|
315
318
|
#endif // TODO(macOS GH#774)]
|
|
319
|
+
|
|
320
|
+
// [TODO(macOS GH#1412)
|
|
321
|
+
if ([self isEqual:_pendingFocusView]) {
|
|
322
|
+
_pendingFocusView = nil;
|
|
323
|
+
}
|
|
324
|
+
// TODO(macOS GH#1412)]
|
|
316
325
|
}
|
|
317
326
|
|
|
318
327
|
#pragma mark - Layout
|
package/package.json
CHANGED
|
@@ -79,9 +79,6 @@ def use_react_native! (options={})
|
|
|
79
79
|
pod 'boost', :podspec => "#{prefix}/third-party-podspecs/boost.podspec"
|
|
80
80
|
pod 'RCT-Folly', :podspec => "#{prefix}/third-party-podspecs/RCT-Folly.podspec"
|
|
81
81
|
|
|
82
|
-
# TODO(macOS GH#214)
|
|
83
|
-
pod 'boost-for-react-native', :podspec => "#{prefix}/third-party-podspecs/boost-for-react-native.podspec"
|
|
84
|
-
|
|
85
82
|
if ENV['USE_CODEGEN_DISCOVERY'] == '1'
|
|
86
83
|
app_path = options[:app_path]
|
|
87
84
|
config_file_dir = options[:config_file_dir]
|
package/template/Gemfile.lock
CHANGED
|
@@ -3,7 +3,7 @@ GEM
|
|
|
3
3
|
specs:
|
|
4
4
|
CFPropertyList (3.0.5)
|
|
5
5
|
rexml
|
|
6
|
-
activesupport (6.1.
|
|
6
|
+
activesupport (6.1.7)
|
|
7
7
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
8
8
|
i18n (>= 1.6, < 2)
|
|
9
9
|
minitest (>= 5.1)
|
|
@@ -97,4 +97,4 @@ RUBY VERSION
|
|
|
97
97
|
ruby 3.0.4p208
|
|
98
98
|
|
|
99
99
|
BUNDLED WITH
|
|
100
|
-
2.3.
|
|
100
|
+
2.3.22
|
package/template/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# TODO(macOS GH#214)
|
|
2
|
-
Pod::Spec.new do |spec|
|
|
3
|
-
spec.name = 'boost-for-react-native'
|
|
4
|
-
spec.version = '1.63.0'
|
|
5
|
-
spec.license = { :type => 'Boost Software License', :file => "LICENSE_1_0.txt" }
|
|
6
|
-
spec.homepage = 'http://www.boost.org'
|
|
7
|
-
spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
|
|
8
|
-
spec.authors = 'Rene Rivera'
|
|
9
|
-
spec.source = { :git => 'https://github.com/react-native-community/boost-for-react-native.git',
|
|
10
|
-
:tag => 'v1.63.0-0' }
|
|
11
|
-
|
|
12
|
-
# Pinning to the same version as React.podspec.
|
|
13
|
-
# TODO: Move this osx addition back upstream to https://github.com/react-native-community/boost-for-react-native
|
|
14
|
-
spec.platforms = { :ios => '8.0', :osx => "10.15" }
|
|
15
|
-
spec.requires_arc = false
|
|
16
|
-
|
|
17
|
-
spec.module_name = 'boost'
|
|
18
|
-
spec.header_dir = 'boost'
|
|
19
|
-
spec.preserve_path = 'boost'
|
|
20
|
-
end
|