react-native-macos 0.0.0-08d0c3b4f → 0.0.0-0c343d926

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.
Files changed (208) hide show
  1. package/Libraries/Alert/Alert.js +115 -6
  2. package/Libraries/Alert/NativeAlertManager.js +1 -19
  3. package/Libraries/Blob/React-RCTBlob.podspec +1 -1
  4. package/Libraries/Components/View/ViewAccessibility.js +0 -5
  5. package/Libraries/Components/View/ViewPropTypes.js +95 -115
  6. package/Libraries/Core/ReactNativeVersion.js +1 -1
  7. package/Libraries/Image/React-RCTImage.podspec +1 -1
  8. package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
  9. package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h +14 -0
  10. package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +30 -0
  11. package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +11 -6
  12. package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +8 -4
  13. package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +2 -0
  14. package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
  15. package/Libraries/Network/React-RCTNetwork.podspec +1 -1
  16. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
  17. package/Libraries/Settings/React-RCTSettings.podspec +1 -1
  18. package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +7 -0
  19. package/Libraries/Text/RCTTextAttributes.h +9 -3
  20. package/Libraries/Text/RCTTextAttributes.m +17 -0
  21. package/Libraries/Text/Text/RCTTextView.m +5 -11
  22. package/Libraries/Text/Text.js +0 -6
  23. package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +2 -2
  24. package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
  25. package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
  26. package/React/Base/RCTAssert.h +30 -16
  27. package/React/Base/RCTAssert.m +53 -22
  28. package/React/Base/RCTBridge.m +5 -3
  29. package/React/Base/RCTEventDispatcherProtocol.h +5 -0
  30. package/React/Base/RCTUIKit.h +54 -0
  31. package/React/Base/RCTVersion.m +1 -1
  32. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +0 -1
  33. package/React/Base/macOS/RCTUIKit.m +38 -0
  34. package/React/CoreModules/RCTAlertManager.mm +1 -1
  35. package/React/CoreModules/RCTEventDispatcher.mm +6 -1
  36. package/React/CoreModules/RCTLogBox.h +1 -1
  37. package/React/CoreModules/RCTLogBox.mm +35 -19
  38. package/React/CoreModules/RCTLogBoxView.h +8 -5
  39. package/React/CoreModules/RCTLogBoxView.mm +64 -23
  40. package/React/CoreModules/React-CoreModules.podspec +1 -1
  41. package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
  42. package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h +1 -1
  43. package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.mm +3 -2
  44. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
  45. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +8 -8
  46. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h +2 -2
  47. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +3 -3
  48. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +2 -1
  49. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +75 -29
  50. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
  51. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
  52. package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +1 -1
  53. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -0
  54. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +8 -4
  55. package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
  56. package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
  57. package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +0 -1
  58. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +5 -3
  59. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +23 -6
  60. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
  61. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +16 -0
  62. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +6 -4
  63. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +66 -28
  64. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
  65. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +5 -5
  66. package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
  67. package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm +3 -3
  68. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +1 -1
  69. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +1 -1
  70. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +2 -2
  71. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +2 -2
  72. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
  73. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +3 -0
  74. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
  75. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +39 -5
  76. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +9 -6
  77. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +16 -4
  78. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +2 -1
  79. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +6 -4
  80. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
  81. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +14 -4
  82. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +5 -5
  83. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +23 -22
  84. package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
  85. package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +2 -2
  86. package/React/Fabric/Mounting/RCTComponentViewFactory.h +1 -1
  87. package/React/Fabric/Mounting/RCTComponentViewFactory.mm +10 -1
  88. package/React/Fabric/Mounting/RCTComponentViewProtocol.h +4 -4
  89. package/React/Fabric/Mounting/RCTComponentViewRegistry.h +2 -2
  90. package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +3 -1
  91. package/React/Fabric/Mounting/RCTMountingManager.h +3 -3
  92. package/React/Fabric/Mounting/RCTMountingManager.mm +19 -11
  93. package/React/Fabric/Mounting/RCTMountingManagerDelegate.h +1 -1
  94. package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +1 -1
  95. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +6 -6
  96. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +6 -6
  97. package/React/Fabric/RCTConversions.h +6 -6
  98. package/React/Fabric/RCTImageResponseDelegate.h +1 -1
  99. package/React/Fabric/RCTLocalizationProvider.h +1 -1
  100. package/React/Fabric/RCTScheduler.h +3 -1
  101. package/React/Fabric/RCTScheduler.mm +5 -0
  102. package/React/Fabric/RCTSurfacePresenter.h +8 -2
  103. package/React/Fabric/RCTSurfacePresenter.mm +47 -16
  104. package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
  105. package/React/Fabric/RCTSurfaceRegistry.h +1 -1
  106. package/React/Fabric/RCTSurfaceTouchHandler.h +3 -3
  107. package/React/Fabric/RCTSurfaceTouchHandler.mm +8 -8
  108. package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
  109. package/React/Fabric/Surface/RCTFabricSurface.mm +1 -1
  110. package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
  111. package/React/Modules/RCTSurfacePresenterStub.h +4 -0
  112. package/React/Modules/RCTUIManager.m +2 -1
  113. package/React/React-RCTFabric.podspec +1 -1
  114. package/React/Views/RCTMaskedView.h +1 -1
  115. package/React/Views/RCTModalHostView.h +2 -2
  116. package/React/Views/RCTModalHostViewController.h +1 -1
  117. package/React/Views/RCTModalManager.h +1 -1
  118. package/React/Views/RCTSwitch.h +1 -10
  119. package/React/Views/RCTSwitch.m +0 -20
  120. package/React/Views/RCTSwitchManager.m +0 -4
  121. package/React/Views/RCTView.m +1 -1
  122. package/React/Views/RCTViewManager.m +2 -1
  123. package/React/Views/RCTWeakViewHolder.h +1 -1
  124. package/React/Views/RCTWrapperViewController.h +2 -2
  125. package/React/Views/RefreshControl/RCTRefreshControl.h +2 -2
  126. package/React/Views/RefreshControl/RCTRefreshableProtocol.h +1 -1
  127. package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -1
  128. package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -1
  129. package/React/Views/ScrollView/RCTScrollView.m +0 -30
  130. package/React/Views/ScrollView/RCTScrollableProtocol.h +1 -1
  131. package/ReactAndroid/gradle.properties +1 -1
  132. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
  133. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  134. package/ReactAndroid/src/main/jni/Application.mk +1 -1
  135. package/ReactAndroid/src/main/jni/first-party/fb/BUCK +1 -1
  136. package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -2
  137. package/ReactCommon/ReactCommon.podspec +1 -1
  138. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  139. package/ReactCommon/cxxreact/tests/BUCK +1 -1
  140. package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +3 -3
  141. package/ReactCommon/microprofiler/BUCK +1 -1
  142. package/ReactCommon/react/debug/react_native_assert.h +1 -1
  143. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -6
  144. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -3
  145. package/ReactCommon/react/renderer/animations/conversions.h +11 -11
  146. package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +1 -1
  147. package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +16 -16
  148. package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +14 -14
  149. package/ReactCommon/react/renderer/attributedstring/conversions.h +1 -1
  150. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +5 -0
  151. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -3
  152. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +7 -5
  153. package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +1 -1
  154. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +1 -1
  155. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +1 -1
  156. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +1 -1
  157. package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +3 -4
  158. package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +6 -6
  159. package/ReactCommon/react/renderer/components/view/ViewProps.h +3 -1
  160. package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
  161. package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +16 -16
  162. package/ReactCommon/react/renderer/components/view/conversions.h +5 -6
  163. package/ReactCommon/react/renderer/components/view/primitives.h +4 -3
  164. package/ReactCommon/react/renderer/components/view/propsConversions.h +2 -0
  165. package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
  166. package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +7 -7
  167. package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +2 -2
  168. package/ReactCommon/react/renderer/core/Props.h +0 -4
  169. package/ReactCommon/react/renderer/core/RawProps.h +1 -1
  170. package/ReactCommon/react/renderer/core/ShadowNode.cpp +2 -2
  171. package/ReactCommon/react/renderer/core/ShadowNode.h +5 -5
  172. package/ReactCommon/react/renderer/core/propsConversions.h +6 -5
  173. package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +3 -3
  174. package/ReactCommon/react/renderer/debug/debugStringConvertibleUtils.h +3 -3
  175. package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +1 -1
  176. package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +9 -9
  177. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImageManager.h +1 -1
  178. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +1 -1
  179. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.h +1 -1
  180. package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +2 -2
  181. package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +3 -3
  182. package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
  183. package/ReactCommon/react/renderer/mounting/ShadowTreeRevision.h +0 -2
  184. package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
  185. package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +1 -1
  186. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +3 -2
  187. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +7 -1
  188. package/ReactCommon/react/renderer/runtimescheduler/Task.h +3 -2
  189. package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +5 -2
  190. package/ReactCommon/react/renderer/scheduler/Scheduler.h +4 -1
  191. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/NSTextStorage+FontScaling.h +1 -1
  192. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +1 -1
  193. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +15 -15
  194. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontProperties.h +1 -1
  195. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.h +1 -1
  196. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
  197. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
  198. package/ReactCommon/react/utils/ContextContainer.h +2 -2
  199. package/ReactCommon/react/utils/SimpleThreadSafeCache.h +2 -2
  200. package/ReactCommon/yoga/Yoga.podspec +1 -1
  201. package/index.js +0 -11
  202. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/ViewController.m +1 -1
  203. package/package.json +4 -1
  204. package/scripts/react_native_pods.rb +1 -1
  205. package/template/Gemfile.lock +1 -1
  206. package/template/package.json +1 -1
  207. package/Libraries/Alert/AlertMacOS.js +0 -211
  208. package/ReactCommon/butter/optional.h +0 -38
