react-native-macos 0.0.0-dae9a3e3b → 0.0.0-db2cc6efb
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/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h +14 -0
- package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +30 -0
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +11 -6
- package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +8 -4
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +2 -0
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +7 -0
- package/Libraries/Text/RCTTextAttributes.h +9 -3
- package/Libraries/Text/RCTTextAttributes.m +17 -0
- package/Libraries/Text/Text/RCTTextView.m +1 -7
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/React/Base/RCTUIKit.h +11 -0
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +0 -1
- package/React/CoreModules/RCTLogBox.h +1 -1
- package/React/CoreModules/RCTLogBox.mm +35 -19
- package/React/CoreModules/RCTLogBoxView.h +8 -5
- package/React/CoreModules/RCTLogBoxView.mm +64 -23
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
- package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +8 -8
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h +2 -2
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +3 -3
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +6 -14
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -0
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +8 -4
- package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +3 -3
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +4 -4
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +4 -4
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +22 -22
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +5 -5
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +2 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +3 -0
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +5 -5
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +7 -6
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +4 -4
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +2 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +5 -5
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +23 -22
- package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +2 -2
- package/React/Fabric/Mounting/RCTComponentViewFactory.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +10 -1
- package/React/Fabric/Mounting/RCTComponentViewProtocol.h +4 -4
- package/React/Fabric/Mounting/RCTComponentViewRegistry.h +2 -2
- package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +3 -1
- package/React/Fabric/Mounting/RCTMountingManager.h +3 -3
- package/React/Fabric/Mounting/RCTMountingManager.mm +19 -11
- package/React/Fabric/Mounting/RCTMountingManagerDelegate.h +1 -1
- package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +1 -1
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +6 -6
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +6 -6
- package/React/Fabric/RCTConversions.h +6 -6
- package/React/Fabric/RCTImageResponseDelegate.h +1 -1
- package/React/Fabric/RCTLocalizationProvider.h +1 -1
- package/React/Fabric/RCTScheduler.h +1 -1
- package/React/Fabric/RCTSurfacePresenter.h +8 -2
- package/React/Fabric/RCTSurfacePresenter.mm +14 -6
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
- package/React/Fabric/RCTSurfaceRegistry.h +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.h +3 -3
- package/React/Fabric/RCTSurfaceTouchHandler.mm +8 -8
- package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
- package/React/Fabric/Surface/RCTFabricSurface.mm +1 -1
- package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
- package/React/Modules/RCTSurfacePresenterStub.h +4 -0
- package/React/React-RCTFabric.podspec +1 -1
- package/React/Views/RCTMaskedView.h +1 -1
- package/React/Views/RCTModalHostView.h +2 -2
- package/React/Views/RCTModalHostViewController.h +1 -1
- package/React/Views/RCTModalManager.h +1 -1
- package/React/Views/RCTView.m +1 -1
- package/React/Views/RCTWeakViewHolder.h +1 -1
- package/React/Views/RCTWrapperViewController.h +2 -2
- package/React/Views/RefreshControl/RCTRefreshControl.h +2 -2
- package/React/Views/RefreshControl/RCTRefreshableProtocol.h +1 -1
- package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -1
- package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -1
- package/React/Views/ScrollView/RCTScrollView.m +0 -30
- package/React/Views/ScrollView/RCTScrollableProtocol.h +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/jni/Application.mk +1 -1
- package/ReactAndroid/src/main/jni/first-party/fb/BUCK +1 -1
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -2
- package/ReactCommon/ReactCommon.podspec +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/cxxreact/tests/BUCK +1 -1
- package/ReactCommon/microprofiler/BUCK +1 -1
- package/ReactCommon/react/debug/react_native_assert.h +1 -1
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -6
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -3
- package/ReactCommon/react/renderer/animations/conversions.h +11 -11
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +1 -1
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +16 -16
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +14 -14
- package/ReactCommon/react/renderer/attributedstring/conversions.h +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -3
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +3 -3
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +1 -1
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +1 -1
- package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +3 -4
- package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +6 -6
- package/ReactCommon/react/renderer/components/view/ViewProps.h +3 -1
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +16 -16
- package/ReactCommon/react/renderer/components/view/conversions.h +5 -6
- package/ReactCommon/react/renderer/components/view/primitives.h +4 -3
- package/ReactCommon/react/renderer/components/view/propsConversions.h +2 -0
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +7 -7
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +2 -2
- package/ReactCommon/react/renderer/core/Props.h +0 -4
- package/ReactCommon/react/renderer/core/RawProps.h +1 -1
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +2 -2
- package/ReactCommon/react/renderer/core/ShadowNode.h +5 -5
- package/ReactCommon/react/renderer/core/propsConversions.h +6 -5
- package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +3 -3
- package/ReactCommon/react/renderer/debug/debugStringConvertibleUtils.h +3 -3
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +1 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +9 -9
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImageManager.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.h +1 -1
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +2 -2
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +3 -3
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowTreeRevision.h +0 -2
- package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
- package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +3 -2
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +1 -2
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/NSTextStorage+FontScaling.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +15 -15
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontProperties.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
- package/ReactCommon/react/utils/ContextContainer.h +2 -2
- package/ReactCommon/react/utils/SimpleThreadSafeCache.h +2 -2
- package/ReactCommon/yoga/Yoga.podspec +1 -1
- package/package.json +4 -1
- package/scripts/react_native_pods.rb +1 -1
- package/template/Gemfile.lock +2 -2
- package/template/package.json +1 -1
- package/ReactCommon/butter/optional.h +0 -38
|
@@ -163,10 +163,18 @@ static BackgroundExecutor RCTGetBackgroundExecutor()
|
|
|
163
163
|
return [_surfaceRegistry surfaceForRootTag:rootTag];
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
- (
|
|
166
|
+
- (id<RCTSurfaceProtocol>)createFabricSurfaceForModuleName:(NSString *)moduleName
|
|
167
|
+
initialProperties:(NSDictionary *)initialProperties
|
|
167
168
|
{
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
return [[RCTFabricSurface alloc] initWithSurfacePresenter:self
|
|
170
|
+
moduleName:moduleName
|
|
171
|
+
initialProperties:initialProperties];
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
- (RCTUIView *)findComponentViewWithTag_DO_NOT_USE_DEPRECATED:(NSInteger)tag // TODO(macOS GH#774)
|
|
175
|
+
{
|
|
176
|
+
RCTUIView<RCTComponentViewProtocol> *componentView =
|
|
177
|
+
[_mountingManager.componentViewRegistry findComponentViewWithTag:tag]; // TODO(macOS GH#774)
|
|
170
178
|
return componentView;
|
|
171
179
|
}
|
|
172
180
|
|
|
@@ -178,8 +186,8 @@ static BackgroundExecutor RCTGetBackgroundExecutor()
|
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
ReactTag tag = [reactTag integerValue];
|
|
181
|
-
|
|
182
|
-
[_mountingManager.componentViewRegistry findComponentViewWithTag:tag];
|
|
189
|
+
RCTUIView<RCTComponentViewProtocol> *componentView =
|
|
190
|
+
[_mountingManager.componentViewRegistry findComponentViewWithTag:tag]; // TODO(macOS GH#774)
|
|
183
191
|
if (componentView == nil) {
|
|
184
192
|
return NO; // This view probably isn't managed by Fabric
|
|
185
193
|
}
|
|
@@ -271,7 +279,7 @@ static BackgroundExecutor RCTGetBackgroundExecutor()
|
|
|
271
279
|
toolbox.componentRegistryFactory = componentRegistryFactory;
|
|
272
280
|
|
|
273
281
|
auto weakRuntimeScheduler = _contextContainer->find<std::weak_ptr<RuntimeScheduler>>("RuntimeScheduler");
|
|
274
|
-
auto runtimeScheduler = weakRuntimeScheduler.
|
|
282
|
+
auto runtimeScheduler = weakRuntimeScheduler.has_value() ? weakRuntimeScheduler.value().lock() : nullptr;
|
|
275
283
|
if (runtimeScheduler) {
|
|
276
284
|
runtimeExecutor = [runtimeScheduler](std::function<void(jsi::Runtime & runtime)> &&callback) {
|
|
277
285
|
runtimeScheduler->scheduleWork(std::move(callback));
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
#import <
|
|
8
|
+
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
|
|
9
9
|
|
|
10
10
|
NS_ASSUME_NONNULL_BEGIN
|
|
11
11
|
|
|
@@ -15,8 +15,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
15
15
|
* Attaches (and detaches) a view to the touch handler.
|
|
16
16
|
* The receiver does not retain the provided view.
|
|
17
17
|
*/
|
|
18
|
-
- (void)attachToView:(
|
|
19
|
-
- (void)detachFromView:(
|
|
18
|
+
- (void)attachToView:(RCTUIView *)view; // TODO(macOS GH#774)
|
|
19
|
+
- (void)detachFromView:(RCTUIView *)view; // TODO(macOS GH#774)
|
|
20
20
|
|
|
21
21
|
/*
|
|
22
22
|
* Offset of the attached view relative to the root component in points.
|
|
@@ -60,7 +60,7 @@ struct ActiveTouch {
|
|
|
60
60
|
/*
|
|
61
61
|
* A component view on which the touch was begun.
|
|
62
62
|
*/
|
|
63
|
-
__strong
|
|
63
|
+
__strong RCTUIView<RCTComponentViewProtocol> *componentView = nil; // TODO(macOS GH#774)
|
|
64
64
|
|
|
65
65
|
struct Hasher {
|
|
66
66
|
size_t operator()(const ActiveTouch &activeTouch) const
|
|
@@ -80,8 +80,8 @@ struct ActiveTouch {
|
|
|
80
80
|
static void UpdateActiveTouchWithUITouch(
|
|
81
81
|
ActiveTouch &activeTouch,
|
|
82
82
|
UITouch *uiTouch,
|
|
83
|
-
|
|
84
|
-
CGPoint rootViewOriginOffset)
|
|
83
|
+
RCTUIView *rootComponentView,
|
|
84
|
+
CGPoint rootViewOriginOffset) // TODO(macOS GH#774)
|
|
85
85
|
{
|
|
86
86
|
CGPoint offsetPoint = [uiTouch locationInView:activeTouch.componentView];
|
|
87
87
|
CGPoint screenPoint = [uiTouch locationInView:uiTouch.window];
|
|
@@ -99,12 +99,12 @@ static void UpdateActiveTouchWithUITouch(
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
static ActiveTouch CreateTouchWithUITouch(UITouch *uiTouch,
|
|
102
|
+
static ActiveTouch CreateTouchWithUITouch(UITouch *uiTouch, RCTUIView *rootComponentView, CGPoint rootViewOriginOffset) // TODO(macOS GH#774)
|
|
103
103
|
{
|
|
104
104
|
ActiveTouch activeTouch = {};
|
|
105
105
|
|
|
106
106
|
// Find closest Fabric-managed touchable view
|
|
107
|
-
|
|
107
|
+
RCTUIView *componentView = uiTouch.view; // TODO(macOS GH#774)
|
|
108
108
|
while (componentView) {
|
|
109
109
|
if ([componentView respondsToSelector:@selector(touchEventEmitterAtPoint:)]) {
|
|
110
110
|
activeTouch.eventEmitter = [(id<RCTTouchableComponentViewProtocol>)componentView
|
|
@@ -164,7 +164,7 @@ struct PointerHasher {
|
|
|
164
164
|
/*
|
|
165
165
|
* We hold the view weakly to prevent a retain cycle.
|
|
166
166
|
*/
|
|
167
|
-
__weak
|
|
167
|
+
__weak RCTUIView *_rootComponentView; // TODO(macOS GH#774)
|
|
168
168
|
IdentifierPool<11> _identifierPool;
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -187,7 +187,7 @@ struct PointerHasher {
|
|
|
187
187
|
|
|
188
188
|
RCT_NOT_IMPLEMENTED(-(instancetype)initWithTarget : (id)target action : (SEL)action)
|
|
189
189
|
|
|
190
|
-
- (void)attachToView:(
|
|
190
|
+
- (void)attachToView:(RCTUIView *)view // TODO(macOS GH#774)
|
|
191
191
|
{
|
|
192
192
|
RCTAssert(self.view == nil, @"RCTTouchHandler already has attached view.");
|
|
193
193
|
|
|
@@ -195,7 +195,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithTarget : (id)target action : (SEL)act
|
|
|
195
195
|
_rootComponentView = view;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
- (void)detachFromView:(
|
|
198
|
+
- (void)detachFromView:(RCTUIView *)view // TODO(macOS GH#774)
|
|
199
199
|
{
|
|
200
200
|
RCTAssertParam(view);
|
|
201
201
|
RCTAssert(self.view == view, @"RCTTouchHandler attached to another view.");
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
#import <
|
|
8
|
+
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
|
|
9
9
|
#import <react/renderer/components/view/TouchEventEmitter.h>
|
|
10
10
|
|
|
11
11
|
@protocol RCTTouchableComponentViewProtocol <NSObject>
|
|
@@ -34,7 +34,7 @@ using namespace facebook::react;
|
|
|
34
34
|
// `SurfaceHandler` is a thread-safe object, so we don't need additional synchronization.
|
|
35
35
|
// Objective-C++ classes cannot have instance variables without default constructors,
|
|
36
36
|
// hence we wrap a value into `optional` to workaround it.
|
|
37
|
-
|
|
37
|
+
std::optional<SurfaceHandler> _surfaceHandler;
|
|
38
38
|
|
|
39
39
|
// Protects Surface's start and stop processes.
|
|
40
40
|
// Even though SurfaceHandler is tread-safe, it will crash if we try to stop a surface that is not running.
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
#import <React/RCTBridge.h>
|
|
11
11
|
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
|
|
12
12
|
|
|
13
|
+
@protocol RCTSurfaceProtocol;
|
|
14
|
+
|
|
13
15
|
NS_ASSUME_NONNULL_BEGIN
|
|
14
16
|
|
|
15
17
|
// TODO: Eventually this should go away and files should just include RCTSurfacePresenter.h, but
|
|
@@ -27,6 +29,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
27
29
|
|
|
28
30
|
@protocol RCTSurfacePresenterStub <NSObject>
|
|
29
31
|
|
|
32
|
+
- (id<RCTSurfaceProtocol>)createFabricSurfaceForModuleName:(NSString *)moduleName
|
|
33
|
+
initialProperties:(NSDictionary *)initialProperties;
|
|
30
34
|
- (nullable RCTPlatformView *)findComponentViewWithTag_DO_NOT_USE_DEPRECATED:(NSInteger)tag; // TODO(macOS GH#774)
|
|
31
35
|
- (BOOL)synchronouslyUpdateViewOnUIThread:(NSNumber *)reactTag props:(NSDictionary *)props;
|
|
32
36
|
- (void)addObserver:(id<RCTSurfacePresenterObserver>)observer;
|
|
@@ -37,7 +37,7 @@ Pod::Spec.new do |s|
|
|
|
37
37
|
s.header_dir = "React"
|
|
38
38
|
s.framework = "JavaScriptCore"
|
|
39
39
|
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"$(PODS_ROOT)/Headers/Public/React-Codegen\"" }
|
|
40
|
-
s.xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/RCT-Folly\"",
|
|
40
|
+
s.xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/RCT-Folly\"", "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
|
41
41
|
"OTHER_CFLAGS" => "$(inherited) -DRN_FABRIC_ENABLED" + " " + folly_flags }
|
|
42
42
|
|
|
43
43
|
s.dependency "React-Core", version
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
#import <
|
|
8
|
+
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
|
|
9
9
|
|
|
10
10
|
#import <React/RCTInvalidating.h>
|
|
11
11
|
#import <React/RCTModalHostViewManager.h>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
@protocol RCTModalHostViewInteractor;
|
|
18
18
|
|
|
19
|
-
@interface RCTModalHostView :
|
|
19
|
+
@interface RCTModalHostView : RCTUIView <RCTInvalidating, UIAdaptivePresentationControllerDelegate> // TODO(macOS GH#774)
|
|
20
20
|
|
|
21
21
|
@property (nonatomic, copy) NSString *animationType;
|
|
22
22
|
@property (nonatomic, assign) UIModalPresentationStyle presentationStyle;
|
package/React/Views/RCTView.m
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
#import "RCTView.h"
|
|
9
9
|
|
|
10
|
-
#import <QuartzCore/QuartzCore.h>
|
|
10
|
+
#import <QuartzCore/QuartzCore.h>
|
|
11
11
|
|
|
12
12
|
#import "RCTAutoInsetsProtocol.h"
|
|
13
13
|
#import "RCTBorderDrawing.h"
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
#import <
|
|
8
|
+
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
|
|
9
9
|
|
|
10
10
|
@class RCTWrapperViewController;
|
|
11
11
|
|
|
12
12
|
@interface RCTWrapperViewController : UIViewController
|
|
13
13
|
|
|
14
|
-
- (instancetype)initWithContentView:(
|
|
14
|
+
- (instancetype)initWithContentView:(RCTUIView *)contentView NS_DESIGNATED_INITIALIZER; // TODO(macOS GH#774)
|
|
15
15
|
|
|
16
16
|
@end
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
#import <
|
|
8
|
+
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
|
|
9
9
|
|
|
10
10
|
#import <React/RCTComponent.h>
|
|
11
11
|
#import <React/RCTScrollableProtocol.h>
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
@property (nonatomic, copy) NSString *title;
|
|
16
16
|
@property (nonatomic, copy) RCTDirectEventBlock onRefresh;
|
|
17
|
-
@property (nonatomic, weak)
|
|
17
|
+
@property (nonatomic, weak) RCTUIScrollView *scrollView; // TODO(macOS GH#774)
|
|
18
18
|
|
|
19
19
|
@end
|
|
@@ -339,21 +339,6 @@
|
|
|
339
339
|
#endif // TODO(macOS GH#774)
|
|
340
340
|
|
|
341
341
|
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
342
|
-
- (BOOL)canBecomeFirstResponder
|
|
343
|
-
{
|
|
344
|
-
return YES;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
- (BOOL)becomeFirstResponder
|
|
348
|
-
{
|
|
349
|
-
return YES;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
- (BOOL)resignFirstResponder
|
|
353
|
-
{
|
|
354
|
-
return YES;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
342
|
- (void)setAccessibilityLabel:(NSString *)accessibilityLabel
|
|
358
343
|
{
|
|
359
344
|
[super setAccessibilityLabel:accessibilityLabel];
|
|
@@ -538,21 +523,6 @@ static inline UIViewAnimationOptions animationOptionsWithCurve(UIViewAnimationCu
|
|
|
538
523
|
return _scrollView.documentView;
|
|
539
524
|
}
|
|
540
525
|
|
|
541
|
-
- (BOOL)canBecomeFirstResponder
|
|
542
|
-
{
|
|
543
|
-
return [_scrollView canBecomeFirstResponder];
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
- (BOOL)becomeFirstResponder
|
|
547
|
-
{
|
|
548
|
-
return [_scrollView becomeFirstResponder];
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
- (BOOL)resignFirstResponder
|
|
552
|
-
{
|
|
553
|
-
return [_scrollView resignFirstResponder];
|
|
554
|
-
}
|
|
555
|
-
|
|
556
526
|
- (void)setAccessibilityLabel:(NSString *)accessibilityLabel
|
|
557
527
|
{
|
|
558
528
|
[_scrollView setAccessibilityLabel:accessibilityLabel];
|