react-native-macos 0.0.0-cfdd34990 → 0.0.0-d2f5a1ffb
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/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +25 -0
- package/Libraries/Animated/AnimatedEvent.js +23 -4
- package/Libraries/Animated/NativeAnimatedHelper.js +1 -1
- package/Libraries/Animated/nodes/AnimatedValue.js +0 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +22 -12
- package/Libraries/Components/Button.js +1 -1
- package/Libraries/Components/CheckBox/CheckBox.macos.js +8 -4
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
- package/Libraries/Components/Keyboard/Keyboard.js +2 -2
- package/Libraries/Components/ScrollView/ScrollView.js +8 -5
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
- package/Libraries/Components/Touchable/TouchableBounce.js +11 -22
- package/Libraries/Components/Touchable/TouchableHighlight.js +19 -30
- package/Libraries/Components/Touchable/TouchableOpacity.js +14 -29
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +8 -18
- package/Libraries/Components/View/ReactNativeViewAttributes.js +8 -7
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +1 -2
- package/Libraries/Components/View/View.js +8 -10
- package/Libraries/Components/View/ViewAccessibility.js +0 -1
- package/Libraries/Components/View/ViewPropTypes.js +1 -7
- package/Libraries/Core/ExceptionsManager.js +3 -1
- package/Libraries/Core/ReactNativeVersion.js +5 -1
- package/Libraries/Core/setUpBatchedBridge.js +1 -1
- package/Libraries/Core/setUpGlobals.js +2 -0
- package/Libraries/Core/setUpTimers.js +2 -2
- package/Libraries/Image/Image.ios.js +6 -0
- package/Libraries/LogBox/Data/LogBoxData.js +18 -18
- package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +0 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +6 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.h +1 -2
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +2 -1
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/Pressability/Pressability.js +1 -0
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +238 -47
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +84 -18
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +84 -18
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +238 -47
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +84 -18
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +84 -18
- package/Libraries/StyleSheet/PlatformColorValueTypes.macos.js +16 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.js +2 -0
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.macos.js +8 -1
- package/Libraries/StyleSheet/normalizeColor.js +2 -2
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -0
- package/Libraries/Text/Text/RCTTextView.m +8 -4
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +10 -8
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +2 -0
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +15 -3
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +10 -1
- package/Libraries/Text/TextProps.js +1 -7
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/Types/RootTagTypes.js~merged +23 -0
- package/Libraries/Utilities/HMRClient.js +1 -1
- package/Libraries/WebSocket/RCTSRWebSocket.m +23 -0
- package/README.md +18 -42
- package/React/Base/RCTBridge+Private.h +8 -0
- package/React/Base/RCTBridge.h +4 -0
- package/React/Base/RCTBridge.m +17 -0
- package/React/Base/RCTBridgeModule.h +2 -2
- package/React/Base/RCTBundleURLProvider.h +1 -1
- package/React/Base/RCTBundleURLProvider.mm +2 -2
- package/React/Base/RCTConvert.m +23 -6
- package/React/Base/RCTDefines.h +12 -3
- package/React/Base/RCTEventDispatcherProtocol.h +2 -0
- package/React/Base/RCTImageSource.m +2 -0
- package/React/Base/RCTJSStackFrame.m +2 -0
- package/React/Base/RCTJavaScriptLoader.mm +2 -0
- package/React/Base/RCTKeyCommands.m +2 -0
- package/React/Base/RCTModuleData.mm +2 -0
- package/React/Base/RCTModuleMethod.mm +2 -0
- package/React/Base/RCTRootView.h +15 -0
- package/React/Base/RCTRootView.m +15 -0
- package/React/Base/RCTTouchEvent.m +2 -0
- package/React/Base/RCTVersion.m +5 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +11 -0
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +35 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +1 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +4 -1
- package/React/CoreModules/RCTActionSheetManager.mm +4 -0
- package/React/CoreModules/RCTAddressSanitizerCrashManager.h +12 -0
- package/React/CoreModules/RCTAddressSanitizerCrashManager.mm +18 -0
- package/React/CoreModules/RCTAlertController.m +8 -4
- package/React/CoreModules/RCTAppearance.mm +5 -1
- package/React/CoreModules/RCTDevLoadingView.mm +14 -9
- package/React/CoreModules/RCTDevMenu.mm +4 -4
- package/React/CoreModules/RCTDevSettings.mm +6 -6
- package/React/CoreModules/RCTDevSplitBundleLoader.mm +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +4 -4
- package/React/CoreModules/RCTEventDispatcher.mm +5 -0
- package/React/CoreModules/RCTPerfMonitor.mm +9 -4
- package/React/CxxBridge/RCTCxxBridge.mm +18 -1
- package/React/CxxModule/RCTCxxMethod.mm +2 -0
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +12 -0
- package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2126 -0
- package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +2682 -0
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +11 -3
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +9 -0
- package/React/Fabric/Mounting/RCTMountingManager.mm +15 -1
- package/React/Fabric/RCTScheduler.mm +10 -3
- package/React/Modules/RCTEventEmitter.h +2 -2
- package/React/Modules/RCTLayoutAnimation.m +2 -0
- package/React/Modules/RCTLayoutAnimationGroup.m +2 -0
- package/React/Modules/RCTUIManager.m +19 -10
- package/React/Views/RCTFont.mm +58 -47
- package/React/Views/RCTShadowView.m +3 -1
- package/React/Views/RCTView.h +5 -2
- package/React/Views/RCTView.m +22 -10
- package/React/Views/RCTViewManager.m +12 -17
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +2 -0
- package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.h +2 -2
- package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.m +4 -4
- package/React/Views/ScrollView/RCTScrollContentView.m +10 -24
- package/React/Views/ScrollView/RCTScrollView.m +1 -5
- package/React-Core.podspec +0 -11
- package/ReactAndroid/build.gradle +12 -6
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -1
- package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -7
- package/ReactAndroid/src/main/java/com/facebook/react/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +51 -21
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +39 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/RuntimeScheduler.java +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/{JavaScriptTimerManager.java → JavaScriptTimerExecutor.java} +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java +7 -7
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/TimingModule.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java +23 -19
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +20 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +25 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +25 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +0 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +8 -8
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +3 -2
- package/ReactAndroid/src/main/jni/react/jni/BUCK +2 -0
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +29 -0
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +4 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.cpp +18 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.h +25 -0
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp +22 -0
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.h +30 -0
- package/ReactAndroid/src/main/jni/third-party/libevent/event-config.h +339 -339
- package/ReactAndroid/src/main/third-party/android/androidx/BUCK +6 -6
- package/ReactCommon/React-Fabric.podspec +9 -0
- package/ReactCommon/cxxreact/ReactNativeVersion.h +5 -1
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +7 -4
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +1238 -1491
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +14 -31
- package/ReactCommon/react/renderer/animations/BUCK +1 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationCallbackWrapper.h +34 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +5 -26
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.h +3 -13
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +1399 -1622
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +76 -244
- package/ReactCommon/react/renderer/animations/conversions.h +212 -0
- package/ReactCommon/react/renderer/animations/primitives.h +104 -0
- package/ReactCommon/react/renderer/animations/utils.cpp +71 -0
- package/ReactCommon/react/renderer/animations/utils.h +80 -0
- package/ReactCommon/react/renderer/attributedstring/AttributedString.h +0 -1
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +7 -3
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h +12 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +1 -1
- package/ReactCommon/react/renderer/attributedstring/conversions.h +58 -3
- package/ReactCommon/react/renderer/attributedstring/primitives.h +18 -1
- package/ReactCommon/react/renderer/components/text/ParagraphComponentDescriptor.h +1 -17
- package/ReactCommon/react/renderer/components/view/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/view/ViewComponentDescriptor.h +0 -23
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +2 -3
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +1 -0
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +4 -0
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +14 -6
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +1 -0
- package/ReactCommon/react/renderer/core/Props.h +1 -0
- package/ReactCommon/react/renderer/core/PropsParserContext.h +3 -2
- package/ReactCommon/react/renderer/core/RawPropsKey.cpp +10 -2
- package/ReactCommon/react/renderer/core/ReactPrimitives.h +0 -2
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +1 -0
- package/ReactCommon/react/renderer/graphics/Android.mk +1 -1
- package/ReactCommon/react/renderer/graphics/Transform.cpp +1 -1
- package/ReactCommon/react/renderer/graphics/Transform.h +1 -1
- package/ReactCommon/react/renderer/mounting/Android.mk +2 -1
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +12 -0
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +10 -1
- package/ReactCommon/react/renderer/runtimescheduler/BUCK +0 -1
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +4 -3
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerClock.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriority.h +4 -3
- package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/primitives.h +4 -2
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +4 -4
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +2 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +19 -0
- package/ReactCommon/react/renderer/timeline/BUCK +6 -6
- package/ReactCommon/react/renderer/uimanager/UIManagerAnimationDelegate.h +1 -1
- package/ReactCommon/react/test_utils/BUCK +3 -0
- package/ReactCommon/react/test_utils/MockSurfaceHandler.h +25 -0
- package/ReactCommon/react/utils/ContextContainer.h +0 -27
- package/flow/global.js +45 -0
- package/index.js +15 -10
- package/jest/preprocessor.js +7 -75
- package/local-cli/cli.js +0 -0
- package/package.json +28 -22
- package/react.gradle +1 -1
- package/scripts/generate-specs-cli.js +18 -0
- package/scripts/ios-configure-glog.sh +4 -0
- package/scripts/react-native-xcode.sh +1 -1
- package/scripts/react_native_pods.rb +157 -38
- package/template/_flowconfig +1 -1
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/package.json +4 -2
- package/CHANGELOG.json +0 -500
- package/CHANGELOG.md +0 -240
- package/Libraries/.npmignore +0 -1
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
- package/React/Base/macOS/RCTDynamicColor.h +0 -28
- package/React/Base/macOS/RCTDynamicColor.m +0 -217
- package/ReactAndroid/.npmignore +0 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java +0 -172
- package/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js +0 -45
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/BUCK +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java +0 -137
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java +0 -153
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java +0 -117
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/BUCK +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/RuntimeSchedulerManager.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/Android.mk +0 -34
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/BUCK +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/OnLoad.cpp +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.cpp +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.h +0 -40
- package/ReactAndroid/src/main/jni/first-party/fbjni/.gitignore +0 -2
- package/ReactCommon/hermes/inspector/tools/msggen/.gitignore +0 -3
- package/scripts/generate-specs.sh +0 -99
- package/template/_editorconfig +0 -3
- package/template/_gitattributes +0 -3
|
@@ -283,8 +283,8 @@ class TouchableHighlight extends React.Component<Props, State> {
|
|
|
283
283
|
const {
|
|
284
284
|
onBlur,
|
|
285
285
|
onFocus,
|
|
286
|
-
onMouseEnter, // [TODO(macOS
|
|
287
|
-
onMouseLeave, // ]TODO(macOS
|
|
286
|
+
onMouseEnter, // [TODO(macOS GH#774)
|
|
287
|
+
onMouseLeave, // ]TODO(macOS GH#774)
|
|
288
288
|
...eventHandlersWithoutBlurAndFocus
|
|
289
289
|
} = this.state.pressability.getEventHandlers();
|
|
290
290
|
|
|
@@ -300,7 +300,7 @@ class TouchableHighlight extends React.Component<Props, State> {
|
|
|
300
300
|
<View
|
|
301
301
|
accessible={this.props.accessible !== false}
|
|
302
302
|
accessibilityLabel={this.props.accessibilityLabel}
|
|
303
|
-
accessibilityHint={this.props.accessibilityHint}
|
|
303
|
+
accessibilityHint={this.props.accessibilityHint}
|
|
304
304
|
accessibilityRole={this.props.accessibilityRole}
|
|
305
305
|
accessibilityState={accessibilityState}
|
|
306
306
|
accessibilityValue={this.props.accessibilityValue}
|
|
@@ -310,14 +310,6 @@ class TouchableHighlight extends React.Component<Props, State> {
|
|
|
310
310
|
accessibilityLiveRegion={this.props.accessibilityLiveRegion}
|
|
311
311
|
accessibilityViewIsModal={this.props.accessibilityViewIsModal}
|
|
312
312
|
accessibilityElementsHidden={this.props.accessibilityElementsHidden}
|
|
313
|
-
acceptsFirstMouse={
|
|
314
|
-
this.props.acceptsFirstMouse !== false && !this.props.disabled
|
|
315
|
-
} // TODO(macOS GH#774)
|
|
316
|
-
enableFocusRing={
|
|
317
|
-
(this.props.enableFocusRing === undefined ||
|
|
318
|
-
this.props.enableFocusRing === true) &&
|
|
319
|
-
!this.props.disabled
|
|
320
|
-
} // TODO(macOS/win GH#774)
|
|
321
313
|
style={StyleSheet.compose(
|
|
322
314
|
this.props.style,
|
|
323
315
|
this.state.extraStyles?.underlay,
|
|
@@ -330,31 +322,28 @@ class TouchableHighlight extends React.Component<Props, State> {
|
|
|
330
322
|
nextFocusLeft={this.props.nextFocusLeft}
|
|
331
323
|
nextFocusRight={this.props.nextFocusRight}
|
|
332
324
|
nextFocusUp={this.props.nextFocusUp}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
//
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
tooltip={this.props.tooltip} // TODO(macOS/win GH#774)
|
|
348
|
-
onMouseEnter={this.props.onMouseEnter} // [TODO(macOS/win GH#774)
|
|
325
|
+
nativeID={this.props.nativeID}
|
|
326
|
+
testID={this.props.testID}
|
|
327
|
+
// [TODO(macOS GH#774)
|
|
328
|
+
acceptsFirstMouse={
|
|
329
|
+
this.props.acceptsFirstMouse !== false && !this.props.disabled
|
|
330
|
+
}
|
|
331
|
+
enableFocusRing={
|
|
332
|
+
(this.props.enableFocusRing === undefined ||
|
|
333
|
+
this.props.enableFocusRing === true) &&
|
|
334
|
+
!this.props.disabled
|
|
335
|
+
}
|
|
336
|
+
focusable={this.props.focusable !== false && !this.props.disabled}
|
|
337
|
+
tooltip={this.props.tooltip}
|
|
338
|
+
onMouseEnter={this.props.onMouseEnter}
|
|
349
339
|
onMouseLeave={this.props.onMouseLeave}
|
|
350
340
|
onDragEnter={this.props.onDragEnter}
|
|
351
341
|
onDragLeave={this.props.onDragLeave}
|
|
352
342
|
onDrop={this.props.onDrop}
|
|
353
343
|
onFocus={this.props.onFocus}
|
|
354
344
|
onBlur={this.props.onBlur}
|
|
355
|
-
draggedTypes={this.props.draggedTypes}
|
|
356
|
-
|
|
357
|
-
testID={this.props.testID}
|
|
345
|
+
draggedTypes={this.props.draggedTypes}
|
|
346
|
+
// ]TODO(macOS/win GH#774)
|
|
358
347
|
ref={this.props.hostRef}
|
|
359
348
|
{...eventHandlersWithoutBlurAndFocus}>
|
|
360
349
|
{React.cloneElement(child, {
|
|
@@ -266,14 +266,6 @@ class TouchableOpacity extends React.Component<Props, State> {
|
|
|
266
266
|
accessibilityLiveRegion={this.props.accessibilityLiveRegion}
|
|
267
267
|
accessibilityViewIsModal={this.props.accessibilityViewIsModal}
|
|
268
268
|
accessibilityElementsHidden={this.props.accessibilityElementsHidden}
|
|
269
|
-
acceptsFirstMouse={
|
|
270
|
-
this.props.acceptsFirstMouse !== false && !this.props.disabled
|
|
271
|
-
} // TODO(macOS GH#774)
|
|
272
|
-
enableFocusRing={
|
|
273
|
-
(this.props.enableFocusRing === undefined ||
|
|
274
|
-
this.props.enableFocusRing === true) &&
|
|
275
|
-
!this.props.disabled
|
|
276
|
-
} // TODO(macOS GH#774)
|
|
277
269
|
style={[this.props.style, {opacity: this.state.anim}]}
|
|
278
270
|
nativeID={this.props.nativeID}
|
|
279
271
|
testID={this.props.testID}
|
|
@@ -285,33 +277,26 @@ class TouchableOpacity extends React.Component<Props, State> {
|
|
|
285
277
|
nextFocusUp={this.props.nextFocusUp}
|
|
286
278
|
hasTVPreferredFocus={this.props.hasTVPreferredFocus}
|
|
287
279
|
hitSlop={this.props.hitSlop}
|
|
288
|
-
// [macOS #
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
{
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
})}
|
|
301
|
-
// macOS]
|
|
302
|
-
tooltip={this.props.tooltip} // TODO(macOS/win GH#774)
|
|
303
|
-
onMouseEnter={this.props.onMouseEnter} // [TODO(macOS GH#774)
|
|
280
|
+
// [TODO(macOS GH#774)
|
|
281
|
+
acceptsFirstMouse={
|
|
282
|
+
this.props.acceptsFirstMouse !== false && !this.props.disabled
|
|
283
|
+
}
|
|
284
|
+
enableFocusRing={
|
|
285
|
+
(this.props.enableFocusRing === undefined ||
|
|
286
|
+
this.props.enableFocusRing === true) &&
|
|
287
|
+
!this.props.disabled
|
|
288
|
+
}
|
|
289
|
+
focusable={this.props.focusable !== false && !this.props.disabled}
|
|
290
|
+
tooltip={this.props.tooltip}
|
|
291
|
+
onMouseEnter={this.props.onMouseEnter}
|
|
304
292
|
onMouseLeave={this.props.onMouseLeave}
|
|
305
293
|
onDragEnter={this.props.onDragEnter}
|
|
306
294
|
onDragLeave={this.props.onDragLeave}
|
|
307
295
|
onDrop={this.props.onDrop}
|
|
308
296
|
onFocus={this.props.onFocus}
|
|
309
297
|
onBlur={this.props.onBlur}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
validKeysDown={this.props.validKeysDown}
|
|
313
|
-
validKeysUp={this.props.validKeysUp}
|
|
314
|
-
draggedTypes={this.props.draggedTypes} // ]TODO(macOS GH#774)
|
|
298
|
+
draggedTypes={this.props.draggedTypes}
|
|
299
|
+
// ]TODO(macOS/win GH#774)
|
|
315
300
|
ref={this.props.hostRef}
|
|
316
301
|
{...eventHandlersWithoutBlurAndFocus}>
|
|
317
302
|
{this.props.children}
|
|
@@ -68,8 +68,8 @@ type Props = $ReadOnly<{|
|
|
|
68
68
|
onPress?: ?(event: PressEvent) => mixed,
|
|
69
69
|
onPressIn?: ?(event: PressEvent) => mixed,
|
|
70
70
|
onPressOut?: ?(event: PressEvent) => mixed,
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
// [TODO(macOS GH#774)
|
|
72
|
+
acceptsFirstMouse?: ?boolean,
|
|
73
73
|
enableFocusRing?: ?boolean,
|
|
74
74
|
tooltip?: ?string,
|
|
75
75
|
onMouseEnter?: (event: MouseEvent) => void,
|
|
@@ -77,7 +77,8 @@ type Props = $ReadOnly<{|
|
|
|
77
77
|
onDragEnter?: (event: MouseEvent) => void,
|
|
78
78
|
onDragLeave?: (event: MouseEvent) => void,
|
|
79
79
|
onDrop?: (event: MouseEvent) => void,
|
|
80
|
-
draggedTypes?: ?DraggedTypesType,
|
|
80
|
+
draggedTypes?: ?DraggedTypesType,
|
|
81
|
+
// ]TODO(macOS GH#774)
|
|
81
82
|
pressRetentionOffset?: ?EdgeInsetsProp,
|
|
82
83
|
rejectResponderTermination?: ?boolean,
|
|
83
84
|
testID?: ?string,
|
|
@@ -157,23 +158,12 @@ class TouchableWithoutFeedback extends React.Component<Props, State> {
|
|
|
157
158
|
: this.props.accessibilityState,
|
|
158
159
|
focusable:
|
|
159
160
|
this.props.focusable !== false && this.props.onPress !== undefined,
|
|
161
|
+
// [TODO(macOS GH#774)
|
|
160
162
|
acceptsFirstMouse:
|
|
161
|
-
this.props.acceptsFirstMouse !== false && !this.props.disabled,
|
|
162
|
-
// [macOS #656 We need to reconcile between focusable and acceptsKeyboardFocus
|
|
163
|
-
// (e.g. if one is explicitly disabled, we shouldn't implicitly enable the
|
|
164
|
-
// other on the underlying view). Prefer passing acceptsKeyboardFocus if
|
|
165
|
-
// passed explicitly to preserve original behavior, and trigger view warnings.
|
|
166
|
-
...(this.props.acceptsKeyboardFocus !== undefined
|
|
167
|
-
? {
|
|
168
|
-
acceptsKeyboardFocus:
|
|
169
|
-
this.props.acceptsKeyboardFocus === true && !this.props.disabled,
|
|
170
|
-
}
|
|
171
|
-
: {
|
|
172
|
-
focusable: this.props.focusable !== false && !this.props.disabled,
|
|
173
|
-
}),
|
|
174
|
-
// macOS]
|
|
163
|
+
this.props.acceptsFirstMouse !== false && !this.props.disabled,
|
|
175
164
|
enableFocusRing:
|
|
176
|
-
this.props.enableFocusRing !== false && !this.props.disabled,
|
|
165
|
+
this.props.enableFocusRing !== false && !this.props.disabled,
|
|
166
|
+
// ]TODO(macOS GH#774)
|
|
177
167
|
};
|
|
178
168
|
for (const prop of PASSTHROUGH_PROPS) {
|
|
179
169
|
if (this.props[prop] !== undefined) {
|
|
@@ -21,9 +21,6 @@ const UIView = {
|
|
|
21
21
|
accessibilityState: true,
|
|
22
22
|
accessibilityValue: true,
|
|
23
23
|
accessibilityHint: true,
|
|
24
|
-
acceptsFirstMouse: true, // TODO(macOS GH#774)
|
|
25
|
-
acceptsKeyboardFocus: true, // TODO(macOS GH#774)
|
|
26
|
-
enableFocusRing: true, // TODO(macOS GH#774)
|
|
27
24
|
importantForAccessibility: true,
|
|
28
25
|
nativeID: true,
|
|
29
26
|
testID: true,
|
|
@@ -36,7 +33,11 @@ const UIView = {
|
|
|
36
33
|
onAccessibilityEscape: true,
|
|
37
34
|
collapsable: true,
|
|
38
35
|
needsOffscreenAlphaCompositing: true,
|
|
39
|
-
|
|
36
|
+
style: ReactNativeStyleAttributes,
|
|
37
|
+
// [TODO(macOS GH#774)
|
|
38
|
+
acceptsFirstMouse: true,
|
|
39
|
+
enableFocusRing: true,
|
|
40
|
+
onMouseEnter: true,
|
|
40
41
|
onMouseLeave: true,
|
|
41
42
|
onDragEnter: true,
|
|
42
43
|
onDragLeave: true,
|
|
@@ -45,9 +46,9 @@ const UIView = {
|
|
|
45
46
|
onKeyUp: true,
|
|
46
47
|
validKeysDown: true,
|
|
47
48
|
validKeysUp: true,
|
|
48
|
-
draggedTypes: true,
|
|
49
|
-
nextKeyViewTag: true,
|
|
50
|
-
|
|
49
|
+
draggedTypes: true,
|
|
50
|
+
nextKeyViewTag: true,
|
|
51
|
+
// ]TODO(macOS GH#774)
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
const RCTView = {
|
|
@@ -36,7 +36,6 @@ const ReactNativeViewViewConfigMacOS = {
|
|
|
36
36
|
},
|
|
37
37
|
validAttributes: {
|
|
38
38
|
acceptsFirstMouse: true,
|
|
39
|
-
acceptsKeyboardFocus: true,
|
|
40
39
|
accessibilityTraits: true,
|
|
41
40
|
draggedTypes: true,
|
|
42
41
|
enableFocusRing: true,
|
|
@@ -51,7 +50,7 @@ const ReactNativeViewViewConfigMacOS = {
|
|
|
51
50
|
onKeyUp: true,
|
|
52
51
|
validKeysDown: true,
|
|
53
52
|
validKeysUp: true,
|
|
54
|
-
nextKeyViewTag: true,
|
|
53
|
+
nextKeyViewTag: true,
|
|
55
54
|
onMouseEnter: true,
|
|
56
55
|
onMouseLeave: true,
|
|
57
56
|
tooltip: true,
|
|
@@ -12,8 +12,8 @@ import type {ViewProps} from './ViewPropTypes';
|
|
|
12
12
|
|
|
13
13
|
import ViewNativeComponent from './ViewNativeComponent';
|
|
14
14
|
import TextAncestor from '../../Text/TextAncestor';
|
|
15
|
-
import warnOnce from '../../Utilities/warnOnce'; // [macOS #656]
|
|
16
15
|
import * as React from 'react';
|
|
16
|
+
import invariant from 'invariant'; // TODO(macOS GH#774)
|
|
17
17
|
|
|
18
18
|
export type Props = ViewProps;
|
|
19
19
|
|
|
@@ -28,15 +28,13 @@ const View: React.AbstractComponent<
|
|
|
28
28
|
ViewProps,
|
|
29
29
|
React.ElementRef<typeof ViewNativeComponent>,
|
|
30
30
|
> = React.forwardRef((props: ViewProps, forwardedRef) => {
|
|
31
|
-
// [macOS #
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// macOS]
|
|
39
|
-
|
|
31
|
+
// [TODO(macOS GH#774)
|
|
32
|
+
invariant(
|
|
33
|
+
// $FlowFixMe Wanting to catch untyped usages
|
|
34
|
+
props.acceptsKeyboardFocus === undefined,
|
|
35
|
+
'Support for the "acceptsKeyboardFocus" property has been removed in favor of "focusable"',
|
|
36
|
+
);
|
|
37
|
+
// TODO(macOS GH#774)]
|
|
40
38
|
return (
|
|
41
39
|
<TextAncestor.Provider value={false}>
|
|
42
40
|
<ViewNativeComponent {...props} ref={forwardedRef} />
|
|
@@ -77,7 +77,7 @@ type DirectEventProps = $ReadOnly<{|
|
|
|
77
77
|
onPreferredScrollerStyleDidChange?: ?(event: ScrollEvent) => mixed, // TODO(macOS GH#774)
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* When `
|
|
80
|
+
* When `focusable` is true, the system will try to invoke this function
|
|
81
81
|
* when the user performs accessibility key down gesture.
|
|
82
82
|
*/
|
|
83
83
|
onScrollKeyDown?: ?(event: ScrollEvent) => mixed, // TODO(macOS GH#774)
|
|
@@ -594,12 +594,6 @@ export type ViewProps = $ReadOnly<{|
|
|
|
594
594
|
*/
|
|
595
595
|
acceptsFirstMouse?: ?boolean, // TODO(macOS GH#774)
|
|
596
596
|
|
|
597
|
-
/**
|
|
598
|
-
* Specifies whether the view participates in the key view loop as user tabs
|
|
599
|
-
* through different controls.
|
|
600
|
-
*/
|
|
601
|
-
acceptsKeyboardFocus?: ?boolean, // TODO(macOS GH#774)
|
|
602
|
-
|
|
603
597
|
/**
|
|
604
598
|
* The react tag of the view that follows the current view in the key view loop.
|
|
605
599
|
*/
|
|
@@ -76,7 +76,9 @@ function reportException(
|
|
|
76
76
|
e.jsEngine == null ? message : `${message}, js engine: ${e.jsEngine}`;
|
|
77
77
|
|
|
78
78
|
const isHandledByLogBox =
|
|
79
|
-
e.forceRedbox !== true &&
|
|
79
|
+
e.forceRedbox !== true &&
|
|
80
|
+
global.RN$Bridgeless !== true &&
|
|
81
|
+
!global.RN$Express;
|
|
80
82
|
|
|
81
83
|
const data = preprocessException({
|
|
82
84
|
message,
|
|
@@ -9,9 +9,13 @@
|
|
|
9
9
|
* @flow strict
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
// [TODO(macOS GH#944)
|
|
13
|
+
// Note: Be careful not to override these version numbers
|
|
14
|
+
// when we merge upstream stable branches into main
|
|
15
|
+
// TODO(macOS GH#944)]
|
|
12
16
|
exports.version = {
|
|
13
17
|
major: 0,
|
|
14
18
|
minor: 0,
|
|
15
19
|
patch: 0,
|
|
16
|
-
prerelease: '
|
|
20
|
+
prerelease: 'd2f5a1ffb',
|
|
17
21
|
};
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
13
|
let registerModule;
|
|
14
|
-
if (global.RN$Bridgeless && global.RN$registerCallableModule) {
|
|
14
|
+
if (global.RN$Bridgeless === true && global.RN$registerCallableModule) {
|
|
15
15
|
registerModule = global.RN$registerCallableModule;
|
|
16
16
|
} else {
|
|
17
17
|
const BatchedBridge = require('../BatchedBridge/BatchedBridge');
|
|
@@ -19,10 +19,12 @@ if (global.GLOBAL === undefined) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
if (global.window === undefined) {
|
|
22
|
+
// $FlowFixMe[cannot-write]
|
|
22
23
|
global.window = global;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
if (global.self === undefined) {
|
|
27
|
+
// $FlowFixMe[cannot-write]
|
|
26
28
|
global.self = global;
|
|
27
29
|
}
|
|
28
30
|
|
|
@@ -28,7 +28,7 @@ const hasNativePromise = isNativeFunction(Promise);
|
|
|
28
28
|
const hasPromiseQueuedToJSVM = hasNativePromise || hasHermesPromiseQueuedToJSVM;
|
|
29
29
|
|
|
30
30
|
// In bridgeless mode, timers are host functions installed from cpp.
|
|
31
|
-
if (
|
|
31
|
+
if (global.RN$Bridgeless !== true) {
|
|
32
32
|
/**
|
|
33
33
|
* Set up timers.
|
|
34
34
|
* You can use this module directly, or just require InitializeCore.
|
|
@@ -65,7 +65,7 @@ if (hasPromiseQueuedToJSVM) {
|
|
|
65
65
|
// When promise was polyfilled hence is queued to the RN microtask queue,
|
|
66
66
|
// we polyfill the immediate APIs as aliases to the ReactNativeMicrotask APIs.
|
|
67
67
|
// Note that in bridgeless mode, immediate APIs are installed from cpp.
|
|
68
|
-
if (
|
|
68
|
+
if (global.RN$Bridgeless !== true) {
|
|
69
69
|
polyfillGlobal(
|
|
70
70
|
'setImmediate',
|
|
71
71
|
() => require('./Timers/JSTimers').queueReactNativeMicrotask,
|
|
@@ -12,6 +12,7 @@ import DeprecatedImagePropType from '../DeprecatedPropTypes/DeprecatedImagePropT
|
|
|
12
12
|
import * as React from 'react';
|
|
13
13
|
import StyleSheet from '../StyleSheet/StyleSheet';
|
|
14
14
|
|
|
15
|
+
import ImageInjection from './ImageInjection';
|
|
15
16
|
import ImageAnalyticsTagContext from './ImageAnalyticsTagContext';
|
|
16
17
|
import flattenStyle from '../StyleSheet/flattenStyle';
|
|
17
18
|
import resolveAssetSource from './resolveAssetSource';
|
|
@@ -171,6 +172,11 @@ Image = React.forwardRef<
|
|
|
171
172
|
ImagePropsType,
|
|
172
173
|
React.ElementRef<typeof ImageViewNativeComponent>,
|
|
173
174
|
>(Image);
|
|
175
|
+
|
|
176
|
+
if (ImageInjection.unstable_createImageComponent != null) {
|
|
177
|
+
Image = ImageInjection.unstable_createImageComponent(Image);
|
|
178
|
+
}
|
|
179
|
+
|
|
174
180
|
Image.displayName = 'Image';
|
|
175
181
|
|
|
176
182
|
/**
|
|
@@ -320,40 +320,40 @@ export function checkWarningFilter(format: string): WarningInfo {
|
|
|
320
320
|
return warningFilter(format);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
+
export function getIgnorePatterns(): $ReadOnlyArray<IgnorePattern> {
|
|
324
|
+
return Array.from(ignorePatterns);
|
|
325
|
+
}
|
|
326
|
+
|
|
323
327
|
export function addIgnorePatterns(
|
|
324
328
|
patterns: $ReadOnlyArray<IgnorePattern>,
|
|
325
329
|
): void {
|
|
330
|
+
const existingSize = ignorePatterns.size;
|
|
326
331
|
// The same pattern may be added multiple times, but adding a new pattern
|
|
327
332
|
// can be expensive so let's find only the ones that are new.
|
|
328
|
-
|
|
333
|
+
patterns.forEach((pattern: IgnorePattern) => {
|
|
329
334
|
if (pattern instanceof RegExp) {
|
|
330
|
-
for (const existingPattern of ignorePatterns
|
|
335
|
+
for (const existingPattern of ignorePatterns) {
|
|
331
336
|
if (
|
|
332
337
|
existingPattern instanceof RegExp &&
|
|
333
338
|
existingPattern.toString() === pattern.toString()
|
|
334
339
|
) {
|
|
335
|
-
return
|
|
340
|
+
return;
|
|
336
341
|
}
|
|
337
342
|
}
|
|
338
|
-
|
|
343
|
+
ignorePatterns.add(pattern);
|
|
339
344
|
}
|
|
340
|
-
|
|
345
|
+
ignorePatterns.add(pattern);
|
|
341
346
|
});
|
|
342
|
-
|
|
343
|
-
if (newPatterns.length === 0) {
|
|
347
|
+
if (ignorePatterns.size === existingSize) {
|
|
344
348
|
return;
|
|
345
349
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
logs = new Set(
|
|
354
|
-
Array.from(logs).filter(log => !isMessageIgnored(log.message.content)),
|
|
355
|
-
);
|
|
356
|
-
}
|
|
350
|
+
// We need to recheck all of the existing logs.
|
|
351
|
+
// This allows adding an ignore pattern anywhere in the codebase.
|
|
352
|
+
// Without this, if you ignore a pattern after the a log is created,
|
|
353
|
+
// then we would keep showing the log.
|
|
354
|
+
logs = new Set(
|
|
355
|
+
Array.from(logs).filter(log => !isMessageIgnored(log.message.content)),
|
|
356
|
+
);
|
|
357
357
|
handleUpdate();
|
|
358
358
|
}
|
|
359
359
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
@implementation RCTPropsAnimatedNode
|
|
17
17
|
{
|
|
18
18
|
NSNumber *_connectedViewTag;
|
|
19
|
-
NSNumber *_rootTag;
|
|
20
19
|
NSString *_connectedViewName;
|
|
21
20
|
__weak RCTBridge *_bridge;
|
|
22
21
|
__weak id<RCTSurfacePresenterStub> _surfacePresenter;
|
|
@@ -48,7 +47,6 @@
|
|
|
48
47
|
_connectedViewTag = viewTag;
|
|
49
48
|
_connectedViewName = viewName;
|
|
50
49
|
_managedByFabric = RCTUIManagerTypeForTagIsFabric(viewTag);
|
|
51
|
-
_rootTag = nil;
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
- (void)disconnectFromView:(NSNumber *)viewTag
|
|
@@ -58,7 +56,6 @@
|
|
|
58
56
|
_connectedViewTag = nil;
|
|
59
57
|
_connectedViewName = nil;
|
|
60
58
|
_managedByFabric = NO;
|
|
61
|
-
_rootTag = nil;
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
- (void)updateView
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
#import <React/RCTNativeAnimatedModule.h>
|
|
10
10
|
#import <React/RCTNativeAnimatedNodesManager.h>
|
|
11
11
|
#import <React/RCTLog.h>
|
|
12
|
+
#import <React/RCTInitializing.h>
|
|
12
13
|
|
|
13
14
|
#import <RCTTypeSafety/RCTConvertHelpers.h>
|
|
14
15
|
|
|
@@ -16,6 +17,9 @@
|
|
|
16
17
|
|
|
17
18
|
typedef void (^AnimatedOperation)(RCTNativeAnimatedNodesManager *nodesManager);
|
|
18
19
|
|
|
20
|
+
@interface RCTNativeAnimatedModule () <RCTInitializing>
|
|
21
|
+
@end
|
|
22
|
+
|
|
19
23
|
@implementation RCTNativeAnimatedModule
|
|
20
24
|
{
|
|
21
25
|
RCTNativeAnimatedNodesManager *_nodesManager;
|
|
@@ -69,10 +73,9 @@ RCT_EXPORT_MODULE();
|
|
|
69
73
|
[bridge.surfacePresenter addObserver:self];
|
|
70
74
|
}
|
|
71
75
|
|
|
72
|
-
- (void)
|
|
76
|
+
- (void)initialize
|
|
73
77
|
{
|
|
74
|
-
[
|
|
75
|
-
[[moduleRegistry moduleForName:"EventDispatcher"] addDispatchObserver:self];
|
|
78
|
+
[[self.moduleRegistry moduleForName:"EventDispatcher"] addDispatchObserver:self];
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
/*
|
|
@@ -12,13 +12,12 @@
|
|
|
12
12
|
#import <React/RCTUIManager.h>
|
|
13
13
|
#import <React/RCTUIManagerObserverCoordinator.h>
|
|
14
14
|
#import <React/RCTUIManagerUtils.h>
|
|
15
|
-
#import <React/RCTInitializing.h>
|
|
16
15
|
|
|
17
16
|
#import "RCTValueAnimatedNode.h"
|
|
18
17
|
|
|
19
18
|
// TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%.
|
|
20
19
|
// NOTE: This module is temporarily forked (see RCTNativeAnimatedModule).
|
|
21
20
|
// When making any changes, be sure to apply them to the fork as well.
|
|
22
|
-
@interface RCTNativeAnimatedTurboModule: RCTEventEmitter <RCTBridgeModule, RCTValueAnimatedNodeObserver, RCTEventDispatcherObserver, RCTUIManagerObserver, RCTSurfacePresenterObserver
|
|
21
|
+
@interface RCTNativeAnimatedTurboModule: RCTEventEmitter <RCTBridgeModule, RCTValueAnimatedNodeObserver, RCTEventDispatcherObserver, RCTUIManagerObserver, RCTSurfacePresenterObserver>
|
|
23
22
|
|
|
24
23
|
@end
|
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
#import <RCTTypeSafety/RCTConvertHelpers.h>
|
|
10
10
|
#import <React/RCTNativeAnimatedTurboModule.h>
|
|
11
11
|
#import <React/RCTNativeAnimatedNodesManager.h>
|
|
12
|
+
#import <React/RCTInitializing.h>
|
|
12
13
|
|
|
13
14
|
#import "RCTAnimationPlugins.h"
|
|
14
15
|
|
|
15
16
|
typedef void (^AnimatedOperation)(RCTNativeAnimatedNodesManager *nodesManager);
|
|
16
17
|
|
|
17
|
-
@interface RCTNativeAnimatedTurboModule() <NativeAnimatedModuleSpec>
|
|
18
|
+
@interface RCTNativeAnimatedTurboModule() <NativeAnimatedModuleSpec, RCTInitializing>
|
|
18
19
|
@end
|
|
19
20
|
|
|
20
21
|
@implementation RCTNativeAnimatedTurboModule
|
|
Binary file
|
|
@@ -12,6 +12,7 @@ import {type PressabilityTouchSignal as TouchSignal} from './PressabilityTypes.j
|
|
|
12
12
|
|
|
13
13
|
export type PressabilityPerformanceEvent = $ReadOnly<{|
|
|
14
14
|
signal: TouchSignal,
|
|
15
|
+
nativeTimestamp: number,
|
|
15
16
|
touchDelayMs: number,
|
|
16
17
|
|}>;
|
|
17
18
|
export type PressabilityPerformanceEventListener = PressabilityPerformanceEvent => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
95d762e406bd37c07693e3a5ddbd0f75289e8c3f
|