@@ -29,12 +29,12 @@ Pod::Spec.new do |s|
29
29
  s.platforms = { :ios => "11.0", :osx => "10.15" } # TODO(macOS GH#214)
30
30
  s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
31
31
  s.source = source
32
- s.source_files = "{Drivers/*,Nodes/*,*}.{m,mm}"
32
+ s.source_files = "**/*.{h,m,mm}"
33
33
  s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
34
34
  s.header_dir = "RCTAnimation"
35
35
  s.pod_target_xcconfig = {
36
36
  "USE_HEADERMAP" => "YES",
37
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
37
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
38
38
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\""
39
39
  }
40
40
 
@@ -34,7 +34,7 @@ Pod::Spec.new do |s|
34
34
  s.header_dir = "RCTNetwork"
35
35
  s.pod_target_xcconfig = {
36
36
  "USE_HEADERMAP" => "YES",
37
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
37
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
38
38
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\""
39
39
  }
40
40
  s.ios.frameworks = "MobileCoreServices" # TODO(macOS GH#214) - Restrict to iOS
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
35
35
  s.header_dir = "RCTPushNotification"
36
36
  s.pod_target_xcconfig = {
37
37
  "USE_HEADERMAP" => "YES",
38
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
38
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
39
39
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\""
40
40
  }
41
41
  s.framework = "UserNotifications"
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
35
35
  s.header_dir = "RCTSettings"
36
36
  s.pod_target_xcconfig = {
37
37
  "USE_HEADERMAP" => "YES",
38
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
38
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
39
39
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\""
40
40
  }
41
41
 
@@ -6,6 +6,9 @@
6
6
  */
7
7
 
8
8
  #import <React/RCTBaseTextViewManager.h>
9
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
10
+ #import <React/RCTCursor.h>
11
+ #endif // ]TODO(macOS GH#774)
9
12
 
10
13
  @implementation RCTBaseTextViewManager
11
14
 
@@ -56,4 +59,8 @@ RCT_REMAP_SHADOW_PROPERTY(textShadowColor, textAttributes.textShadowColor, UICol
56
59
  RCT_REMAP_SHADOW_PROPERTY(isHighlighted, textAttributes.isHighlighted, BOOL)
57
60
  RCT_REMAP_SHADOW_PROPERTY(textTransform, textAttributes.textTransform, RCTTextTransform)
58
61
 
62
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
63
+ RCT_REMAP_SHADOW_PROPERTY(cursor, textAttributes.cursor, RCTCursor)
64
+ #endif // ]TODO(macOS GH#774)
65
+
59
66
  @end
@@ -6,13 +6,15 @@
6
6
  */
7
7
 
8
8
  #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
-
10
9
  #import <React/RCTTextDecorationLineType.h>
11
10
  #import <React/RCTDynamicTypeRamp.h> // TODO(macOS GH#774)
12
- #import <React/RCTFontSmoothing.h> // TODO(OSS Candidate ISS#2710739)
13
-
11
+ #import <React/RCTFontSmoothing.h> // TODO(macOS GH#774)
14
12
  #import "RCTTextTransform.h"
15
13
 
14
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
15
+ #import <React/RCTCursor.h>
16
+ #endif // ]TODO(macOS GH#774)
17
+
16
18
  NS_ASSUME_NONNULL_BEGIN
17
19
 
18
20
  extern NSString *const RCTTextAttributesIsHighlightedAttributeName;
@@ -61,6 +63,10 @@ extern NSString *const RCTTextAttributesTagAttributeName;
61
63
  @property (nonatomic, assign) UIUserInterfaceLayoutDirection layoutDirection;
62
64
  @property (nonatomic, assign) RCTTextTransform textTransform;
63
65
 
66
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
67
+ @property (nonatomic, assign) RCTCursor cursor;
68
+ #endif // ]TODO(macOS GH#774)
69
+
64
70
  #pragma mark - Inheritance
65
71
 
66
72
  - (void)applyTextAttributes:(RCTTextAttributes *)textAttributes;
@@ -11,6 +11,10 @@
11
11
  #import <React/RCTFont.h>
12
12
  #import <React/RCTLog.h>
13
13
 
14
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
15
+ #import <React/RCTCursor.h>
16
+ #endif // ]TODO(macOS GH#774)
17
+
14
18
  NSString *const RCTTextAttributesIsHighlightedAttributeName = @"RCTTextAttributesIsHighlightedAttributeName";
15
19
  NSString *const RCTTextAttributesFontSmoothingAttributeName = @"RCTTextAttributesFontSmoothingAttributeName"; // TODO(OSS Candidate ISS#2710739)
16
20
  NSString *const RCTTextAttributesTagAttributeName = @"RCTTextAttributesTagAttributeName";
@@ -45,6 +49,9 @@ NSString *const RCTTextAttributesTagAttributeName = @"RCTTextAttributesTagAttrib
45
49
  // [TODO(macOS GH#774)
46
50
  _foregroundColor = [RCTTextAttributes defaultForegroundColor];
47
51
  // ]TODO(macOS GH#774)
52
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
53
+ _cursor = RCTCursorAuto;
54
+ #endif // ]TODO(macOS GH#774)
48
55
  }
49
56
 
50
57
  return self;
@@ -94,6 +101,10 @@ NSString *const RCTTextAttributesTagAttributeName = @"RCTTextAttributesTagAttrib
94
101
  _tag = textAttributes->_tag ?: _tag;
95
102
  _layoutDirection = textAttributes->_layoutDirection != UIUserInterfaceLayoutDirectionLeftToRight ? textAttributes->_layoutDirection : _layoutDirection;
96
103
  _textTransform = textAttributes->_textTransform != RCTTextTransformUndefined ? textAttributes->_textTransform : _textTransform;
104
+
105
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
106
+ _cursor = textAttributes->_cursor != RCTCursorAuto ? textAttributes->_cursor : _cursor;
107
+ #endif // ]TODO(macOS GH#774)
97
108
  }
98
109
 
99
110
  - (NSParagraphStyle *)effectiveParagraphStyle
@@ -210,6 +221,12 @@ NSString *const RCTTextAttributesTagAttributeName = @"RCTTextAttributesTagAttrib
210
221
  attributes[RCTTextAttributesTagAttributeName] = _tag;
211
222
  }
212
223
 
224
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
225
+ if (_cursor != RCTCursorAuto) {
226
+ attributes[NSCursorAttributeName] = [RCTConvert NSCursor:_cursor];
227
+ }
228
+ #endif // ]TODO(macOS GH#774)
229
+
213
230
  return [attributes copy];
214
231
  }
215
232
 
@@ -9,8 +9,6 @@
9
9
 
10
10
  #if !TARGET_OS_OSX // TODO(macOS GH#774)
11
11
  #import <MobileCoreServices/UTCoreTypes.h>
12
- #else
13
- #import <Quartz/Quartz.h> // TODO(macOS GH#774) for CATiledLayer
14
12
  #endif // TODO(macOS GH#774)
15
13
 
16
14
  #import <React/RCTAssert.h> // TODO(macOS GH#774)
@@ -20,7 +18,7 @@
20
18
 
21
19
  #import <React/RCTTextShadowView.h>
22
20
 
23
- #import <QuartzCore/QuartzCore.h> // TODO(macOS GH#774)
21
+ #import <QuartzCore/QuartzCore.h>
24
22
 
25
23
  #if TARGET_OS_OSX // [TODO(macOS GH#774)
26
24
 
@@ -98,10 +96,6 @@
98
96
  return self;
99
97
  }
100
98
 
101
- #if TARGET_OS_OSX // [TODO(macOS GH#774)
102
-
103
- #endif // ]TODO(macOS GH#774)
104
-
105
99
  #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
106
100
  - (NSString *)description
107
101
  {
@@ -527,7 +521,7 @@
527
521
  NSData *rtf = [attributedText dataFromRange:NSMakeRange(0, attributedText.length)
528
522
  documentAttributes:@{NSDocumentTypeDocumentAttribute: NSRTFDTextDocumentType}
529
523
  error:nil];
530
- #if TARGET_OS_IPHONE // TODO(macOS GH#774)
524
+ #if TARGET_OS_IPHONE // [TODO(macOS GH#774)
531
525
  NSMutableDictionary *item = [NSMutableDictionary new]; // TODO(macOS GH#774)
532
526
 
533
527
  if (rtf) {
@@ -538,13 +532,13 @@
538
532
 
539
533
  UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
540
534
  pasteboard.items = @[item];
541
- #elif TARGET_OS_OSX // TODO(macOS GH#774)
535
+ #elif TARGET_OS_OSX
542
536
  [_textView copy:sender];
543
537
 
544
538
  NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
545
539
  [pasteboard clearContents];
546
- [pasteboard writeObjects:[NSArray arrayWithObjects:attributedText.string, rtf, nil]];
547
- #endif // TODO(macOS GH#774)
540
+ [pasteboard setData:rtf forType:NSPasteboardTypeRTFD];
541
+ #endif // ]TODO(macOS GH#774)
548
542
  }
549
543
 
550
544
  @end
@@ -181,12 +181,6 @@ const Text: React.AbstractComponent<
181
181
 
182
182
  Text.displayName = 'Text';
183
183
 
184
- /**
185
- * Switch to `deprecated-react-native-prop-types` for compatibility with future
186
- * releases. This is deprecated and will be removed in the future.
187
- */
188
- Text.propTypes = require('deprecated-react-native-prop-types').TextPropTypes;
189
-
190
184
  /**
191
185
  * Returns false until the first time `newValue` is true, after which this will
192
186
  * always return true. This is necessary to lazily initialize `Pressability` so
@@ -25,9 +25,9 @@ NS_ASSUME_NONNULL_END
25
25
 
26
26
  NS_ASSUME_NONNULL_BEGIN
27
27
 
28
- #if !TARGET_OS_OSX // TODO(macOS GH#774)
28
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
29
29
  @protocol RCTBackedTextInputViewProtocol <UITextInput>
30
- #else // [TODO(macOS GH#774)
30
+ #else
31
31
  @protocol RCTBackedTextInputViewProtocol
32
32
  #endif // ]TODO(macOS GH#774)
33
33
 
@@ -33,7 +33,7 @@ Pod::Spec.new do |s|
33
33
  s.header_dir = "RCTTypeSafety"
34
34
  s.pod_target_xcconfig = {
35
35
  "USE_HEADERMAP" => "YES",
36
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
36
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
37
37
  "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/Libraries/TypeSafety\" \"$(PODS_ROOT)/RCT-Folly\""
38
38
  }
39
39
 
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
35
35
  s.header_dir = "RCTVibration"
36
36
  s.pod_target_xcconfig = {
37
37
  "USE_HEADERMAP" => "YES",
38
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
38
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
39
39
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\""
40
40
  }
41
41
  s.frameworks = "AudioToolbox"
@@ -170,21 +170,35 @@ RCT_EXTERN NSString *RCTFormatStackTrace(NSArray<NSDictionary<NSString *, id> *>
170
170
 
171
171
  #endif
172
172
 
173
- /**
174
- * Controls for ensuring the new architecture runtime assumption holds.
175
- * Note: this is work in progress.
176
- */
173
+ // MARK: - New Architecture Validation
177
174
 
178
- // Enable reporting of any violation related to the new React Native architecture.
179
- // If RCT_NEW_ARCHITECTURE is defined, it is already enabled by default, otherwise, no violation will be
180
- // reported until enabled.
181
- // Note: enabling this at runtime is not early enough to report issues within ObjC class +load execution.
182
- __attribute__((used)) RCT_EXTERN void RCTEnableNewArchitectureViolationReporting(BOOL enabled);
175
+ typedef enum {
176
+ RCTNotAllowedInFabric = 1,
177
+ RCTNotAllowedInBridgeless = 2,
178
+ } RCTNotAllowedValidation;
183
179
 
184
- // When reporting is enabled, trigger an assertion.
185
- __attribute__((used)) RCT_EXTERN void RCTEnforceNotAllowedForNewArchitecture(id context, NSString *extra);
186
- // When reporting is enabled, trigger an error but do not crash. Use this to prepare a specific callsite
187
- // for stricter enforcement. When ready, switch it to use the variant above.
188
- __attribute__((used)) RCT_EXTERN void RCTErrorNotAllowedForNewArchitecture(id context, NSString *extra);
189
- // When reporting is enabled, log an message. When ready, switch it to use the variant above.
190
- __attribute__((used)) RCT_EXTERN void RCTLogNotAllowedForNewArchitecture(id context, NSString *extra);
180
+ /**
181
+ * Ensure runtime assumptions holds for the new architecture by reporting when assumptions are violated.
182
+ * Note: this is work in progress.
183
+ *
184
+ * When type is RCTNotAllowedInFabric, validate Fabric assumptions in Bridge or Bridgeless mode.
185
+ * i.e. Report legacy pre-Fabric call sites that should not be used while Fabric is enabled,
186
+ *
187
+ * When type is RCTNotAllowedInBridgeless, validate Bridgeless assumptions, in Bridgeless mode only.
188
+ * i.e. Report Bridge call sites that should not be used while Bridgeless mode is enabled.
189
+ *
190
+ * Note: enabling this at runtime is not early enough to report issues within ObjC class +load execution.
191
+ */
192
+ __attribute__((used)) RCT_EXTERN void RCTEnableNewArchitectureValidationReporting(RCTNotAllowedValidation type);
193
+
194
+ // When new architecture validation reporting is enabled, trigger an assertion and crash.
195
+ __attribute__((used)) RCT_EXTERN void
196
+ RCTEnforceNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra);
197
+ // When new architecture validation reporting is enabled, trigger an error but do not crash.
198
+ // When ready, switch to stricter variant above.
199
+ __attribute__((used)) RCT_EXTERN void
200
+ RCTErrorNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra);
201
+ // When new architecture validation reporting is enabled, log an message.
202
+ // When ready, switch to stricter variant above.
203
+ __attribute__((used)) RCT_EXTERN void
204
+ RCTLogNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra);
@@ -231,63 +231,94 @@ RCTFatalExceptionHandler RCTGetFatalExceptionHandler(void)
231
231
  return RCTCurrentFatalExceptionHandler;
232
232
  }
233
233
 
234
- // -------------------------
235
- // New architecture section
236
- // -------------------------
234
+ // MARK: - New Architecture Validation - Enable Reporting
237
235
 
238
236
  #if RCT_NEW_ARCHITECTURE
239
- static BOOL newArchitectureViolationReporting = YES;
237
+ static RCTNotAllowedValidation validationReportingEnabled = RCTNotAllowedInBridgeless;
240
238
  #else
241
- static BOOL newArchitectureViolationReporting = NO;
239
+ static RCTNotAllowedValidation validationReportingEnabled = 0;
242
240
  #endif
243
241
 
244
- void RCTEnableNewArchitectureViolationReporting(BOOL enabled)
242
+ __attribute__((used)) RCT_EXTERN void RCTEnableNewArchitectureValidationReporting(RCTNotAllowedValidation type)
245
243
  {
246
244
  #if RCT_NEW_ARCHITECTURE
247
245
  // Cannot disable the reporting in this mode.
248
246
  #else
249
- newArchitectureViolationReporting = enabled;
247
+ validationReportingEnabled = type;
250
248
  #endif
251
249
  }
252
250
 
253
- static NSString *getNewArchitectureViolationMessage(id context, NSString *extra)
251
+ // MARK: - New Architecture Validation - Private
252
+
253
+ static BOOL shouldEnforceValidation(RCTNotAllowedValidation type)
254
+ {
255
+ switch (type) {
256
+ case RCTNotAllowedInFabric:
257
+ return validationReportingEnabled == RCTNotAllowedInBridgeless ||
258
+ validationReportingEnabled == RCTNotAllowedInFabric;
259
+ case RCTNotAllowedInBridgeless:
260
+ return validationReportingEnabled == RCTNotAllowedInBridgeless;
261
+ }
262
+ return NO;
263
+ }
264
+
265
+ static NSString *stringDescribingContext(id context)
254
266
  {
255
- NSString *tag = @"uncategorized";
256
267
  if ([context isKindOfClass:NSString.class]) {
257
- tag = context;
268
+ return context;
258
269
  } else if (context) {
259
270
  Class klass = [context class];
260
271
  if (klass) {
261
- tag = NSStringFromClass(klass);
272
+ return NSStringFromClass(klass);
262
273
  }
263
274
  }
264
- NSString *errorMessage = extra ?: @"Unexpectedly reached this code path.";
265
- return [NSString stringWithFormat:@"[ReactNative Architecture][%@] %@", tag, errorMessage];
275
+ return @"uncategorized";
266
276
  }
267
277
 
268
- void RCTEnforceNotAllowedForNewArchitecture(id context, NSString *extra)
278
+ static NSString *validationMessage(RCTNotAllowedValidation type, id context, NSString *extra)
279
+ {
280
+ NSString *notAllowedType;
281
+ switch (type) {
282
+ case RCTNotAllowedInFabric:
283
+ notAllowedType = @"Fabric";
284
+ break;
285
+ case RCTNotAllowedInBridgeless:
286
+ notAllowedType = @"Bridgeless";
287
+ break;
288
+ }
289
+
290
+ return
291
+ [NSString stringWithFormat:@"[ReactNative Architecture][NotAllowedIn%@] Unexpectedly reached code path in %@. %@",
292
+ notAllowedType,
293
+ stringDescribingContext(context),
294
+ extra ?: @""];
295
+ }
296
+
297
+ // MARK: - New Architecture Validation - Public
298
+
299
+ void RCTEnforceNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra)
269
300
  {
270
- if (!newArchitectureViolationReporting) {
301
+ if (!shouldEnforceValidation(type)) {
271
302
  return;
272
303
  }
273
304
 
274
- RCTAssert(0, @"%@", getNewArchitectureViolationMessage(context, extra));
305
+ RCTAssert(0, @"%@", validationMessage(type, context, extra));
275
306
  }
276
307
 
277
- void RCTErrorNotAllowedForNewArchitecture(id context, NSString *extra)
308
+ void RCTErrorNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra)
278
309
  {
279
- if (!newArchitectureViolationReporting) {
310
+ if (!shouldEnforceValidation(type)) {
280
311
  return;
281
312
  }
282
313
 
283
- RCTLogError(@"%@", getNewArchitectureViolationMessage(context, extra));
314
+ RCTLogError(@"%@", validationMessage(type, context, extra));
284
315
  }
285
316
 
286
- void RCTLogNotAllowedForNewArchitecture(id context, NSString *extra)
317
+ void RCTLogNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra)
287
318
  {
288
- if (!newArchitectureViolationReporting) {
319
+ if (!shouldEnforceValidation(type)) {
289
320
  return;
290
321
  }
291
322
 
292
- RCTLogInfo(@"%@", getNewArchitectureViolationMessage(context, extra));
323
+ RCTLogInfo(@"%@", validationMessage(type, context, extra));
293
324
  }
@@ -60,8 +60,10 @@ NSArray<Class> *RCTGetModuleClasses(void)
60
60
  void RCTRegisterModule(Class);
61
61
  void RCTRegisterModule(Class moduleClass)
62
62
  {
63
- RCTLogNotAllowedForNewArchitecture(
64
- @"RCTRegisterModule()", [NSString stringWithFormat:@"'%@' was registered unexpectedly", moduleClass]);
63
+ RCTLogNewArchitectureValidation(
64
+ RCTNotAllowedInBridgeless,
65
+ @"RCTRegisterModule()",
66
+ [NSString stringWithFormat:@"'%@' was registered unexpectedly", moduleClass]);
65
67
 
66
68
  static dispatch_once_t onceToken;
67
69
  dispatch_once(&onceToken, ^{
@@ -223,7 +225,7 @@ static RCTBridge *RCTCurrentBridgeInstance = nil;
223
225
  launchOptions:(NSDictionary *)launchOptions
224
226
  {
225
227
  if (self = [super init]) {
226
- RCTEnforceNotAllowedForNewArchitecture(self, nil);
228
+ RCTEnforceNewArchitectureValidation(RCTNotAllowedInBridgeless, self, nil);
227
229
  _delegate = delegate;
228
230
  _bundleURL = bundleURL;
229
231
  _moduleProvider = block;
@@ -102,6 +102,11 @@ typedef NS_ENUM(NSInteger, RCTTextEventType) {
102
102
  key:(NSString *)key
103
103
  eventCount:(NSInteger)eventCount;
104
104
 
105
+ /**
106
+ * Notify Observers of event
107
+ */
108
+ - (void)notifyObserversOfEvent:(id<RCTEvent>)event;
109
+
105
110
  /**
106
111
  * Send a pre-prepared event object.
107
112
  *
@@ -468,3 +468,57 @@ NS_INLINE CGRect CGRectValue(NSValue *value)
468
468
  }
469
469
 
470
470
  #endif // ] TARGET_OS_OSX
471
+
472
+ //
473
+ // fabric component types
474
+ //
475
+
476
+ // RCTUISlider
477
+
478
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
479
+ #define RCTUISlider UISlider
480
+ #else
481
+ @interface RCTUISlider : NSSlider
482
+ @end
483
+ #endif // ]TODO(macOS GH#774)n
484
+
485
+ // RCTUILabel
486
+
487
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
488
+ #define RCTUILabel UILabel
489
+ #else
490
+ @interface RCTUILabel : NSTextField
491
+ @end
492
+ #endif // ]TODO(macOS GH#774)
493
+
494
+ // RCTUISwitch
495
+
496
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
497
+ typedef UISwitch RCTUISwitch;
498
+ #else
499
+ @interface RCTUISwitch : NSSwitch
500
+
501
+ @property (nonatomic, assign, getter=isOn) BOOL on;
502
+
503
+ - (void)setOn:(BOOL)on animated:(BOOL)animated;
504
+
505
+ @end
506
+ #endif // ]TODO(macOS GH#774)
507
+
508
+ // RCTUIActivityIndicatorView
509
+
510
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
511
+ #define RCTUIActivityIndicatorView UIActivityIndicatorView
512
+ #else
513
+ @interface RCTUIActivityIndicatorView : NSProgressIndicator
514
+
515
+ @property (nonatomic, assign) UIActivityIndicatorViewStyle activityIndicatorViewStyle;
516
+ @property (nonatomic, assign) BOOL hidesWhenStopped;
517
+ @property (nullable, readwrite, nonatomic, strong) RCTUIColor *color;
518
+ @property (nonatomic, readonly, getter=isAnimating) BOOL animating;
519
+
520
+ - (void)startAnimating;
521
+ - (void)stopAnimating;
522
+
523
+ @end
524
+ #endif // ]TODO(macOS GH#774)
@@ -28,7 +28,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(0),
30
30
  RCTVersionPatch: @(0),
31
- RCTVersionPrerelease: @"08d0c3b4f",
31
+ RCTVersionPrerelease: @"0c343d926",
32
32
  };
33
33
  });
34
34
  return __rnVersion;
@@ -6,7 +6,6 @@
6
6
  */
7
7
 
8
8
  #import "RCTSurfaceHostingView.h"
9
-
10
9
  #import "RCTConstants.h"
11
10
  #import "RCTDefines.h"
12
11
  #import "RCTSurface.h"
@@ -589,4 +589,42 @@ BOOL RCTUIViewSetClipsToBounds(RCTPlatformView *view)
589
589
  return [super constrainBoundsRect:proposedBounds];
590
590
  }
591
591
 
592
+ @end
593
+
594
+ // RCTUILabel
595
+
596
+ @implementation RCTUILabel {} // [TODO(macOS GH#774)
597
+
598
+ - (instancetype)initWithFrame:(NSRect)frameRect
599
+ {
600
+ if (self = [super initWithFrame:frameRect]) {
601
+ [self setBezeled:NO];
602
+ [self setDrawsBackground:NO];
603
+ [self setEditable:NO];
604
+ [self setSelectable:NO];
605
+ [self setWantsLayer:YES];
606
+ }
607
+
608
+ return self;
609
+ }
610
+
611
+ @end // ]TODO(macOS GH#774)
612
+
613
+ @implementation RCTUISwitch
614
+
615
+ - (BOOL)isOn
616
+ {
617
+ return self.state == NSControlStateValueOn;
618
+ }
619
+
620
+ - (void)setOn:(BOOL)on
621
+ {
622
+ self.state = on ? NSControlStateValueOn : NSControlStateValueOff;
623
+ }
624
+
625
+ - (void)setOn:(BOOL)on animated:(BOOL)animated {
626
+ self.state = on ? NSControlStateValueOn : NSControlStateValueOff;
627
+ }
628
+
629
+
592
630
  @end
@@ -78,7 +78,7 @@ RCT_EXPORT_MODULE()
78
78
  * The key from the `buttons` dictionary is passed back in the callback on click.
79
79
  * Buttons are displayed in the order they are specified.
80
80
  */
81
- RCT_EXPORT_METHOD(alertWithArgs : (JS::NativeAlertManager::NativeArgs &)args callback : (RCTResponseSenderBlock)callback)
81
+ RCT_EXPORT_METHOD(alertWithArgs : (JS::NativeAlertManager::Args &)args callback : (RCTResponseSenderBlock)callback)
82
82
  {
83
83
  NSString *title = [RCTConvert NSString:args.title()];
84
84
  NSString *message = [RCTConvert NSString:args.message()];
@@ -110,7 +110,7 @@ RCT_EXPORT_MODULE()
110
110
  [self sendEvent:event];
111
111
  }
112
112
 
113
- - (void)sendEvent:(id<RCTEvent>)event
113
+ - (void)notifyObserversOfEvent:(id<RCTEvent>)event
114
114
  {
115
115
  [_observersLock lock];
116
116
 
@@ -119,6 +119,11 @@ RCT_EXPORT_MODULE()
119
119
  }
120
120
 
121
121
  [_observersLock unlock];
122
+ }
123
+
124
+ - (void)sendEvent:(id<RCTEvent>)event
125
+ {
126
+ [self notifyObserversOfEvent:event];
122
127
 
123
128
  [_eventQueueLock lock];
124
129
 
@@ -12,7 +12,7 @@
12
12
 
13
13
  #if RCT_DEV_MENU
14
14
 
15
- - (void)setRCTLogBoxWindow:(RCTLogBoxWindow *)window; // TODO(macOS GH#774) Renamed from _view to _window
15
+ - (void)setRCTLogBoxView:(RCTLogBoxView *)view;
16
16
 
17
17
  #endif
18
18