react-native 0.0.0-263478b91 → 0.0.0-268efb102
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/ActionSheetIOS/ActionSheetIOS.js +14 -1
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
- package/Libraries/Animated/AnimatedEvent.js +23 -4
- package/Libraries/Animated/AnimatedMock.js +1 -7
- package/Libraries/Animated/NativeAnimatedHelper.js +3 -3
- package/Libraries/Animated/animations/Animation.js +1 -0
- package/Libraries/Animated/animations/DecayAnimation.js +2 -0
- package/Libraries/Animated/animations/SpringAnimation.js +1 -0
- package/Libraries/Animated/animations/TimingAnimation.js +3 -0
- package/Libraries/Animated/createAnimatedComponent.js +5 -1
- package/Libraries/Animated/createAnimatedComponentInjection.js +48 -0
- package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +48 -0
- package/Libraries/Animated/nodes/AnimatedValue.js +6 -0
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -0
- package/Libraries/Animated/useAnimatedProps.js +211 -0
- package/Libraries/BatchedBridge/MessageQueue.js +15 -10
- package/Libraries/BatchedBridge/NativeModules.js +5 -1
- package/Libraries/Blob/FileReader.js +1 -1
- package/Libraries/Blob/RCTBlobManager.h +2 -1
- package/Libraries/Blob/RCTBlobManager.mm +1 -3
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Blob/URL.js +1 -1
- package/Libraries/BugReporting/BugReporting.js +2 -0
- package/Libraries/BugReporting/getReactData.js +1 -1
- package/Libraries/Components/Button.js +18 -2
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +1 -1
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +18 -15
- package/Libraries/Components/ScrollView/ScrollView.js +22 -5
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +1 -0
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +2 -0
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +2 -0
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +14 -6
- package/Libraries/Components/Slider/Slider.js +13 -1
- package/Libraries/Components/StatusBar/StatusBar.js +6 -14
- package/Libraries/Components/Switch/Switch.js +18 -6
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +4 -4
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +1 -0
- package/Libraries/Components/TextInput/TextInput.js +32 -4
- package/Libraries/Components/TextInput/TextInputState.js +1 -1
- package/Libraries/Components/Touchable/Touchable.js +14 -0
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +11 -2
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +131 -64
- package/Libraries/Components/View/ViewAccessibility.js +2 -0
- package/Libraries/Components/View/ViewNativeComponent.js +0 -10
- package/Libraries/Core/Devtools/parseErrorStack.js +0 -10
- package/Libraries/Core/Devtools/parseHermesStack.js +1 -1
- package/Libraries/Core/ExceptionsManager.js +49 -39
- package/Libraries/{Components/View/ViewInjection.js → Core/ExtendedError.js} +8 -2
- package/Libraries/Core/ReactFiberErrorDialog.js +44 -34
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/Timers/JSTimers.js +37 -28
- package/Libraries/Core/Timers/immediateShim.js +67 -0
- package/Libraries/Core/Timers/queueMicrotask.js +41 -0
- package/Libraries/Core/polyfillPromise.js +1 -1
- package/Libraries/Core/setUpBatchedBridge.js +1 -1
- package/Libraries/Core/setUpGlobals.js +2 -0
- package/Libraries/Core/setUpRegeneratorRuntime.js +25 -8
- package/Libraries/Core/setUpTimers.js +65 -6
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +131 -0
- package/Libraries/DeprecatedPropTypes/{DeprecatedImagePropType.js → DeprecatedImagePropType.ios.js} +0 -0
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +5 -5
- package/Libraries/DeprecatedPropTypes/DeprecatedViewAccessibility.js +1 -0
- package/Libraries/EventEmitter/NativeEventEmitter.js +2 -0
- package/Libraries/Image/Image.android.js +20 -130
- package/Libraries/Image/Image.ios.js +12 -7
- package/Libraries/Image/ImageBackground.js +10 -8
- package/Libraries/Image/ImageInjection.js +28 -0
- package/Libraries/Image/ImageProps.js +28 -0
- package/Libraries/Image/ImageSource.js +108 -65
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Inspector/Inspector.js +6 -0
- package/Libraries/Interaction/InteractionManager.js +3 -0
- package/Libraries/Interaction/PanResponder.js +1 -1
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/Lists/CellRenderMask.js +145 -0
- package/Libraries/Lists/FlatList.js +43 -26
- package/Libraries/Lists/VirtualizedList.js +3 -1
- package/Libraries/Lists/VirtualizedSectionList.js +3 -0
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +4 -4
- package/Libraries/LogBox/Data/LogBoxData.js +21 -19
- 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/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -0
- package/Libraries/Modal/Modal.js +1 -0
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +0 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +6 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +1 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +1 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +32 -28
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/Network/RCTHTTPRequestHandler.h +5 -0
- package/Libraries/Network/RCTHTTPRequestHandler.mm +19 -7
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/Network/XMLHttpRequest.js +4 -1
- package/Libraries/NewAppScreen/components/Header.js +1 -0
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/Performance/QuickPerformanceLogger.js +3 -1
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +4 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +6 -0
- package/Libraries/Pressability/Pressability.js +1 -0
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -0
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +0 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/ReactNative/AppContainer.js +1 -0
- package/Libraries/ReactNative/AppRegistry.js +3 -1
- package/Libraries/ReactNative/I18nManager.js +12 -3
- package/Libraries/ReactNative/PaperUIManager.js +1 -0
- package/Libraries/ReactNative/renderApplication.js +8 -3
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +2 -3
- package/Libraries/Reliability/UserFlow.js +7 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +5686 -4572
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +4324 -3826
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +2196 -1859
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +196 -210
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +2694 -2070
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +647 -375
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +5474 -4460
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +4109 -3636
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +1375 -1166
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +162 -193
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +2197 -1708
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +618 -364
- package/Libraries/Renderer/shims/ReactFabric.js +5 -4
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +3 -1
- package/Libraries/Renderer/shims/ReactNative.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeTypes.js +7 -4
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +3 -1
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +3 -1
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Settings/Settings.ios.js +4 -0
- package/Libraries/Storage/AsyncStorage.js +1 -0
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +16 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +8 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +2 -0
- package/Libraries/StyleSheet/StyleSheet.js +3 -5
- package/Libraries/StyleSheet/normalizeColor.js +2 -2
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.mm +1 -1
- package/Libraries/Text/Text.js +11 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +10 -12
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +4 -11
- package/Libraries/Text/TextProps.js +5 -7
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -10
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/UTFSequence.js +1 -1
- package/Libraries/Utilities/Dimensions.js +9 -14
- package/Libraries/Utilities/FeatureDetection.js +31 -0
- package/Libraries/Utilities/HMRClient.js +13 -6
- package/Libraries/Utilities/MatrixMath.js +1 -1
- package/Libraries/Utilities/NativeDeviceInfo.js +1 -1
- package/Libraries/Utilities/PerformanceLoggerContext.js +1 -1
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +1 -0
- package/Libraries/Utilities/deprecatedPropType.js +2 -2
- package/Libraries/Utilities/useMergeRefs.js +44 -0
- package/Libraries/Utilities/useRefEffect.js +45 -0
- package/Libraries/Utilities/useWindowDimensions.js +7 -2
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/YellowBox/YellowBoxDeprecated.js +1 -0
- package/Libraries/promiseRejectionTrackingOptions.js +2 -0
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +1 -1
- package/README.md +5 -5
- package/React/Base/RCTAssert.h +11 -11
- package/React/Base/RCTBridge+Private.h +8 -2
- package/React/Base/RCTBridge.h +12 -3
- package/React/Base/RCTBridge.m +24 -12
- package/React/Base/RCTBridgeModule.h +36 -12
- package/React/Base/RCTBundleURLProvider.h +26 -1
- package/React/Base/RCTBundleURLProvider.mm +79 -15
- package/React/Base/RCTCallableJSModules.m +47 -0
- package/React/Base/RCTConstants.h +6 -7
- package/React/Base/RCTConstants.m +12 -12
- package/React/Base/RCTConvert.h +1 -1
- package/React/Base/RCTConvert.m +31 -7
- package/React/Base/RCTCxxConvert.h +1 -1
- package/React/Base/RCTDefines.h +12 -3
- package/React/Base/RCTEventDispatcherProtocol.h +3 -2
- package/React/{Views/RCTPickerManager.h → Base/RCTInitializing.h} +4 -2
- package/React/Base/RCTJSThread.h +29 -0
- package/React/Base/RCTJSThread.m +19 -0
- package/React/Base/RCTModuleData.h +7 -3
- package/React/Base/RCTModuleData.mm +41 -1
- package/React/Base/RCTMultipartStreamReader.m +0 -2
- package/React/Base/RCTRootView.h +15 -0
- package/React/Base/RCTRootView.m +15 -0
- package/React/Base/RCTTouchHandler.m +4 -9
- package/React/Base/RCTUtils.h +3 -0
- package/React/Base/RCTUtils.m +14 -7
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +12 -0
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +45 -1
- package/React/CoreModules/BUCK +4 -3
- package/React/CoreModules/RCTAccessibilityManager.mm +1 -1
- package/React/CoreModules/RCTActionSheetManager.mm +14 -5
- package/React/CoreModules/RCTAsyncLocalStorage.mm +4 -0
- package/React/CoreModules/RCTDevLoadingView.mm +6 -21
- package/React/CoreModules/RCTDevMenu.mm +8 -11
- package/React/CoreModules/RCTDevSettings.h +2 -1
- package/React/CoreModules/RCTDevSettings.mm +63 -53
- package/React/CoreModules/RCTDevSplitBundleLoader.mm +1 -6
- package/React/CoreModules/RCTDeviceInfo.mm +4 -4
- package/React/CoreModules/RCTEventDispatcher.h +2 -1
- package/React/CoreModules/RCTEventDispatcher.mm +17 -28
- package/React/CoreModules/RCTKeyboardObserver.mm +1 -1
- package/React/CoreModules/RCTLogBox.mm +14 -10
- package/React/CoreModules/RCTPerfMonitor.mm +9 -4
- package/React/CoreModules/RCTRedBox.mm +1 -5
- package/React/CoreModules/RCTTiming.h +2 -1
- package/React/CoreModules/RCTTiming.mm +1 -3
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/CxxBridge/RCTCxxBridge.mm +49 -12
- package/React/DevSupport/RCTPackagerConnection.h +3 -0
- package/React/DevSupport/RCTPackagerConnection.mm +19 -8
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +12 -4
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +1 -2
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h +0 -1
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm +0 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +97 -85
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +1 -0
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +45 -17
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +6 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +109 -5
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +1 -0
- package/React/Fabric/Mounting/RCTMountingManager.h +3 -0
- package/React/Fabric/Mounting/RCTMountingManager.mm +22 -3
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +2 -0
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +12 -0
- package/React/Fabric/RCTConversions.h +3 -0
- package/React/Fabric/RCTScheduler.mm +23 -7
- package/React/Fabric/RCTSurfacePresenter.mm +28 -37
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +4 -2
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.mm +1 -1
- package/React/Fabric/RCTSurfaceRegistry.h +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.mm +6 -20
- package/React/Fabric/Surface/RCTFabricSurface.mm +3 -0
- package/React/Modules/RCTEventEmitter.h +1 -2
- package/React/Modules/RCTEventEmitter.m +8 -11
- package/React/Modules/RCTI18nUtil.h +14 -6
- package/React/Modules/RCTI18nUtil.m +1 -47
- package/React/Profiler/RCTProfileTrampoline-arm.S +1 -1
- package/React/Profiler/RCTProfileTrampoline-arm64.S +2 -2
- package/React/React-RCTFabric.podspec +3 -3
- package/React/Views/RCTFont.mm +54 -38
- package/React/Views/RCTModalHostView.h +1 -1
- package/React/Views/RCTModalHostView.m +16 -0
- package/React/Views/RCTModalHostViewManager.m +1 -0
- package/React/Views/RCTView.h +7 -7
- package/React/Views/RCTView.m +32 -49
- package/React/Views/RCTViewManager.m +14 -4
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +1 -5
- package/React/Views/ScrollView/RCTScrollView.h +1 -0
- package/React/Views/ScrollView/RCTScrollView.m +123 -36
- package/React/Views/ScrollView/RCTScrollViewManager.m +4 -7
- package/React/Views/UIView+React.m +2 -11
- package/React/third-party.xcconfig +1 -1
- package/React-Core.podspec +2 -2
- package/ReactAndroid/Android-prebuilt.mk +8 -0
- package/ReactAndroid/README.md +1 -1
- package/ReactAndroid/build.gradle +82 -18
- package/ReactAndroid/gradle.properties +5 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/BUCK +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/BUCK +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/BUCK +5 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -2
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/BUCK +5 -5
- package/ReactAndroid/src/androidTest/js/BUCK +26 -0
- package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -12
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/Android.mk +4 -4
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +123 -64
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +25 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BackgroundExecutor.java +3 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +11 -5
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java +37 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +3 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +39 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{ReactSoftException.java → ReactSoftExceptionLogger.java} +8 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/RuntimeScheduler.java +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java +8 -7
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.java +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBufferSoLoader.java +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +40 -36
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +275 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +97 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +9 -58
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +163 -328
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +3 -72
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/PackagerStatusCheck.java +100 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxHandler.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.java +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +6 -67
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +154 -74
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +36 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/FabricEventEmitter.java +14 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +129 -40
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +18 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CoreComponentsRegistry.cpp +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.cpp +22 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.h +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +53 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +27 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +136 -35
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/SendAccessibilityEvent.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskContext.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobProvider.java +35 -7
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/bundleloader/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/camera/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK +1 -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/debug/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java +10 -6
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/BUCK +1 -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/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/share/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/sound/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java +11 -9
- package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -9
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/TurboModuleManager.java +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.cpp +39 -11
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.h +9 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java +7 -28
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java +14 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyOptimizer.java +10 -13
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.java +1 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +5 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingProhibitedView.java +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactOverflowView.java +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +162 -66
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java +9 -9
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java +6 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java +16 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +53 -19
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +236 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTModernEventEmitter.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +20 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +34 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/ViewProps.java +9 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/ComponentNameResolverManager.cpp +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/ComponentNameResolverManager.h +10 -15
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerClosedEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerOpenedEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerSlideEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerStateChangedEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +7 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +15 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +42 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +18 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java +9 -7
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderEvent.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +4 -7
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlidingCompleteEvent.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java +6 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java +59 -44
- 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 +23 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTypefaceUtils.java +41 -59
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +20 -51
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +31 -12
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +31 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TypefaceStyle.java +72 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +16 -6
- 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 +117 -62
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +39 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +49 -2
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp +2 -7
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJTypesVanilla.h +8 -4
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +5 -3
- package/ReactAndroid/src/main/jni/react/jni/BUCK +5 -2
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +64 -3
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +9 -2
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.cpp +18 -0
- package/{ReactCommon/react/renderer/components/picker/iospicker/primitives.h → ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.h} +6 -10
- package/ReactAndroid/src/main/jni/react/jni/JReactSoftExceptionLogger.cpp +21 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactSoftExceptionLogger.h +28 -0
- package/{ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerComponentDescriptor.h → ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp} +8 -7
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.h +30 -0
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/jni/ProxyExecutor.h +1 -0
- package/ReactAndroid/src/main/jni/third-party/folly/Android.mk +3 -1
- package/ReactAndroid/src/main/jni/third-party/libevent/Android.mk +0 -1
- package/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK +26 -26
- package/ReactAndroid/src/main/libraries/soloader/java/com/facebook/soloader/BUCK +5 -5
- package/ReactAndroid/src/main/res/devsupport/values/strings.xml +2 -1
- package/ReactAndroid/src/main/res/views/uimanager/values/strings_unlocalized.xml +0 -12
- package/ReactAndroid/src/main/third-party/android/androidx/BUCK +63 -2
- package/ReactAndroid/src/main/third-party/java/infer-annotations/BUCK +2 -2
- package/ReactAndroid/src/main/third-party/java/okhttp/BUCK +4 -4
- package/ReactAndroid/src/main/third-party/java/okio/BUCK +2 -2
- package/ReactAndroid/src/main/third-party/java/robolectric/{4.4/BUCK → BUCK} +0 -0
- package/ReactAndroid/src/main/third-party/java/testing-support-lib/BUCK +0 -31
- package/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java +2 -2
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/BUCK +1 -1
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java +1 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/BUCK +1 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/deviceinfo/DeviceInfoModuleTest.java +168 -0
- package/ReactAndroid/src/test/java/com/facebook/react/views/textinput/ReactTextInputPropertyTest.java +4 -0
- package/ReactCommon/React-Fabric.podspec +11 -11
- package/ReactCommon/ReactCommon.podspec +3 -2
- package/ReactCommon/callinvoker/BUCK +2 -2
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/Android.mk +2 -1
- package/ReactCommon/cxxreact/BUCK +1 -3
- package/ReactCommon/cxxreact/CxxNativeModule.cpp +28 -0
- package/ReactCommon/cxxreact/CxxNativeModule.h +9 -0
- package/ReactCommon/cxxreact/Instance.cpp +5 -8
- package/ReactCommon/cxxreact/Instance.h +1 -1
- package/ReactCommon/cxxreact/React-cxxreact.podspec +4 -3
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/hermes/React-hermes.podspec +2 -2
- package/ReactCommon/hermes/executor/Android.mk +4 -4
- package/ReactCommon/hermes/inspector/Android.mk +1 -2
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +7 -4
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +13 -10
- package/ReactCommon/jsi/Android.mk +1 -1
- package/ReactCommon/jsi/BUCK +0 -2
- package/ReactCommon/jsi/React-jsi.podspec +3 -3
- package/ReactCommon/jsi/jsi/jsilib-posix.cpp +1 -11
- package/ReactCommon/jsiexecutor/Android.mk +2 -2
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +2 -2
- package/ReactCommon/logger/Android.mk +23 -0
- package/ReactCommon/logger/BUCK +43 -0
- package/ReactCommon/logger/React-logger.podspec +40 -0
- package/ReactCommon/logger/react_native_log.cpp +52 -0
- package/ReactCommon/logger/react_native_log.h +33 -0
- package/ReactCommon/react/nativemodule/core/Android.mk +2 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/LongLivedObject.cpp +1 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/LongLivedObject.h +3 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +46 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.h +10 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +37 -1
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +24 -22
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.h +11 -8
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModule.h +7 -5
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModule.mm +61 -42
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +55 -35
- package/ReactCommon/react/nativemodule/samples/BUCK +2 -2
- package/ReactCommon/react/nativemodule/samples/platform/android/Android.mk +1 -1
- 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 -27
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.h +8 -14
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +920 -1127
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +80 -245
- package/ReactCommon/react/renderer/animations/conversions.h +212 -0
- package/ReactCommon/react/renderer/animations/primitives.h +104 -0
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +18 -10
- 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.cpp +7 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +3 -1
- package/ReactCommon/react/renderer/attributedstring/conversions.h +162 -11
- package/ReactCommon/react/renderer/attributedstring/primitives.h +34 -1
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.cpp +2 -2
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h +1 -0
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +12 -6
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.h +4 -1
- package/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.cpp +2 -1
- package/ReactCommon/react/renderer/components/image/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/image/ImageProps.cpp +28 -9
- package/ReactCommon/react/renderer/components/image/ImageProps.h +5 -1
- package/ReactCommon/react/renderer/components/image/conversions.h +9 -2
- package/ReactCommon/react/renderer/components/inputaccessory/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +0 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.cpp +2 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.h +2 -0
- package/ReactCommon/react/renderer/components/root/BUCK +1 -0
- package/ReactCommon/react/renderer/components/root/RootProps.cpp +12 -2
- package/ReactCommon/react/renderer/components/root/RootProps.h +6 -1
- package/ReactCommon/react/renderer/components/root/RootShadowNode.cpp +2 -1
- package/ReactCommon/react/renderer/components/root/RootShadowNode.h +2 -0
- package/ReactCommon/react/renderer/components/root/tests/RootShadowNodeTest.cpp +35 -3
- package/ReactCommon/react/renderer/components/safeareaview/BUCK +1 -1
- package/ReactCommon/react/renderer/components/scrollview/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.cpp +54 -4
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h +10 -5
- package/ReactCommon/react/renderer/components/scrollview/conversions.h +5 -0
- package/ReactCommon/react/renderer/components/text/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +32 -0
- package/ReactCommon/react/renderer/components/text/BaseTextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/BaseTextShadowNode.cpp +2 -3
- package/ReactCommon/react/renderer/components/text/ParagraphComponentDescriptor.h +1 -16
- package/ReactCommon/react/renderer/components/text/ParagraphProps.cpp +10 -4
- package/ReactCommon/react/renderer/components/text/ParagraphProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.cpp +3 -3
- package/ReactCommon/react/renderer/components/text/RawTextProps.cpp +3 -2
- package/ReactCommon/react/renderer/components/text/RawTextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/RawTextShadowNode.h +36 -2
- package/ReactCommon/react/renderer/components/text/TextProps.cpp +6 -3
- package/ReactCommon/react/renderer/components/text/TextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/TextShadowNode.h +23 -0
- package/ReactCommon/react/renderer/components/textinput/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +58 -91
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +10 -6
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +46 -22
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +6 -5
- package/ReactCommon/react/renderer/components/textinput/iostextinput/conversions.h +19 -7
- package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +6 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/propsConversions.h +63 -2
- package/ReactCommon/react/renderer/components/unimplementedview/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +4 -2
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.h +5 -2
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewProps.h +1 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +28 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.cpp +24 -1
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.h +4 -1
- package/ReactCommon/react/renderer/components/view/Android.mk +3 -2
- package/ReactCommon/react/renderer/components/view/BUCK +1 -0
- package/ReactCommon/react/renderer/components/view/Touch.h +1 -32
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp +19 -5
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.h +2 -1
- package/ReactCommon/react/renderer/components/view/ViewComponentDescriptor.h +0 -22
- package/ReactCommon/react/renderer/components/view/ViewEventEmitter.cpp +1 -1
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +62 -14
- package/ReactCommon/react/renderer/components/view/ViewProps.h +7 -1
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +5 -10
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +5 -12
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +58 -33
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.h +2 -8
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp +3 -2
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.h +2 -0
- package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +77 -6
- package/ReactCommon/react/renderer/components/view/conversions.h +57 -14
- package/ReactCommon/react/renderer/components/view/primitives.h +5 -4
- package/ReactCommon/react/renderer/components/view/propsConversions.h +163 -28
- package/ReactCommon/react/renderer/components/view/tests/ViewTest.cpp +7 -2
- package/ReactCommon/react/renderer/core/Android.mk +1 -1
- package/ReactCommon/react/renderer/core/BUCK +1 -0
- package/ReactCommon/react/renderer/core/BatchedEventQueue.cpp +2 -34
- package/ReactCommon/react/renderer/core/BatchedEventQueue.h +2 -9
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -2
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +19 -21
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +4 -0
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +5 -10
- package/ReactCommon/react/renderer/core/EventDispatcher.h +3 -8
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +21 -11
- package/ReactCommon/react/renderer/core/EventEmitter.h +6 -1
- package/ReactCommon/react/renderer/core/EventPipe.h +2 -0
- package/ReactCommon/react/renderer/core/EventQueue.cpp +35 -32
- package/ReactCommon/react/renderer/core/EventQueue.h +12 -6
- package/ReactCommon/react/renderer/core/EventQueueProcessor.cpp +82 -0
- package/ReactCommon/react/renderer/core/EventQueueProcessor.h +36 -0
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.cpp +1 -1
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.h +0 -6
- package/ReactCommon/react/renderer/core/Props.cpp +10 -2
- package/ReactCommon/react/renderer/core/Props.h +6 -1
- package/ReactCommon/react/renderer/core/PropsParserContext.h +29 -0
- package/ReactCommon/react/renderer/core/RawEvent.cpp +4 -2
- package/ReactCommon/react/renderer/core/RawEvent.h +40 -3
- package/ReactCommon/react/renderer/core/RawProps.cpp +2 -1
- package/ReactCommon/react/renderer/core/RawProps.h +3 -1
- package/ReactCommon/react/renderer/core/RawPropsKey.cpp +10 -2
- package/ReactCommon/react/renderer/core/RawPropsKeyMap.cpp +1 -1
- package/ReactCommon/react/renderer/core/RawPropsParser.cpp +1 -1
- package/ReactCommon/react/renderer/core/RawPropsParser.h +11 -2
- package/ReactCommon/react/renderer/core/ReactEventPriority.h +43 -0
- package/ReactCommon/react/renderer/core/ReactPrimitives.h +0 -2
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +9 -12
- package/ReactCommon/react/renderer/core/ShadowNode.h +4 -0
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +1 -0
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.h +17 -1
- package/ReactCommon/react/renderer/core/propsConversions.h +19 -9
- package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +16 -4
- package/ReactCommon/react/renderer/core/tests/EventQueueProcessorTest.cpp +134 -0
- package/ReactCommon/react/renderer/core/tests/RawPropsTest.cpp +97 -29
- package/ReactCommon/react/renderer/core/tests/TestComponent.h +6 -2
- package/ReactCommon/react/renderer/core/tests/traitCastTest.cpp +31 -0
- package/ReactCommon/react/renderer/debug/DebugStringConvertible.h +9 -9
- package/ReactCommon/react/renderer/graphics/Android.mk +5 -2
- package/ReactCommon/react/renderer/graphics/BUCK +12 -1
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +3 -2
- package/ReactCommon/react/renderer/graphics/Transform.cpp +2 -2
- package/ReactCommon/react/renderer/graphics/Transform.h +1 -1
- package/ReactCommon/react/renderer/graphics/conversions.h +34 -19
- package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/PlatformColorParser.h +67 -0
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.cpp +8 -0
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.h +1 -0
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/PlatformColorParser.h +29 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.cpp +8 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +43 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/PlatformColorParser.h +34 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.h +12 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +206 -0
- package/ReactCommon/react/renderer/imagemanager/BUCK +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.mm +1 -1
- package/ReactCommon/react/renderer/leakchecker/LeakChecker.cpp +6 -9
- package/ReactCommon/react/renderer/leakchecker/LeakChecker.h +1 -4
- package/ReactCommon/react/renderer/mapbuffer/BUCK +2 -2
- package/ReactCommon/react/renderer/mounting/Android.mk +2 -1
- package/ReactCommon/react/renderer/mounting/Differentiator.cpp +3 -10
- package/ReactCommon/react/renderer/mounting/Differentiator.h +1 -2
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +1 -7
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +0 -4
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +7 -5
- package/ReactCommon/react/renderer/mounting/ShadowTree.h +2 -1
- package/ReactCommon/react/renderer/mounting/ShadowView.cpp +2 -0
- package/ReactCommon/react/renderer/mounting/ShadowView.h +1 -0
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +12 -0
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +10 -1
- package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +10 -3
- package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +1 -1
- package/ReactCommon/react/renderer/mounting/stubs.cpp +3 -3
- package/ReactCommon/react/renderer/mounting/tests/MountingTest.cpp +22 -21
- package/ReactCommon/react/renderer/mounting/tests/ShadowTreeLifeCycleTest.cpp +12 -5
- package/ReactCommon/react/renderer/mounting/tests/StackingContextTest.cpp +2 -2
- package/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp +6 -3
- package/ReactCommon/react/renderer/runtimescheduler/Android.mk +2 -1
- package/ReactCommon/react/renderer/runtimescheduler/BUCK +1 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +75 -33
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +54 -10
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +8 -7
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +8 -5
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +30 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h +34 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerClock.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriority.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +11 -5
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +5 -3
- package/ReactCommon/react/renderer/runtimescheduler/primitives.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +157 -0
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +6 -0
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.cpp +13 -12
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.h +4 -4
- package/ReactCommon/react/renderer/{components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerShadowNode.cpp → scheduler/InspectorData.h} +10 -2
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +64 -37
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +18 -3
- package/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h +9 -1
- package/ReactCommon/react/renderer/scheduler/SchedulerToolbox.h +1 -6
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +49 -35
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +12 -12
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +1 -0
- package/ReactCommon/react/renderer/scheduler/SynchronousEventBeat.cpp +11 -4
- package/ReactCommon/react/renderer/scheduler/SynchronousEventBeat.h +4 -1
- package/ReactCommon/react/renderer/templateprocessor/UITemplateProcessor.cpp +5 -5
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +2 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +22 -0
- package/ReactCommon/react/renderer/timeline/BUCK +6 -6
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +29 -16
- package/ReactCommon/react/renderer/uimanager/UIManager.h +3 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerAnimationDelegate.h +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +61 -2
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +13 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h +10 -2
- package/ReactCommon/react/test_utils/BUCK +3 -0
- package/ReactCommon/react/{renderer/core/Constants.h → test_utils/MockSurfaceHandler.h} +9 -7
- package/ReactCommon/react/test_utils/shadowTreeGeneration.h +18 -4
- package/ReactCommon/react/utils/Android.mk +3 -1
- package/ReactCommon/react/utils/BUCK +1 -0
- package/ReactCommon/react/utils/ContextContainer.h +0 -27
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/runtimeexecutor/ReactCommon/RuntimeExecutor.h +12 -0
- package/ReactCommon/yoga/yoga/Yoga.cpp +2 -6
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.aar +0 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.aar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.aar.sha512 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.module +272 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.module.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.module.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.module.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.module.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.0.0-263478b91/react-native-0.0.0-263478b91.pom → 0.0.0-268efb102/react-native-0.0.0-268efb102.pom} +22 -11
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.pom.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-268efb102/react-native-0.0.0-268efb102.pom.sha512 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +4 -3
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -0
- package/flow/HermesInternalType.js +114 -0
- package/flow/global.js +68 -0
- package/flow-typed/npm/react-test-renderer_v16.x.x.js +79 -0
- package/index.js +65 -40
- package/jest/preprocessor.js +75 -7
- package/jest/renderer.js +3 -7
- package/jest/setup.js +2 -1
- package/package.json +58 -19
- package/react.gradle +47 -25
- package/scripts/find-node.sh +6 -0
- package/scripts/generate-specs-cli.js +20 -2
- package/scripts/ios-configure-glog.sh +4 -0
- package/scripts/react-native-xcode.sh +5 -1
- package/scripts/react_native_pods.rb +213 -43
- package/template/_flowconfig +1 -1
- package/template/_gitignore +1 -0
- package/template/android/app/build.gradle +12 -7
- package/template/android/app/src/main/res/values/styles.xml +0 -1
- package/template/android/build.gradle +5 -6
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +1 -1
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj +2 -0
- package/template/ios/Podfile +1 -0
- package/template/package.json +3 -4
- package/third-party-podspecs/RCT-Folly.podspec +14 -10
- package/third-party-podspecs/boost.podspec +23 -0
- package/Libraries/BUCK +0 -24
- 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/Libraries/Components/Picker/AndroidDialogPickerNativeComponent.js +0 -83
- package/Libraries/Components/Picker/AndroidDropdownPickerNativeComponent.js +0 -82
- package/Libraries/Components/Picker/Picker.js +0 -168
- package/Libraries/Components/Picker/PickerAndroid.android.js +0 -143
- package/Libraries/Components/Picker/PickerAndroid.ios.js +0 -12
- package/Libraries/Components/Picker/PickerIOS.android.js +0 -14
- package/Libraries/Components/Picker/PickerIOS.ios.js +0 -163
- package/Libraries/Components/Picker/RCTPickerNativeComponent.js +0 -86
- package/Libraries/Components/StaticContainer.react.js +0 -51
- package/Libraries/Components/StatusBar/StatusBarIOS.js +0 -38
- package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
- package/Libraries/Interaction/InteractionMixin.js +0 -53
- package/Libraries/ReactNative/queryLayoutByID.js +0 -58
- package/Libraries/StyleSheet/StyleSheetValidation.js +0 -100
- package/Libraries/Text/TextInjection.js +0 -15
- package/React/Base/RCTJSInvokerModule.h +0 -17
- package/React/Fabric/Mounting/ComponentViews/Picker/RCTPickerComponentView.h +0 -19
- package/React/Fabric/Mounting/ComponentViews/Picker/RCTPickerComponentView.mm +0 -206
- package/React/Views/RCTPicker.h +0 -23
- package/React/Views/RCTPicker.m +0 -122
- package/React/Views/RCTPickerManager.m +0 -59
- package/ReactAndroid/release.gradle +0 -87
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java +0 -172
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactPickerTestCase.java +0 -196
- package/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js +0 -45
- package/ReactAndroid/src/androidTest/js/PickerAndroidTestModule.js +0 -89
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java +0 -82
- 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/viewmanagers/AndroidDialogPickerManagerDelegate.java +0 -48
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidDialogPickerManagerInterface.java +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidDropdownPickerManagerDelegate.java +0 -48
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidDropdownPickerManagerInterface.java +0 -22
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/BUCK +0 -30
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDialogPickerManager.java +0 -51
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDropdownPickerManager.java +0 -50
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPicker.java +0 -196
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerAdapter.java +0 -95
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerItem.java +0 -43
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerManager.java +0 -99
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/events/PickerItemSelectEvent.java +0 -42
- package/ReactCommon/react/renderer/components/picker/Android.mk +0 -37
- package/ReactCommon/react/renderer/components/picker/BUCK +0 -98
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerEventEmitter.cpp +0 -23
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerEventEmitter.h +0 -27
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerProps.cpp +0 -28
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerProps.h +0 -77
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerShadowNode.h +0 -29
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerComponentDescriptor.h +0 -21
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerEventEmitter.cpp +0 -23
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerEventEmitter.h +0 -27
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerProps.cpp +0 -28
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerProps.h +0 -77
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerShadowNode.cpp +0 -17
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerShadowNode.h +0 -29
- package/ReactCommon/react/renderer/components/picker/iospicker/BUCK +0 -59
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerComponentDescriptor.h +0 -26
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerEventEmitter.cpp +0 -23
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerEventEmitter.h +0 -28
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerProps.cpp +0 -46
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerProps.h +0 -36
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerShadowNode.cpp +0 -16
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerShadowNode.h +0 -33
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerState.h +0 -19
- package/ReactCommon/react/renderer/components/picker/iospicker/conversions.h +0 -48
- package/ReactCommon/react/renderer/core/Constants.cpp +0 -24
- package/ReactCommon/react/renderer/mounting/DifferentiatorFlatteningClassic.cpp +0 -1564
- package/ReactCommon/react/renderer/mounting/DifferentiatorFlatteningClassic.h +0 -45
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeatV2.cpp +0 -58
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeatV2.h +0 -41
- package/android/com/facebook/react/react-native/0.0.0-263478b91/react-native-0.0.0-263478b91.aar +0 -0
- package/android/com/facebook/react/react-native/0.0.0-263478b91/react-native-0.0.0-263478b91.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-263478b91/react-native-0.0.0-263478b91.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-263478b91/react-native-0.0.0-263478b91.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-263478b91/react-native-0.0.0-263478b91.pom.sha1 +0 -1
- package/scripts/generate-specs.sh +0 -100
- package/template/_editorconfig +0 -3
- package/template/_gitattributes +0 -3
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<5c359ba9bcb80e09d414cf763d94b5d5>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
14
14
|
require("react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore");
|
|
15
15
|
var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"),
|
|
16
|
-
React = require("react")
|
|
17
|
-
|
|
16
|
+
React = require("react");
|
|
17
|
+
var Scheduler = require("scheduler");
|
|
18
18
|
function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) {
|
|
19
19
|
var funcArgs = Array.prototype.slice.call(arguments, 3);
|
|
20
20
|
try {
|
|
@@ -930,7 +930,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
930
930
|
"ReactNativeBridgeEventPlugin"
|
|
931
931
|
]);
|
|
932
932
|
recomputePluginOrdering();
|
|
933
|
-
var injectedNamesToPlugins$jscomp$
|
|
933
|
+
var injectedNamesToPlugins$jscomp$inline_225 = {
|
|
934
934
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
935
935
|
ReactNativeBridgeEventPlugin: {
|
|
936
936
|
eventTypes: {},
|
|
@@ -965,34 +965,34 @@ var injectedNamesToPlugins$jscomp$inline_219 = {
|
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
967
|
},
|
|
968
|
-
isOrderingDirty$jscomp$
|
|
969
|
-
pluginName$jscomp$
|
|
970
|
-
for (pluginName$jscomp$
|
|
968
|
+
isOrderingDirty$jscomp$inline_226 = !1,
|
|
969
|
+
pluginName$jscomp$inline_227;
|
|
970
|
+
for (pluginName$jscomp$inline_227 in injectedNamesToPlugins$jscomp$inline_225)
|
|
971
971
|
if (
|
|
972
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
-
pluginName$jscomp$
|
|
972
|
+
injectedNamesToPlugins$jscomp$inline_225.hasOwnProperty(
|
|
973
|
+
pluginName$jscomp$inline_227
|
|
974
974
|
)
|
|
975
975
|
) {
|
|
976
|
-
var pluginModule$jscomp$
|
|
977
|
-
injectedNamesToPlugins$jscomp$
|
|
976
|
+
var pluginModule$jscomp$inline_228 =
|
|
977
|
+
injectedNamesToPlugins$jscomp$inline_225[pluginName$jscomp$inline_227];
|
|
978
978
|
if (
|
|
979
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
980
|
-
namesToPlugins[pluginName$jscomp$
|
|
981
|
-
pluginModule$jscomp$
|
|
979
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_227) ||
|
|
980
|
+
namesToPlugins[pluginName$jscomp$inline_227] !==
|
|
981
|
+
pluginModule$jscomp$inline_228
|
|
982
982
|
) {
|
|
983
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
983
|
+
if (namesToPlugins[pluginName$jscomp$inline_227])
|
|
984
984
|
throw Error(
|
|
985
985
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
986
|
-
pluginName$jscomp$
|
|
986
|
+
pluginName$jscomp$inline_227 +
|
|
987
987
|
"`."
|
|
988
988
|
);
|
|
989
989
|
namesToPlugins[
|
|
990
|
-
pluginName$jscomp$
|
|
991
|
-
] = pluginModule$jscomp$
|
|
992
|
-
isOrderingDirty$jscomp$
|
|
990
|
+
pluginName$jscomp$inline_227
|
|
991
|
+
] = pluginModule$jscomp$inline_228;
|
|
992
|
+
isOrderingDirty$jscomp$inline_226 = !0;
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
isOrderingDirty$jscomp$
|
|
995
|
+
isOrderingDirty$jscomp$inline_226 && recomputePluginOrdering();
|
|
996
996
|
var instanceCache = new Map(),
|
|
997
997
|
instanceProps = new Map();
|
|
998
998
|
function getInstanceFromTag(tag) {
|
|
@@ -1392,18 +1392,6 @@ function findCurrentHostFiberImpl(node) {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
return null;
|
|
1394
1394
|
}
|
|
1395
|
-
function doesFiberContain(parentFiber, childFiber) {
|
|
1396
|
-
for (
|
|
1397
|
-
var parentFiberAlternate = parentFiber.alternate;
|
|
1398
|
-
null !== childFiber;
|
|
1399
|
-
|
|
1400
|
-
) {
|
|
1401
|
-
if (childFiber === parentFiber || childFiber === parentFiberAlternate)
|
|
1402
|
-
return !0;
|
|
1403
|
-
childFiber = childFiber.return;
|
|
1404
|
-
}
|
|
1405
|
-
return !1;
|
|
1406
|
-
}
|
|
1407
1395
|
var emptyObject = {},
|
|
1408
1396
|
removedKeys = null,
|
|
1409
1397
|
removedKeyCount = 0,
|
|
@@ -1853,6 +1841,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1853
1841
|
root = root.pendingLanes & -1073741825;
|
|
1854
1842
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1855
1843
|
}
|
|
1844
|
+
function includesBlockingLane(root, lanes) {
|
|
1845
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1846
|
+
}
|
|
1856
1847
|
function createLaneMap(initial) {
|
|
1857
1848
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1858
1849
|
return laneMap;
|
|
@@ -1911,7 +1902,7 @@ function lanesToEventPriority(lanes) {
|
|
|
1911
1902
|
: 4
|
|
1912
1903
|
: 1;
|
|
1913
1904
|
}
|
|
1914
|
-
function shim() {
|
|
1905
|
+
function shim$1() {
|
|
1915
1906
|
throw Error(
|
|
1916
1907
|
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
|
1917
1908
|
);
|
|
@@ -2056,7 +2047,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2056
2047
|
: pop(didPerformWorkStackCursor);
|
|
2057
2048
|
push(didPerformWorkStackCursor, didChange);
|
|
2058
2049
|
}
|
|
2059
|
-
|
|
2050
|
+
function is(x, y) {
|
|
2051
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2052
|
+
}
|
|
2053
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2054
|
+
syncQueue = null,
|
|
2060
2055
|
includesLegacySyncCallbacks = !1,
|
|
2061
2056
|
isFlushingSyncQueue = !1;
|
|
2062
2057
|
function flushSyncCallbacks() {
|
|
@@ -2085,10 +2080,6 @@ function flushSyncCallbacks() {
|
|
|
2085
2080
|
return null;
|
|
2086
2081
|
}
|
|
2087
2082
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2088
|
-
function is(x, y) {
|
|
2089
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2090
|
-
}
|
|
2091
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
2092
2083
|
function shallowEqual(objA, objB) {
|
|
2093
2084
|
if (objectIs(objA, objB)) return !0;
|
|
2094
2085
|
if (
|
|
@@ -2205,8 +2196,7 @@ function readContext(context) {
|
|
|
2205
2196
|
lastContextDependency = context;
|
|
2206
2197
|
currentlyRenderingFiber.dependencies = {
|
|
2207
2198
|
lanes: 0,
|
|
2208
|
-
firstContext: context
|
|
2209
|
-
responders: null
|
|
2199
|
+
firstContext: context
|
|
2210
2200
|
};
|
|
2211
2201
|
} else lastContextDependency = lastContextDependency.next = context;
|
|
2212
2202
|
return value;
|
|
@@ -2247,7 +2237,9 @@ function enqueueUpdate(fiber, update) {
|
|
|
2247
2237
|
var updateQueue = fiber.updateQueue;
|
|
2248
2238
|
null !== updateQueue &&
|
|
2249
2239
|
((updateQueue = updateQueue.shared),
|
|
2250
|
-
null !== workInProgressRoot &&
|
|
2240
|
+
null !== workInProgressRoot &&
|
|
2241
|
+
0 !== (fiber.mode & 1) &&
|
|
2242
|
+
0 === (executionContext & 2)
|
|
2251
2243
|
? ((fiber = updateQueue.interleaved),
|
|
2252
2244
|
null === fiber
|
|
2253
2245
|
? ((update.next = update),
|
|
@@ -2384,7 +2376,7 @@ function processUpdateQueue(
|
|
|
2384
2376
|
newState = workInProgress;
|
|
2385
2377
|
break a;
|
|
2386
2378
|
case 3:
|
|
2387
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2379
|
+
workInProgress.flags = (workInProgress.flags & -32769) | 128;
|
|
2388
2380
|
case 0:
|
|
2389
2381
|
workInProgress = update.payload;
|
|
2390
2382
|
updateLane =
|
|
@@ -2399,6 +2391,7 @@ function processUpdateQueue(
|
|
|
2399
2391
|
}
|
|
2400
2392
|
}
|
|
2401
2393
|
null !== pendingQueue.callback &&
|
|
2394
|
+
0 !== pendingQueue.lane &&
|
|
2402
2395
|
((workInProgress$jscomp$0.flags |= 64),
|
|
2403
2396
|
(updateLane = queue.effects),
|
|
2404
2397
|
null === updateLane
|
|
@@ -3083,60 +3076,49 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3083
3076
|
return iteratorFn;
|
|
3084
3077
|
}
|
|
3085
3078
|
return function(returnFiber, currentFirstChild, newChild, lanes) {
|
|
3086
|
-
|
|
3087
|
-
"object" === typeof newChild &&
|
|
3079
|
+
"object" === typeof newChild &&
|
|
3088
3080
|
null !== newChild &&
|
|
3089
3081
|
newChild.type === REACT_FRAGMENT_TYPE &&
|
|
3090
|
-
null === newChild.key
|
|
3091
|
-
|
|
3082
|
+
null === newChild.key &&
|
|
3083
|
+
(newChild = newChild.props.children);
|
|
3092
3084
|
if ("object" === typeof newChild && null !== newChild) {
|
|
3093
3085
|
switch (newChild.$$typeof) {
|
|
3094
3086
|
case REACT_ELEMENT_TYPE:
|
|
3095
3087
|
a: {
|
|
3096
|
-
var key = newChild.key;
|
|
3097
3088
|
for (
|
|
3098
|
-
|
|
3099
|
-
null !==
|
|
3089
|
+
var key = newChild.key, child = currentFirstChild;
|
|
3090
|
+
null !== child;
|
|
3100
3091
|
|
|
3101
3092
|
) {
|
|
3102
|
-
if (
|
|
3093
|
+
if (child.key === key) {
|
|
3103
3094
|
key = newChild.type;
|
|
3104
3095
|
if (key === REACT_FRAGMENT_TYPE) {
|
|
3105
|
-
if (7 ===
|
|
3106
|
-
deleteRemainingChildren(
|
|
3107
|
-
returnFiber,
|
|
3108
|
-
isUnkeyedTopLevelFragment.sibling
|
|
3109
|
-
);
|
|
3096
|
+
if (7 === child.tag) {
|
|
3097
|
+
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3110
3098
|
currentFirstChild = useFiber(
|
|
3111
|
-
|
|
3099
|
+
child,
|
|
3112
3100
|
newChild.props.children
|
|
3113
3101
|
);
|
|
3114
3102
|
currentFirstChild.return = returnFiber;
|
|
3115
3103
|
returnFiber = currentFirstChild;
|
|
3116
3104
|
break a;
|
|
3117
3105
|
}
|
|
3118
|
-
} else if (
|
|
3119
|
-
deleteRemainingChildren(
|
|
3120
|
-
|
|
3121
|
-
isUnkeyedTopLevelFragment.sibling
|
|
3122
|
-
);
|
|
3123
|
-
currentFirstChild = useFiber(
|
|
3124
|
-
isUnkeyedTopLevelFragment,
|
|
3125
|
-
newChild.props
|
|
3126
|
-
);
|
|
3106
|
+
} else if (child.elementType === key) {
|
|
3107
|
+
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3108
|
+
currentFirstChild = useFiber(child, newChild.props);
|
|
3127
3109
|
currentFirstChild.ref = coerceRef(
|
|
3128
3110
|
returnFiber,
|
|
3129
|
-
|
|
3111
|
+
child,
|
|
3130
3112
|
newChild
|
|
3131
3113
|
);
|
|
3132
3114
|
currentFirstChild.return = returnFiber;
|
|
3133
3115
|
returnFiber = currentFirstChild;
|
|
3134
3116
|
break a;
|
|
3135
3117
|
}
|
|
3136
|
-
deleteRemainingChildren(returnFiber,
|
|
3118
|
+
deleteRemainingChildren(returnFiber, child);
|
|
3137
3119
|
break;
|
|
3138
|
-
} else deleteChild(returnFiber,
|
|
3139
|
-
|
|
3120
|
+
} else deleteChild(returnFiber, child);
|
|
3121
|
+
child = child.sibling;
|
|
3140
3122
|
}
|
|
3141
3123
|
newChild.type === REACT_FRAGMENT_TYPE
|
|
3142
3124
|
? ((currentFirstChild = createFiberFromFragment(
|
|
@@ -3166,12 +3148,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3166
3148
|
return placeSingleChild(returnFiber);
|
|
3167
3149
|
case REACT_PORTAL_TYPE:
|
|
3168
3150
|
a: {
|
|
3169
|
-
for (
|
|
3170
|
-
|
|
3171
|
-
null !== currentFirstChild;
|
|
3172
|
-
|
|
3173
|
-
) {
|
|
3174
|
-
if (currentFirstChild.key === isUnkeyedTopLevelFragment)
|
|
3151
|
+
for (child = newChild.key; null !== currentFirstChild; ) {
|
|
3152
|
+
if (currentFirstChild.key === child)
|
|
3175
3153
|
if (
|
|
3176
3154
|
4 === currentFirstChild.tag &&
|
|
3177
3155
|
currentFirstChild.stateNode.containerInfo ===
|
|
@@ -3223,9 +3201,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3223
3201
|
);
|
|
3224
3202
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
3225
3203
|
}
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
(newChild = "" + newChild),
|
|
3204
|
+
return "string" === typeof newChild || "number" === typeof newChild
|
|
3205
|
+
? ((newChild = "" + newChild),
|
|
3229
3206
|
null !== currentFirstChild && 6 === currentFirstChild.tag
|
|
3230
3207
|
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
|
|
3231
3208
|
(currentFirstChild = useFiber(currentFirstChild, newChild)),
|
|
@@ -3239,20 +3216,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3239
3216
|
)),
|
|
3240
3217
|
(currentFirstChild.return = returnFiber),
|
|
3241
3218
|
(returnFiber = currentFirstChild)),
|
|
3242
|
-
placeSingleChild(returnFiber)
|
|
3243
|
-
);
|
|
3244
|
-
if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment)
|
|
3245
|
-
switch (returnFiber.tag) {
|
|
3246
|
-
case 1:
|
|
3247
|
-
case 0:
|
|
3248
|
-
case 11:
|
|
3249
|
-
case 15:
|
|
3250
|
-
throw Error(
|
|
3251
|
-
(getComponentNameFromFiber(returnFiber) || "Component") +
|
|
3252
|
-
"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."
|
|
3253
|
-
);
|
|
3254
|
-
}
|
|
3255
|
-
return deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3219
|
+
placeSingleChild(returnFiber))
|
|
3220
|
+
: deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3256
3221
|
};
|
|
3257
3222
|
}
|
|
3258
3223
|
var reconcileChildFibers = ChildReconciler(!0),
|
|
@@ -3307,7 +3272,7 @@ function findFirstSuspended(row) {
|
|
|
3307
3272
|
for (var node = row; null !== node; ) {
|
|
3308
3273
|
if (13 === node.tag) {
|
|
3309
3274
|
var state = node.memoizedState;
|
|
3310
|
-
if (null !== state && (null === state.dehydrated || shim() || shim()))
|
|
3275
|
+
if (null !== state && (null === state.dehydrated || shim$1() || shim$1()))
|
|
3311
3276
|
return node;
|
|
3312
3277
|
} else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {
|
|
3313
3278
|
if (0 !== (node.flags & 128)) return node;
|
|
@@ -3543,7 +3508,7 @@ function rerenderReducer(reducer) {
|
|
|
3543
3508
|
}
|
|
3544
3509
|
return [newState, dispatch];
|
|
3545
3510
|
}
|
|
3546
|
-
function
|
|
3511
|
+
function readFromUnsubscribedMutableSource(root, source, getSnapshot) {
|
|
3547
3512
|
var getVersion = source._getVersion;
|
|
3548
3513
|
getVersion = getVersion(source._source);
|
|
3549
3514
|
var JSCompiler_inline_result = source._workInProgressVersionPrimary;
|
|
@@ -3570,7 +3535,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3570
3535
|
version = getVersion(source._source),
|
|
3571
3536
|
dispatcher = ReactCurrentDispatcher$1.current,
|
|
3572
3537
|
_dispatcher$useState = dispatcher.useState(function() {
|
|
3573
|
-
return
|
|
3538
|
+
return readFromUnsubscribedMutableSource(root, source, getSnapshot);
|
|
3574
3539
|
}),
|
|
3575
3540
|
setSnapshot = _dispatcher$useState[1],
|
|
3576
3541
|
snapshot = _dispatcher$useState[0];
|
|
@@ -3633,7 +3598,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3633
3598
|
)),
|
|
3634
3599
|
(_dispatcher$useState.queue = hook),
|
|
3635
3600
|
(_dispatcher$useState.baseQueue = null),
|
|
3636
|
-
(snapshot =
|
|
3601
|
+
(snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)),
|
|
3637
3602
|
(_dispatcher$useState.memoizedState = _dispatcher$useState.baseState = snapshot));
|
|
3638
3603
|
return snapshot;
|
|
3639
3604
|
}
|
|
@@ -3641,11 +3606,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3641
3606
|
var hook = updateWorkInProgressHook();
|
|
3642
3607
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3643
3608
|
}
|
|
3609
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3610
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3611
|
+
hook = mountWorkInProgressHook(),
|
|
3612
|
+
nextSnapshot = getSnapshot();
|
|
3613
|
+
hook.memoizedState = nextSnapshot;
|
|
3614
|
+
var inst = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3615
|
+
hook.queue = inst;
|
|
3616
|
+
mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]);
|
|
3617
|
+
fiber.flags |= 1024;
|
|
3618
|
+
pushEffect(
|
|
3619
|
+
9,
|
|
3620
|
+
updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot),
|
|
3621
|
+
void 0,
|
|
3622
|
+
null
|
|
3623
|
+
);
|
|
3624
|
+
subscribe = workInProgressRoot;
|
|
3625
|
+
if (null === subscribe)
|
|
3626
|
+
throw Error(
|
|
3627
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3628
|
+
);
|
|
3629
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
3630
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3631
|
+
return nextSnapshot;
|
|
3632
|
+
}
|
|
3633
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3634
|
+
fiber.flags |= 8192;
|
|
3635
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3636
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3637
|
+
null === getSnapshot
|
|
3638
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3639
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3640
|
+
(getSnapshot.stores = [fiber]))
|
|
3641
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3642
|
+
null === renderedSnapshot
|
|
3643
|
+
? (getSnapshot.stores = [fiber])
|
|
3644
|
+
: renderedSnapshot.push(fiber));
|
|
3645
|
+
}
|
|
3646
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3647
|
+
inst.value = nextSnapshot;
|
|
3648
|
+
inst.getSnapshot = getSnapshot;
|
|
3649
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3650
|
+
}
|
|
3651
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3652
|
+
return subscribe(function() {
|
|
3653
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3654
|
+
});
|
|
3655
|
+
}
|
|
3656
|
+
function checkIfSnapshotChanged(inst) {
|
|
3657
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3658
|
+
inst = inst.value;
|
|
3659
|
+
try {
|
|
3660
|
+
var nextValue = latestGetSnapshot();
|
|
3661
|
+
return !objectIs(inst, nextValue);
|
|
3662
|
+
} catch (error) {
|
|
3663
|
+
return !0;
|
|
3664
|
+
}
|
|
3665
|
+
}
|
|
3644
3666
|
function mountState(initialState) {
|
|
3645
3667
|
var hook = mountWorkInProgressHook();
|
|
3646
3668
|
"function" === typeof initialState && (initialState = initialState());
|
|
3647
3669
|
hook.memoizedState = hook.baseState = initialState;
|
|
3648
|
-
initialState =
|
|
3670
|
+
initialState = {
|
|
3649
3671
|
pending: null,
|
|
3650
3672
|
interleaved: null,
|
|
3651
3673
|
lanes: 0,
|
|
@@ -3653,6 +3675,7 @@ function mountState(initialState) {
|
|
|
3653
3675
|
lastRenderedReducer: basicStateReducer,
|
|
3654
3676
|
lastRenderedState: initialState
|
|
3655
3677
|
};
|
|
3678
|
+
hook.queue = initialState;
|
|
3656
3679
|
initialState = initialState.dispatch = dispatchAction.bind(
|
|
3657
3680
|
null,
|
|
3658
3681
|
currentlyRenderingFiber$1,
|
|
@@ -3664,7 +3687,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3664
3687
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3665
3688
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3666
3689
|
null === create
|
|
3667
|
-
? ((create = { lastEffect: null }),
|
|
3690
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3668
3691
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3669
3692
|
(create.lastEffect = tag.next = tag))
|
|
3670
3693
|
: ((destroy = create.lastEffect),
|
|
@@ -3705,14 +3728,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3705
3728
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3706
3729
|
}
|
|
3707
3730
|
function mountEffect(create, deps) {
|
|
3708
|
-
return mountEffectImpl(
|
|
3731
|
+
return mountEffectImpl(2098176, 8, create, deps);
|
|
3709
3732
|
}
|
|
3710
3733
|
function updateEffect(create, deps) {
|
|
3711
|
-
return updateEffectImpl(1024,
|
|
3734
|
+
return updateEffectImpl(1024, 8, create, deps);
|
|
3712
3735
|
}
|
|
3713
|
-
function
|
|
3736
|
+
function updateInsertionEffect(create, deps) {
|
|
3714
3737
|
return updateEffectImpl(4, 2, create, deps);
|
|
3715
3738
|
}
|
|
3739
|
+
function updateLayoutEffect(create, deps) {
|
|
3740
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3741
|
+
}
|
|
3716
3742
|
function imperativeHandleEffect(create, ref) {
|
|
3717
3743
|
if ("function" === typeof ref)
|
|
3718
3744
|
return (
|
|
@@ -3735,7 +3761,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3735
3761
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3736
3762
|
return updateEffectImpl(
|
|
3737
3763
|
4,
|
|
3738
|
-
|
|
3764
|
+
4,
|
|
3739
3765
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3740
3766
|
deps
|
|
3741
3767
|
);
|
|
@@ -3804,7 +3830,11 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3804
3830
|
: ((update.next = lane.next), (lane.next = update)),
|
|
3805
3831
|
(queue.pending = update);
|
|
3806
3832
|
else {
|
|
3807
|
-
if (
|
|
3833
|
+
if (
|
|
3834
|
+
null !== workInProgressRoot &&
|
|
3835
|
+
0 !== (fiber.mode & 1) &&
|
|
3836
|
+
0 === (executionContext & 2)
|
|
3837
|
+
) {
|
|
3808
3838
|
var interleaved = queue.interleaved;
|
|
3809
3839
|
null === interleaved
|
|
3810
3840
|
? ((update.next = update),
|
|
@@ -3849,6 +3879,7 @@ var ContextOnlyDispatcher = {
|
|
|
3849
3879
|
useContext: throwInvalidHookError,
|
|
3850
3880
|
useEffect: throwInvalidHookError,
|
|
3851
3881
|
useImperativeHandle: throwInvalidHookError,
|
|
3882
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3852
3883
|
useLayoutEffect: throwInvalidHookError,
|
|
3853
3884
|
useMemo: throwInvalidHookError,
|
|
3854
3885
|
useReducer: throwInvalidHookError,
|
|
@@ -3858,6 +3889,7 @@ var ContextOnlyDispatcher = {
|
|
|
3858
3889
|
useDeferredValue: throwInvalidHookError,
|
|
3859
3890
|
useTransition: throwInvalidHookError,
|
|
3860
3891
|
useMutableSource: throwInvalidHookError,
|
|
3892
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
3861
3893
|
useOpaqueIdentifier: throwInvalidHookError,
|
|
3862
3894
|
unstable_isNewReconciler: !1
|
|
3863
3895
|
},
|
|
@@ -3876,12 +3908,15 @@ var ContextOnlyDispatcher = {
|
|
|
3876
3908
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3877
3909
|
return mountEffectImpl(
|
|
3878
3910
|
4,
|
|
3879
|
-
|
|
3911
|
+
4,
|
|
3880
3912
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3881
3913
|
deps
|
|
3882
3914
|
);
|
|
3883
3915
|
},
|
|
3884
3916
|
useLayoutEffect: function(create, deps) {
|
|
3917
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
3918
|
+
},
|
|
3919
|
+
useInsertionEffect: function(create, deps) {
|
|
3885
3920
|
return mountEffectImpl(4, 2, create, deps);
|
|
3886
3921
|
},
|
|
3887
3922
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3895,7 +3930,7 @@ var ContextOnlyDispatcher = {
|
|
|
3895
3930
|
var hook = mountWorkInProgressHook();
|
|
3896
3931
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3897
3932
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3898
|
-
reducer =
|
|
3933
|
+
reducer = {
|
|
3899
3934
|
pending: null,
|
|
3900
3935
|
interleaved: null,
|
|
3901
3936
|
lanes: 0,
|
|
@@ -3903,6 +3938,7 @@ var ContextOnlyDispatcher = {
|
|
|
3903
3938
|
lastRenderedReducer: reducer,
|
|
3904
3939
|
lastRenderedState: initialArg
|
|
3905
3940
|
};
|
|
3941
|
+
hook.queue = reducer;
|
|
3906
3942
|
reducer = reducer.dispatch = dispatchAction.bind(
|
|
3907
3943
|
null,
|
|
3908
3944
|
currentlyRenderingFiber$1,
|
|
@@ -3951,6 +3987,7 @@ var ContextOnlyDispatcher = {
|
|
|
3951
3987
|
};
|
|
3952
3988
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3953
3989
|
},
|
|
3990
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
3954
3991
|
useOpaqueIdentifier: function() {
|
|
3955
3992
|
throw Error("Not yet implemented");
|
|
3956
3993
|
},
|
|
@@ -3962,6 +3999,7 @@ var ContextOnlyDispatcher = {
|
|
|
3962
3999
|
useContext: readContext,
|
|
3963
4000
|
useEffect: updateEffect,
|
|
3964
4001
|
useImperativeHandle: updateImperativeHandle,
|
|
4002
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3965
4003
|
useLayoutEffect: updateLayoutEffect,
|
|
3966
4004
|
useMemo: updateMemo,
|
|
3967
4005
|
useReducer: updateReducer,
|
|
@@ -3994,6 +4032,46 @@ var ContextOnlyDispatcher = {
|
|
|
3994
4032
|
return [isPending, start];
|
|
3995
4033
|
},
|
|
3996
4034
|
useMutableSource: updateMutableSource,
|
|
4035
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4036
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4037
|
+
hook = updateWorkInProgressHook(),
|
|
4038
|
+
nextSnapshot = getSnapshot(),
|
|
4039
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4040
|
+
snapshotChanged &&
|
|
4041
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4042
|
+
hook = hook.queue;
|
|
4043
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4044
|
+
subscribe
|
|
4045
|
+
]);
|
|
4046
|
+
if (
|
|
4047
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4048
|
+
snapshotChanged ||
|
|
4049
|
+
(null !== workInProgressHook &&
|
|
4050
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4051
|
+
) {
|
|
4052
|
+
fiber.flags |= 1024;
|
|
4053
|
+
pushEffect(
|
|
4054
|
+
9,
|
|
4055
|
+
updateStoreInstance.bind(
|
|
4056
|
+
null,
|
|
4057
|
+
fiber,
|
|
4058
|
+
hook,
|
|
4059
|
+
nextSnapshot,
|
|
4060
|
+
getSnapshot
|
|
4061
|
+
),
|
|
4062
|
+
void 0,
|
|
4063
|
+
null
|
|
4064
|
+
);
|
|
4065
|
+
subscribe = workInProgressRoot;
|
|
4066
|
+
if (null === subscribe)
|
|
4067
|
+
throw Error(
|
|
4068
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4069
|
+
);
|
|
4070
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4071
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4072
|
+
}
|
|
4073
|
+
return nextSnapshot;
|
|
4074
|
+
},
|
|
3997
4075
|
useOpaqueIdentifier: function() {
|
|
3998
4076
|
return updateReducer(basicStateReducer)[0];
|
|
3999
4077
|
},
|
|
@@ -4005,6 +4083,7 @@ var ContextOnlyDispatcher = {
|
|
|
4005
4083
|
useContext: readContext,
|
|
4006
4084
|
useEffect: updateEffect,
|
|
4007
4085
|
useImperativeHandle: updateImperativeHandle,
|
|
4086
|
+
useInsertionEffect: updateInsertionEffect,
|
|
4008
4087
|
useLayoutEffect: updateLayoutEffect,
|
|
4009
4088
|
useMemo: updateMemo,
|
|
4010
4089
|
useReducer: rerenderReducer,
|
|
@@ -4037,162 +4116,626 @@ var ContextOnlyDispatcher = {
|
|
|
4037
4116
|
return [isPending, start];
|
|
4038
4117
|
},
|
|
4039
4118
|
useMutableSource: updateMutableSource,
|
|
4119
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4040
4120
|
useOpaqueIdentifier: function() {
|
|
4041
4121
|
return rerenderReducer(basicStateReducer)[0];
|
|
4042
4122
|
},
|
|
4043
4123
|
unstable_isNewReconciler: !1
|
|
4044
|
-
}
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
: reconcileChildFibers(
|
|
4052
|
-
workInProgress,
|
|
4053
|
-
current.child,
|
|
4054
|
-
nextChildren,
|
|
4055
|
-
renderLanes
|
|
4056
|
-
);
|
|
4124
|
+
};
|
|
4125
|
+
function createCapturedValue(value, source) {
|
|
4126
|
+
return {
|
|
4127
|
+
value: value,
|
|
4128
|
+
source: source,
|
|
4129
|
+
stack: getStackByFiberInDevAndProd(source)
|
|
4130
|
+
};
|
|
4057
4131
|
}
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
) {
|
|
4065
|
-
Component = Component.render;
|
|
4066
|
-
var ref = workInProgress.ref;
|
|
4067
|
-
prepareToReadContext(workInProgress, renderLanes);
|
|
4068
|
-
nextProps = renderWithHooks(
|
|
4069
|
-
current,
|
|
4070
|
-
workInProgress,
|
|
4071
|
-
Component,
|
|
4072
|
-
nextProps,
|
|
4073
|
-
ref,
|
|
4074
|
-
renderLanes
|
|
4132
|
+
if (
|
|
4133
|
+
"function" !==
|
|
4134
|
+
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
|
4135
|
+
)
|
|
4136
|
+
throw Error(
|
|
4137
|
+
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
|
4075
4138
|
);
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
(
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
workInProgress,
|
|
4090
|
-
Component,
|
|
4091
|
-
nextProps,
|
|
4092
|
-
updateLanes,
|
|
4093
|
-
renderLanes
|
|
4094
|
-
) {
|
|
4095
|
-
if (null === current) {
|
|
4096
|
-
var type = Component.type;
|
|
4097
|
-
if (
|
|
4098
|
-
"function" === typeof type &&
|
|
4099
|
-
!shouldConstruct(type) &&
|
|
4100
|
-
void 0 === type.defaultProps &&
|
|
4101
|
-
null === Component.compare &&
|
|
4102
|
-
void 0 === Component.defaultProps
|
|
4103
|
-
)
|
|
4104
|
-
return (
|
|
4105
|
-
(workInProgress.tag = 15),
|
|
4106
|
-
(workInProgress.type = type),
|
|
4107
|
-
updateSimpleMemoComponent(
|
|
4108
|
-
current,
|
|
4109
|
-
workInProgress,
|
|
4110
|
-
type,
|
|
4111
|
-
nextProps,
|
|
4112
|
-
updateLanes,
|
|
4113
|
-
renderLanes
|
|
4114
|
-
)
|
|
4115
|
-
);
|
|
4116
|
-
current = createFiberFromTypeAndProps(
|
|
4117
|
-
Component.type,
|
|
4118
|
-
null,
|
|
4119
|
-
nextProps,
|
|
4120
|
-
workInProgress,
|
|
4121
|
-
workInProgress.mode,
|
|
4122
|
-
renderLanes
|
|
4123
|
-
);
|
|
4124
|
-
current.ref = workInProgress.ref;
|
|
4125
|
-
current.return = workInProgress;
|
|
4126
|
-
return (workInProgress.child = current);
|
|
4139
|
+
function logCapturedError(boundary, errorInfo) {
|
|
4140
|
+
try {
|
|
4141
|
+
!1 !==
|
|
4142
|
+
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
|
4143
|
+
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
|
4144
|
+
error: errorInfo.value,
|
|
4145
|
+
errorBoundary:
|
|
4146
|
+
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
|
4147
|
+
}) && console.error(errorInfo.value);
|
|
4148
|
+
} catch (e) {
|
|
4149
|
+
setTimeout(function() {
|
|
4150
|
+
throw e;
|
|
4151
|
+
});
|
|
4127
4152
|
}
|
|
4128
|
-
type = current.child;
|
|
4129
|
-
if (
|
|
4130
|
-
0 === (updateLanes & renderLanes) &&
|
|
4131
|
-
((updateLanes = type.memoizedProps),
|
|
4132
|
-
(Component = Component.compare),
|
|
4133
|
-
(Component = null !== Component ? Component : shallowEqual),
|
|
4134
|
-
Component(updateLanes, nextProps) && current.ref === workInProgress.ref)
|
|
4135
|
-
)
|
|
4136
|
-
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
4137
|
-
workInProgress.flags |= 1;
|
|
4138
|
-
current = createWorkInProgress(type, nextProps);
|
|
4139
|
-
current.ref = workInProgress.ref;
|
|
4140
|
-
current.return = workInProgress;
|
|
4141
|
-
return (workInProgress.child = current);
|
|
4142
4153
|
}
|
|
4143
|
-
function
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
)
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4154
|
+
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
|
4155
|
+
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
4156
|
+
lane = createUpdate(-1, lane);
|
|
4157
|
+
lane.tag = 3;
|
|
4158
|
+
lane.payload = { element: null };
|
|
4159
|
+
var error = errorInfo.value;
|
|
4160
|
+
lane.callback = function() {
|
|
4161
|
+
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
|
4162
|
+
logCapturedError(fiber, errorInfo);
|
|
4163
|
+
};
|
|
4164
|
+
return lane;
|
|
4165
|
+
}
|
|
4166
|
+
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
4167
|
+
lane = createUpdate(-1, lane);
|
|
4168
|
+
lane.tag = 3;
|
|
4169
|
+
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
4170
|
+
if ("function" === typeof getDerivedStateFromError) {
|
|
4171
|
+
var error = errorInfo.value;
|
|
4172
|
+
lane.payload = function() {
|
|
4173
|
+
return getDerivedStateFromError(error);
|
|
4174
|
+
};
|
|
4175
|
+
lane.callback = function() {
|
|
4176
|
+
logCapturedError(fiber, errorInfo);
|
|
4177
|
+
};
|
|
4163
4178
|
}
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4179
|
+
var inst = fiber.stateNode;
|
|
4180
|
+
null !== inst &&
|
|
4181
|
+
"function" === typeof inst.componentDidCatch &&
|
|
4182
|
+
(lane.callback = function() {
|
|
4183
|
+
logCapturedError(fiber, errorInfo);
|
|
4184
|
+
"function" !== typeof getDerivedStateFromError &&
|
|
4185
|
+
(null === legacyErrorBoundariesThatAlreadyFailed
|
|
4186
|
+
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
|
4187
|
+
: legacyErrorBoundariesThatAlreadyFailed.add(this));
|
|
4188
|
+
var stack = errorInfo.stack;
|
|
4189
|
+
this.componentDidCatch(errorInfo.value, {
|
|
4190
|
+
componentStack: null !== stack ? stack : ""
|
|
4191
|
+
});
|
|
4192
|
+
});
|
|
4193
|
+
return lane;
|
|
4171
4194
|
}
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4195
|
+
var appendAllChildren, updateHostContainer, updateHostComponent, updateHostText;
|
|
4196
|
+
appendAllChildren = function(parent, workInProgress) {
|
|
4197
|
+
for (var node = workInProgress.child; null !== node; ) {
|
|
4198
|
+
if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);
|
|
4199
|
+
else if (4 !== node.tag && null !== node.child) {
|
|
4200
|
+
node.child.return = node;
|
|
4201
|
+
node = node.child;
|
|
4202
|
+
continue;
|
|
4203
|
+
}
|
|
4204
|
+
if (node === workInProgress) break;
|
|
4205
|
+
for (; null === node.sibling; ) {
|
|
4206
|
+
if (null === node.return || node.return === workInProgress) return;
|
|
4207
|
+
node = node.return;
|
|
4208
|
+
}
|
|
4209
|
+
node.sibling.return = node.return;
|
|
4210
|
+
node = node.sibling;
|
|
4211
|
+
}
|
|
4212
|
+
};
|
|
4213
|
+
updateHostContainer = function() {};
|
|
4214
|
+
updateHostComponent = function(current, workInProgress, type, newProps) {
|
|
4215
|
+
current.memoizedProps !== newProps &&
|
|
4216
|
+
(requiredContext(contextStackCursor$1.current),
|
|
4217
|
+
(workInProgress.updateQueue = UPDATE_SIGNAL)) &&
|
|
4218
|
+
(workInProgress.flags |= 4);
|
|
4219
|
+
};
|
|
4220
|
+
updateHostText = function(current, workInProgress, oldText, newText) {
|
|
4221
|
+
oldText !== newText && (workInProgress.flags |= 4);
|
|
4222
|
+
};
|
|
4223
|
+
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
4224
|
+
switch (renderState.tailMode) {
|
|
4225
|
+
case "hidden":
|
|
4226
|
+
hasRenderedATailFallback = renderState.tail;
|
|
4227
|
+
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
4228
|
+
null !== hasRenderedATailFallback.alternate &&
|
|
4229
|
+
(lastTailNode = hasRenderedATailFallback),
|
|
4230
|
+
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
4231
|
+
null === lastTailNode
|
|
4232
|
+
? (renderState.tail = null)
|
|
4233
|
+
: (lastTailNode.sibling = null);
|
|
4234
|
+
break;
|
|
4235
|
+
case "collapsed":
|
|
4236
|
+
lastTailNode = renderState.tail;
|
|
4237
|
+
for (var lastTailNode$38 = null; null !== lastTailNode; )
|
|
4238
|
+
null !== lastTailNode.alternate && (lastTailNode$38 = lastTailNode),
|
|
4239
|
+
(lastTailNode = lastTailNode.sibling);
|
|
4240
|
+
null === lastTailNode$38
|
|
4241
|
+
? hasRenderedATailFallback || null === renderState.tail
|
|
4242
|
+
? (renderState.tail = null)
|
|
4243
|
+
: (renderState.tail.sibling = null)
|
|
4244
|
+
: (lastTailNode$38.sibling = null);
|
|
4245
|
+
}
|
|
4246
|
+
}
|
|
4247
|
+
function bubbleProperties(completedWork) {
|
|
4248
|
+
var didBailout =
|
|
4249
|
+
null !== completedWork.alternate &&
|
|
4250
|
+
completedWork.alternate.child === completedWork.child,
|
|
4251
|
+
newChildLanes = 0,
|
|
4252
|
+
subtreeFlags = 0;
|
|
4253
|
+
if (didBailout)
|
|
4254
|
+
for (var child$39 = completedWork.child; null !== child$39; )
|
|
4255
|
+
(newChildLanes |= child$39.lanes | child$39.childLanes),
|
|
4256
|
+
(subtreeFlags |= child$39.subtreeFlags & 3670016),
|
|
4257
|
+
(subtreeFlags |= child$39.flags & 3670016),
|
|
4258
|
+
(child$39.return = completedWork),
|
|
4259
|
+
(child$39 = child$39.sibling);
|
|
4260
|
+
else
|
|
4261
|
+
for (child$39 = completedWork.child; null !== child$39; )
|
|
4262
|
+
(newChildLanes |= child$39.lanes | child$39.childLanes),
|
|
4263
|
+
(subtreeFlags |= child$39.subtreeFlags),
|
|
4264
|
+
(subtreeFlags |= child$39.flags),
|
|
4265
|
+
(child$39.return = completedWork),
|
|
4266
|
+
(child$39 = child$39.sibling);
|
|
4267
|
+
completedWork.subtreeFlags |= subtreeFlags;
|
|
4268
|
+
completedWork.childLanes = newChildLanes;
|
|
4269
|
+
return didBailout;
|
|
4270
|
+
}
|
|
4271
|
+
function completeWork(current, workInProgress, renderLanes) {
|
|
4272
|
+
var newProps = workInProgress.pendingProps;
|
|
4273
|
+
switch (workInProgress.tag) {
|
|
4274
|
+
case 2:
|
|
4275
|
+
case 16:
|
|
4276
|
+
case 15:
|
|
4277
|
+
case 0:
|
|
4278
|
+
case 11:
|
|
4279
|
+
case 7:
|
|
4280
|
+
case 8:
|
|
4281
|
+
case 12:
|
|
4282
|
+
case 9:
|
|
4283
|
+
case 14:
|
|
4284
|
+
return bubbleProperties(workInProgress), null;
|
|
4285
|
+
case 1:
|
|
4286
|
+
return (
|
|
4287
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
4288
|
+
bubbleProperties(workInProgress),
|
|
4289
|
+
null
|
|
4290
|
+
);
|
|
4291
|
+
case 3:
|
|
4292
|
+
return (
|
|
4293
|
+
(newProps = workInProgress.stateNode),
|
|
4294
|
+
popHostContainer(),
|
|
4295
|
+
pop(didPerformWorkStackCursor),
|
|
4296
|
+
pop(contextStackCursor),
|
|
4297
|
+
resetWorkInProgressVersions(),
|
|
4298
|
+
newProps.pendingContext &&
|
|
4299
|
+
((newProps.context = newProps.pendingContext),
|
|
4300
|
+
(newProps.pendingContext = null)),
|
|
4301
|
+
(null !== current && null !== current.child) ||
|
|
4302
|
+
newProps.hydrate ||
|
|
4303
|
+
(workInProgress.flags |= 512),
|
|
4304
|
+
updateHostContainer(current, workInProgress),
|
|
4305
|
+
bubbleProperties(workInProgress),
|
|
4306
|
+
null
|
|
4307
|
+
);
|
|
4308
|
+
case 5:
|
|
4309
|
+
popHostContext(workInProgress);
|
|
4310
|
+
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
4311
|
+
var type = workInProgress.type;
|
|
4312
|
+
if (null !== current && null != workInProgress.stateNode)
|
|
4313
|
+
updateHostComponent(
|
|
4314
|
+
current,
|
|
4315
|
+
workInProgress,
|
|
4316
|
+
type,
|
|
4317
|
+
newProps,
|
|
4318
|
+
renderLanes
|
|
4319
|
+
),
|
|
4320
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4321
|
+
else {
|
|
4322
|
+
if (!newProps) {
|
|
4323
|
+
if (null === workInProgress.stateNode)
|
|
4324
|
+
throw Error(
|
|
4325
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4326
|
+
);
|
|
4327
|
+
bubbleProperties(workInProgress);
|
|
4328
|
+
return null;
|
|
4329
|
+
}
|
|
4330
|
+
requiredContext(contextStackCursor$1.current);
|
|
4331
|
+
current = allocateTag();
|
|
4332
|
+
type = getViewConfigForType(type);
|
|
4333
|
+
var updatePayload = diffProperties(
|
|
4334
|
+
null,
|
|
4335
|
+
emptyObject,
|
|
4336
|
+
newProps,
|
|
4337
|
+
type.validAttributes
|
|
4338
|
+
);
|
|
4339
|
+
ReactNativePrivateInterface.UIManager.createView(
|
|
4340
|
+
current,
|
|
4341
|
+
type.uiViewClassName,
|
|
4342
|
+
renderLanes,
|
|
4343
|
+
updatePayload
|
|
4344
|
+
);
|
|
4345
|
+
renderLanes = new ReactNativeFiberHostComponent(
|
|
4346
|
+
current,
|
|
4347
|
+
type,
|
|
4348
|
+
workInProgress
|
|
4349
|
+
);
|
|
4350
|
+
instanceCache.set(current, workInProgress);
|
|
4351
|
+
instanceProps.set(current, newProps);
|
|
4352
|
+
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
4353
|
+
workInProgress.stateNode = renderLanes;
|
|
4354
|
+
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
4355
|
+
null !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4356
|
+
}
|
|
4357
|
+
bubbleProperties(workInProgress);
|
|
4358
|
+
return null;
|
|
4359
|
+
case 6:
|
|
4360
|
+
if (current && null != workInProgress.stateNode)
|
|
4361
|
+
updateHostText(
|
|
4362
|
+
current,
|
|
4363
|
+
workInProgress,
|
|
4364
|
+
current.memoizedProps,
|
|
4365
|
+
newProps
|
|
4366
|
+
);
|
|
4367
|
+
else {
|
|
4368
|
+
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
4369
|
+
throw Error(
|
|
4370
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4371
|
+
);
|
|
4372
|
+
current = requiredContext(rootInstanceStackCursor.current);
|
|
4373
|
+
if (!requiredContext(contextStackCursor$1.current).isInAParentText)
|
|
4374
|
+
throw Error(
|
|
4375
|
+
"Text strings must be rendered within a <Text> component."
|
|
4376
|
+
);
|
|
4377
|
+
renderLanes = allocateTag();
|
|
4378
|
+
ReactNativePrivateInterface.UIManager.createView(
|
|
4379
|
+
renderLanes,
|
|
4380
|
+
"RCTRawText",
|
|
4381
|
+
current,
|
|
4382
|
+
{ text: newProps }
|
|
4383
|
+
);
|
|
4384
|
+
instanceCache.set(renderLanes, workInProgress);
|
|
4385
|
+
workInProgress.stateNode = renderLanes;
|
|
4386
|
+
}
|
|
4387
|
+
bubbleProperties(workInProgress);
|
|
4388
|
+
return null;
|
|
4389
|
+
case 13:
|
|
4390
|
+
pop(suspenseStackCursor);
|
|
4391
|
+
newProps = workInProgress.memoizedState;
|
|
4392
|
+
if (0 !== (workInProgress.flags & 128))
|
|
4393
|
+
return (workInProgress.lanes = renderLanes), workInProgress;
|
|
4394
|
+
renderLanes = !1;
|
|
4395
|
+
null !== current && (renderLanes = null !== current.memoizedState);
|
|
4396
|
+
if (
|
|
4397
|
+
null !== newProps &&
|
|
4398
|
+
!renderLanes &&
|
|
4399
|
+
((workInProgress.child.flags |= 4096), 0 !== (workInProgress.mode & 1))
|
|
4400
|
+
)
|
|
4401
|
+
if (
|
|
4402
|
+
(null === current &&
|
|
4403
|
+
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
4404
|
+
0 !== (suspenseStackCursor.current & 1)
|
|
4405
|
+
)
|
|
4406
|
+
0 === workInProgressRootExitStatus &&
|
|
4407
|
+
(workInProgressRootExitStatus = 3);
|
|
4408
|
+
else {
|
|
4409
|
+
if (
|
|
4410
|
+
0 === workInProgressRootExitStatus ||
|
|
4411
|
+
3 === workInProgressRootExitStatus
|
|
4412
|
+
)
|
|
4413
|
+
workInProgressRootExitStatus = 4;
|
|
4414
|
+
null === workInProgressRoot ||
|
|
4415
|
+
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4416
|
+
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
|
|
4417
|
+
markRootSuspended$1(
|
|
4418
|
+
workInProgressRoot,
|
|
4419
|
+
workInProgressRootRenderLanes
|
|
4420
|
+
);
|
|
4421
|
+
}
|
|
4422
|
+
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
|
|
4423
|
+
bubbleProperties(workInProgress);
|
|
4424
|
+
return null;
|
|
4425
|
+
case 4:
|
|
4426
|
+
return (
|
|
4427
|
+
popHostContainer(),
|
|
4428
|
+
updateHostContainer(current, workInProgress),
|
|
4429
|
+
bubbleProperties(workInProgress),
|
|
4430
|
+
null
|
|
4431
|
+
);
|
|
4432
|
+
case 10:
|
|
4433
|
+
return (
|
|
4434
|
+
popProvider(workInProgress.type._context),
|
|
4435
|
+
bubbleProperties(workInProgress),
|
|
4436
|
+
null
|
|
4437
|
+
);
|
|
4438
|
+
case 17:
|
|
4439
|
+
return (
|
|
4440
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
4441
|
+
bubbleProperties(workInProgress),
|
|
4442
|
+
null
|
|
4443
|
+
);
|
|
4444
|
+
case 19:
|
|
4445
|
+
pop(suspenseStackCursor);
|
|
4446
|
+
type = workInProgress.memoizedState;
|
|
4447
|
+
if (null === type) return bubbleProperties(workInProgress), null;
|
|
4448
|
+
newProps = 0 !== (workInProgress.flags & 128);
|
|
4449
|
+
updatePayload = type.rendering;
|
|
4450
|
+
if (null === updatePayload)
|
|
4451
|
+
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
4452
|
+
else {
|
|
4453
|
+
if (
|
|
4454
|
+
0 !== workInProgressRootExitStatus ||
|
|
4455
|
+
(null !== current && 0 !== (current.flags & 128))
|
|
4456
|
+
)
|
|
4457
|
+
for (current = workInProgress.child; null !== current; ) {
|
|
4458
|
+
updatePayload = findFirstSuspended(current);
|
|
4459
|
+
if (null !== updatePayload) {
|
|
4460
|
+
workInProgress.flags |= 128;
|
|
4461
|
+
cutOffTailIfNeeded(type, !1);
|
|
4462
|
+
current = updatePayload.updateQueue;
|
|
4463
|
+
null !== current &&
|
|
4464
|
+
((workInProgress.updateQueue = current),
|
|
4465
|
+
(workInProgress.flags |= 4));
|
|
4466
|
+
workInProgress.subtreeFlags = 0;
|
|
4467
|
+
current = renderLanes;
|
|
4468
|
+
for (newProps = workInProgress.child; null !== newProps; )
|
|
4469
|
+
(renderLanes = newProps),
|
|
4470
|
+
(type = current),
|
|
4471
|
+
(renderLanes.flags &= 3670018),
|
|
4472
|
+
(updatePayload = renderLanes.alternate),
|
|
4473
|
+
null === updatePayload
|
|
4474
|
+
? ((renderLanes.childLanes = 0),
|
|
4475
|
+
(renderLanes.lanes = type),
|
|
4476
|
+
(renderLanes.child = null),
|
|
4477
|
+
(renderLanes.subtreeFlags = 0),
|
|
4478
|
+
(renderLanes.memoizedProps = null),
|
|
4479
|
+
(renderLanes.memoizedState = null),
|
|
4480
|
+
(renderLanes.updateQueue = null),
|
|
4481
|
+
(renderLanes.dependencies = null),
|
|
4482
|
+
(renderLanes.stateNode = null))
|
|
4483
|
+
: ((renderLanes.childLanes = updatePayload.childLanes),
|
|
4484
|
+
(renderLanes.lanes = updatePayload.lanes),
|
|
4485
|
+
(renderLanes.child = updatePayload.child),
|
|
4486
|
+
(renderLanes.subtreeFlags = 0),
|
|
4487
|
+
(renderLanes.deletions = null),
|
|
4488
|
+
(renderLanes.memoizedProps =
|
|
4489
|
+
updatePayload.memoizedProps),
|
|
4490
|
+
(renderLanes.memoizedState =
|
|
4491
|
+
updatePayload.memoizedState),
|
|
4492
|
+
(renderLanes.updateQueue = updatePayload.updateQueue),
|
|
4493
|
+
(renderLanes.type = updatePayload.type),
|
|
4494
|
+
(type = updatePayload.dependencies),
|
|
4495
|
+
(renderLanes.dependencies =
|
|
4496
|
+
null === type
|
|
4497
|
+
? null
|
|
4498
|
+
: {
|
|
4499
|
+
lanes: type.lanes,
|
|
4500
|
+
firstContext: type.firstContext
|
|
4501
|
+
})),
|
|
4502
|
+
(newProps = newProps.sibling);
|
|
4503
|
+
push(
|
|
4504
|
+
suspenseStackCursor,
|
|
4505
|
+
(suspenseStackCursor.current & 1) | 2
|
|
4506
|
+
);
|
|
4507
|
+
return workInProgress.child;
|
|
4508
|
+
}
|
|
4509
|
+
current = current.sibling;
|
|
4510
|
+
}
|
|
4511
|
+
null !== type.tail &&
|
|
4512
|
+
now() > workInProgressRootRenderTargetTime &&
|
|
4513
|
+
((workInProgress.flags |= 128),
|
|
4514
|
+
(newProps = !0),
|
|
4515
|
+
cutOffTailIfNeeded(type, !1),
|
|
4516
|
+
(workInProgress.lanes = 4194304));
|
|
4517
|
+
}
|
|
4518
|
+
else {
|
|
4519
|
+
if (!newProps)
|
|
4520
|
+
if (
|
|
4521
|
+
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
4522
|
+
) {
|
|
4523
|
+
if (
|
|
4524
|
+
((workInProgress.flags |= 128),
|
|
4525
|
+
(newProps = !0),
|
|
4526
|
+
(current = current.updateQueue),
|
|
4527
|
+
null !== current &&
|
|
4528
|
+
((workInProgress.updateQueue = current),
|
|
4529
|
+
(workInProgress.flags |= 4)),
|
|
4530
|
+
cutOffTailIfNeeded(type, !0),
|
|
4531
|
+
null === type.tail &&
|
|
4532
|
+
"hidden" === type.tailMode &&
|
|
4533
|
+
!updatePayload.alternate)
|
|
4534
|
+
)
|
|
4535
|
+
return bubbleProperties(workInProgress), null;
|
|
4536
|
+
} else
|
|
4537
|
+
2 * now() - type.renderingStartTime >
|
|
4538
|
+
workInProgressRootRenderTargetTime &&
|
|
4539
|
+
1073741824 !== renderLanes &&
|
|
4540
|
+
((workInProgress.flags |= 128),
|
|
4541
|
+
(newProps = !0),
|
|
4542
|
+
cutOffTailIfNeeded(type, !1),
|
|
4543
|
+
(workInProgress.lanes = 4194304));
|
|
4544
|
+
type.isBackwards
|
|
4545
|
+
? ((updatePayload.sibling = workInProgress.child),
|
|
4546
|
+
(workInProgress.child = updatePayload))
|
|
4547
|
+
: ((current = type.last),
|
|
4548
|
+
null !== current
|
|
4549
|
+
? (current.sibling = updatePayload)
|
|
4550
|
+
: (workInProgress.child = updatePayload),
|
|
4551
|
+
(type.last = updatePayload));
|
|
4552
|
+
}
|
|
4553
|
+
if (null !== type.tail)
|
|
4554
|
+
return (
|
|
4555
|
+
(workInProgress = type.tail),
|
|
4556
|
+
(type.rendering = workInProgress),
|
|
4557
|
+
(type.tail = workInProgress.sibling),
|
|
4558
|
+
(type.renderingStartTime = now()),
|
|
4559
|
+
(workInProgress.sibling = null),
|
|
4560
|
+
(current = suspenseStackCursor.current),
|
|
4561
|
+
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
4562
|
+
workInProgress
|
|
4563
|
+
);
|
|
4564
|
+
bubbleProperties(workInProgress);
|
|
4565
|
+
return null;
|
|
4566
|
+
case 22:
|
|
4567
|
+
case 23:
|
|
4568
|
+
return (
|
|
4569
|
+
popRenderLanes(),
|
|
4570
|
+
(renderLanes = null !== workInProgress.memoizedState),
|
|
4571
|
+
null !== current &&
|
|
4572
|
+
(null !== current.memoizedState) !== renderLanes &&
|
|
4573
|
+
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4574
|
+
23 !== workInProgress.tag &&
|
|
4575
|
+
(workInProgress.flags |= 4096),
|
|
4576
|
+
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4577
|
+
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4578
|
+
(bubbleProperties(workInProgress),
|
|
4579
|
+
23 !== workInProgress.tag &&
|
|
4580
|
+
workInProgress.subtreeFlags & 6 &&
|
|
4581
|
+
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4582
|
+
(workInProgress.flags |= 4096))
|
|
4583
|
+
: bubbleProperties(workInProgress),
|
|
4584
|
+
null
|
|
4585
|
+
);
|
|
4586
|
+
}
|
|
4587
|
+
throw Error(
|
|
4588
|
+
"Unknown unit of work tag (" +
|
|
4589
|
+
workInProgress.tag +
|
|
4590
|
+
"). This error is likely caused by a bug in React. Please file an issue."
|
|
4591
|
+
);
|
|
4592
|
+
}
|
|
4593
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
|
4594
|
+
didReceiveUpdate = !1;
|
|
4595
|
+
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
|
4596
|
+
workInProgress.child =
|
|
4597
|
+
null === current
|
|
4598
|
+
? mountChildFibers(workInProgress, null, nextChildren, renderLanes)
|
|
4599
|
+
: reconcileChildFibers(
|
|
4600
|
+
workInProgress,
|
|
4601
|
+
current.child,
|
|
4602
|
+
nextChildren,
|
|
4603
|
+
renderLanes
|
|
4604
|
+
);
|
|
4605
|
+
}
|
|
4606
|
+
function updateForwardRef(
|
|
4607
|
+
current,
|
|
4608
|
+
workInProgress,
|
|
4609
|
+
Component,
|
|
4610
|
+
nextProps,
|
|
4611
|
+
renderLanes
|
|
4612
|
+
) {
|
|
4613
|
+
Component = Component.render;
|
|
4614
|
+
var ref = workInProgress.ref;
|
|
4615
|
+
prepareToReadContext(workInProgress, renderLanes);
|
|
4616
|
+
nextProps = renderWithHooks(
|
|
4617
|
+
current,
|
|
4618
|
+
workInProgress,
|
|
4619
|
+
Component,
|
|
4620
|
+
nextProps,
|
|
4621
|
+
ref,
|
|
4622
|
+
renderLanes
|
|
4623
|
+
);
|
|
4624
|
+
if (null !== current && !didReceiveUpdate)
|
|
4625
|
+
return (
|
|
4626
|
+
(workInProgress.updateQueue = current.updateQueue),
|
|
4627
|
+
(workInProgress.flags &= -1029),
|
|
4628
|
+
(current.lanes &= ~renderLanes),
|
|
4629
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4630
|
+
);
|
|
4631
|
+
workInProgress.flags |= 1;
|
|
4632
|
+
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
4633
|
+
return workInProgress.child;
|
|
4634
|
+
}
|
|
4635
|
+
function updateMemoComponent(
|
|
4636
|
+
current,
|
|
4637
|
+
workInProgress,
|
|
4638
|
+
Component,
|
|
4639
|
+
nextProps,
|
|
4640
|
+
renderLanes
|
|
4641
|
+
) {
|
|
4642
|
+
if (null === current) {
|
|
4643
|
+
var type = Component.type;
|
|
4644
|
+
if (
|
|
4645
|
+
"function" === typeof type &&
|
|
4646
|
+
!shouldConstruct(type) &&
|
|
4647
|
+
void 0 === type.defaultProps &&
|
|
4648
|
+
null === Component.compare &&
|
|
4649
|
+
void 0 === Component.defaultProps
|
|
4650
|
+
)
|
|
4651
|
+
return (
|
|
4652
|
+
(workInProgress.tag = 15),
|
|
4653
|
+
(workInProgress.type = type),
|
|
4654
|
+
updateSimpleMemoComponent(
|
|
4655
|
+
current,
|
|
4656
|
+
workInProgress,
|
|
4657
|
+
type,
|
|
4658
|
+
nextProps,
|
|
4659
|
+
renderLanes
|
|
4660
|
+
)
|
|
4661
|
+
);
|
|
4662
|
+
current = createFiberFromTypeAndProps(
|
|
4663
|
+
Component.type,
|
|
4664
|
+
null,
|
|
4665
|
+
nextProps,
|
|
4666
|
+
workInProgress,
|
|
4667
|
+
workInProgress.mode,
|
|
4668
|
+
renderLanes
|
|
4669
|
+
);
|
|
4670
|
+
current.ref = workInProgress.ref;
|
|
4671
|
+
current.return = workInProgress;
|
|
4672
|
+
return (workInProgress.child = current);
|
|
4673
|
+
}
|
|
4674
|
+
type = current.child;
|
|
4675
|
+
if (0 === (current.lanes & renderLanes)) {
|
|
4676
|
+
var prevProps = type.memoizedProps;
|
|
4677
|
+
Component = Component.compare;
|
|
4678
|
+
Component = null !== Component ? Component : shallowEqual;
|
|
4679
|
+
if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)
|
|
4680
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
4681
|
+
}
|
|
4682
|
+
workInProgress.flags |= 1;
|
|
4683
|
+
current = createWorkInProgress(type, nextProps);
|
|
4684
|
+
current.ref = workInProgress.ref;
|
|
4685
|
+
current.return = workInProgress;
|
|
4686
|
+
return (workInProgress.child = current);
|
|
4687
|
+
}
|
|
4688
|
+
function updateSimpleMemoComponent(
|
|
4689
|
+
current,
|
|
4690
|
+
workInProgress,
|
|
4691
|
+
Component,
|
|
4692
|
+
nextProps,
|
|
4693
|
+
renderLanes
|
|
4694
|
+
) {
|
|
4695
|
+
if (
|
|
4696
|
+
null !== current &&
|
|
4697
|
+
shallowEqual(current.memoizedProps, nextProps) &&
|
|
4698
|
+
current.ref === workInProgress.ref
|
|
4699
|
+
)
|
|
4700
|
+
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4701
|
+
0 !== (current.flags & 65536) && (didReceiveUpdate = !0);
|
|
4702
|
+
else
|
|
4703
|
+
return (
|
|
4704
|
+
(workInProgress.lanes = current.lanes),
|
|
4705
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4706
|
+
);
|
|
4707
|
+
return updateFunctionComponent(
|
|
4708
|
+
current,
|
|
4709
|
+
workInProgress,
|
|
4710
|
+
Component,
|
|
4711
|
+
nextProps,
|
|
4712
|
+
renderLanes
|
|
4713
|
+
);
|
|
4714
|
+
}
|
|
4715
|
+
function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
4716
|
+
var nextProps = workInProgress.pendingProps,
|
|
4717
|
+
nextChildren = nextProps.children,
|
|
4718
|
+
prevState = null !== current ? current.memoizedState : null;
|
|
4719
|
+
if (
|
|
4720
|
+
"hidden" === nextProps.mode ||
|
|
4721
|
+
"unstable-defer-without-hiding" === nextProps.mode
|
|
4722
|
+
)
|
|
4723
|
+
if (0 === (workInProgress.mode & 1))
|
|
4724
|
+
(workInProgress.memoizedState = { baseLanes: 0, cachePool: null }),
|
|
4725
|
+
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
4726
|
+
(subtreeRenderLanes |= renderLanes);
|
|
4727
|
+
else {
|
|
4728
|
+
if (0 === (renderLanes & 1073741824))
|
|
4729
|
+
return (
|
|
4730
|
+
(current =
|
|
4731
|
+
null !== prevState
|
|
4732
|
+
? prevState.baseLanes | renderLanes
|
|
4733
|
+
: renderLanes),
|
|
4734
|
+
(workInProgress.lanes = workInProgress.childLanes = 1073741824),
|
|
4735
|
+
(workInProgress.memoizedState = {
|
|
4736
|
+
baseLanes: current,
|
|
4737
|
+
cachePool: null
|
|
4738
|
+
}),
|
|
4196
4739
|
(workInProgress.updateQueue = null),
|
|
4197
4740
|
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
4198
4741
|
(subtreeRenderLanes |= current),
|
|
@@ -4213,7 +4756,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
|
4213
4756
|
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
4214
4757
|
return workInProgress.child;
|
|
4215
4758
|
}
|
|
4216
|
-
function markRef(current, workInProgress) {
|
|
4759
|
+
function markRef$1(current, workInProgress) {
|
|
4217
4760
|
var ref = workInProgress.ref;
|
|
4218
4761
|
if (
|
|
4219
4762
|
(null === current && null !== ref) ||
|
|
@@ -4462,7 +5005,7 @@ function finishClassComponent(
|
|
|
4462
5005
|
hasContext,
|
|
4463
5006
|
renderLanes
|
|
4464
5007
|
) {
|
|
4465
|
-
markRef(current, workInProgress);
|
|
5008
|
+
markRef$1(current, workInProgress);
|
|
4466
5009
|
var didCaptureError = 0 !== (workInProgress.flags & 128);
|
|
4467
5010
|
if (!shouldUpdate && !didCaptureError)
|
|
4468
5011
|
return (
|
|
@@ -4523,7 +5066,6 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
4523
5066
|
JSCompiler_temp
|
|
4524
5067
|
? ((showFallback = !0), (workInProgress.flags &= -129))
|
|
4525
5068
|
: (null !== current && null === current.memoizedState) ||
|
|
4526
|
-
void 0 === nextProps.fallback ||
|
|
4527
5069
|
!0 === nextProps.unstable_avoidThisFallback ||
|
|
4528
5070
|
(suspenseContext |= 1);
|
|
4529
5071
|
push(suspenseStackCursor, suspenseContext & 1);
|
|
@@ -4562,7 +5104,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
4562
5104
|
renderLanes = createFiberFromOffscreen(
|
|
4563
5105
|
{ mode: "visible", children: current },
|
|
4564
5106
|
workInProgress.mode,
|
|
4565
|
-
|
|
5107
|
+
0,
|
|
4566
5108
|
null
|
|
4567
5109
|
);
|
|
4568
5110
|
renderLanes.return = workInProgress;
|
|
@@ -4700,7 +5242,7 @@ function updateSuspenseFallbackChildren(
|
|
|
4700
5242
|
(primaryChildren.pendingProps = primaryChildProps),
|
|
4701
5243
|
(workInProgress.deletions = null))
|
|
4702
5244
|
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
|
|
4703
|
-
(primaryChildren.subtreeFlags = current.subtreeFlags &
|
|
5245
|
+
(primaryChildren.subtreeFlags = current.subtreeFlags & 3670016));
|
|
4704
5246
|
null !== currentFallbackChildFragment
|
|
4705
5247
|
? (fallbackChildren = createWorkInProgress(
|
|
4706
5248
|
currentFallbackChildFragment,
|
|
@@ -4837,425 +5379,99 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
|
4837
5379
|
}
|
|
4838
5380
|
function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
|
|
4839
5381
|
null !== current && (workInProgress.dependencies = current.dependencies);
|
|
4840
|
-
workInProgressRootSkippedLanes |= workInProgress.lanes;
|
|
4841
|
-
if (0 === (renderLanes & workInProgress.childLanes)) return null;
|
|
4842
|
-
if (null !== current && workInProgress.child !== current.child)
|
|
4843
|
-
throw Error("Resuming work not yet implemented.");
|
|
4844
|
-
if (null !== workInProgress.child) {
|
|
4845
|
-
current = workInProgress.child;
|
|
4846
|
-
renderLanes = createWorkInProgress(current, current.pendingProps);
|
|
4847
|
-
workInProgress.child = renderLanes;
|
|
4848
|
-
for (renderLanes.return = workInProgress; null !== current.sibling; )
|
|
4849
|
-
(current = current.sibling),
|
|
4850
|
-
(renderLanes = renderLanes.sibling = createWorkInProgress(
|
|
4851
|
-
current,
|
|
4852
|
-
current.pendingProps
|
|
4853
|
-
)),
|
|
4854
|
-
(renderLanes.return = workInProgress);
|
|
4855
|
-
renderLanes.sibling = null;
|
|
4856
|
-
}
|
|
4857
|
-
return workInProgress.child;
|
|
4858
|
-
}
|
|
4859
|
-
var appendAllChildren,
|
|
4860
|
-
updateHostContainer,
|
|
4861
|
-
updateHostComponent$1,
|
|
4862
|
-
updateHostText$1;
|
|
4863
|
-
appendAllChildren = function(parent, workInProgress) {
|
|
4864
|
-
for (var node = workInProgress.child; null !== node; ) {
|
|
4865
|
-
if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);
|
|
4866
|
-
else if (4 !== node.tag && null !== node.child) {
|
|
4867
|
-
node.child.return = node;
|
|
4868
|
-
node = node.child;
|
|
4869
|
-
continue;
|
|
4870
|
-
}
|
|
4871
|
-
if (node === workInProgress) break;
|
|
4872
|
-
for (; null === node.sibling; ) {
|
|
4873
|
-
if (null === node.return || node.return === workInProgress) return;
|
|
4874
|
-
node = node.return;
|
|
4875
|
-
}
|
|
4876
|
-
node.sibling.return = node.return;
|
|
4877
|
-
node = node.sibling;
|
|
4878
|
-
}
|
|
4879
|
-
};
|
|
4880
|
-
updateHostContainer = function() {};
|
|
4881
|
-
updateHostComponent$1 = function(current, workInProgress, type, newProps) {
|
|
4882
|
-
current.memoizedProps !== newProps &&
|
|
4883
|
-
(requiredContext(contextStackCursor$1.current),
|
|
4884
|
-
(workInProgress.updateQueue = UPDATE_SIGNAL)) &&
|
|
4885
|
-
(workInProgress.flags |= 4);
|
|
4886
|
-
};
|
|
4887
|
-
updateHostText$1 = function(current, workInProgress, oldText, newText) {
|
|
4888
|
-
oldText !== newText && (workInProgress.flags |= 4);
|
|
4889
|
-
};
|
|
4890
|
-
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
4891
|
-
switch (renderState.tailMode) {
|
|
4892
|
-
case "hidden":
|
|
4893
|
-
hasRenderedATailFallback = renderState.tail;
|
|
4894
|
-
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
4895
|
-
null !== hasRenderedATailFallback.alternate &&
|
|
4896
|
-
(lastTailNode = hasRenderedATailFallback),
|
|
4897
|
-
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
4898
|
-
null === lastTailNode
|
|
4899
|
-
? (renderState.tail = null)
|
|
4900
|
-
: (lastTailNode.sibling = null);
|
|
4901
|
-
break;
|
|
4902
|
-
case "collapsed":
|
|
4903
|
-
lastTailNode = renderState.tail;
|
|
4904
|
-
for (var lastTailNode$64 = null; null !== lastTailNode; )
|
|
4905
|
-
null !== lastTailNode.alternate && (lastTailNode$64 = lastTailNode),
|
|
4906
|
-
(lastTailNode = lastTailNode.sibling);
|
|
4907
|
-
null === lastTailNode$64
|
|
4908
|
-
? hasRenderedATailFallback || null === renderState.tail
|
|
4909
|
-
? (renderState.tail = null)
|
|
4910
|
-
: (renderState.tail.sibling = null)
|
|
4911
|
-
: (lastTailNode$64.sibling = null);
|
|
4912
|
-
}
|
|
4913
|
-
}
|
|
4914
|
-
function bubbleProperties(completedWork) {
|
|
4915
|
-
var didBailout =
|
|
4916
|
-
null !== completedWork.alternate &&
|
|
4917
|
-
completedWork.alternate.child === completedWork.child,
|
|
4918
|
-
newChildLanes = 0,
|
|
4919
|
-
subtreeFlags = 0;
|
|
4920
|
-
if (didBailout)
|
|
4921
|
-
for (var child$65 = completedWork.child; null !== child$65; )
|
|
4922
|
-
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
|
4923
|
-
(subtreeFlags |= child$65.subtreeFlags & 1835008),
|
|
4924
|
-
(subtreeFlags |= child$65.flags & 1835008),
|
|
4925
|
-
(child$65.return = completedWork),
|
|
4926
|
-
(child$65 = child$65.sibling);
|
|
4927
|
-
else
|
|
4928
|
-
for (child$65 = completedWork.child; null !== child$65; )
|
|
4929
|
-
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
|
4930
|
-
(subtreeFlags |= child$65.subtreeFlags),
|
|
4931
|
-
(subtreeFlags |= child$65.flags),
|
|
4932
|
-
(child$65.return = completedWork),
|
|
4933
|
-
(child$65 = child$65.sibling);
|
|
4934
|
-
completedWork.subtreeFlags |= subtreeFlags;
|
|
4935
|
-
completedWork.childLanes = newChildLanes;
|
|
4936
|
-
return didBailout;
|
|
4937
|
-
}
|
|
4938
|
-
function completeWork(current, workInProgress, renderLanes) {
|
|
4939
|
-
var newProps = workInProgress.pendingProps;
|
|
4940
|
-
switch (workInProgress.tag) {
|
|
4941
|
-
case 2:
|
|
4942
|
-
case 16:
|
|
4943
|
-
case 15:
|
|
4944
|
-
case 0:
|
|
4945
|
-
case 11:
|
|
4946
|
-
case 7:
|
|
4947
|
-
case 8:
|
|
4948
|
-
case 12:
|
|
4949
|
-
case 9:
|
|
4950
|
-
case 14:
|
|
4951
|
-
return bubbleProperties(workInProgress), null;
|
|
4952
|
-
case 1:
|
|
4953
|
-
return (
|
|
4954
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
4955
|
-
bubbleProperties(workInProgress),
|
|
4956
|
-
null
|
|
4957
|
-
);
|
|
4958
|
-
case 3:
|
|
4959
|
-
return (
|
|
4960
|
-
(newProps = workInProgress.stateNode),
|
|
4961
|
-
popHostContainer(),
|
|
4962
|
-
pop(didPerformWorkStackCursor),
|
|
4963
|
-
pop(contextStackCursor),
|
|
4964
|
-
resetWorkInProgressVersions(),
|
|
4965
|
-
newProps.pendingContext &&
|
|
4966
|
-
((newProps.context = newProps.pendingContext),
|
|
4967
|
-
(newProps.pendingContext = null)),
|
|
4968
|
-
(null !== current && null !== current.child) ||
|
|
4969
|
-
newProps.hydrate ||
|
|
4970
|
-
(workInProgress.flags |= 512),
|
|
4971
|
-
updateHostContainer(current, workInProgress),
|
|
4972
|
-
bubbleProperties(workInProgress),
|
|
4973
|
-
null
|
|
4974
|
-
);
|
|
4975
|
-
case 5:
|
|
4976
|
-
popHostContext(workInProgress);
|
|
4977
|
-
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
4978
|
-
var type = workInProgress.type;
|
|
4979
|
-
if (null !== current && null != workInProgress.stateNode)
|
|
4980
|
-
updateHostComponent$1(
|
|
4981
|
-
current,
|
|
4982
|
-
workInProgress,
|
|
4983
|
-
type,
|
|
4984
|
-
newProps,
|
|
4985
|
-
renderLanes
|
|
4986
|
-
),
|
|
4987
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4988
|
-
else {
|
|
4989
|
-
if (!newProps) {
|
|
4990
|
-
if (null === workInProgress.stateNode)
|
|
4991
|
-
throw Error(
|
|
4992
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4993
|
-
);
|
|
4994
|
-
bubbleProperties(workInProgress);
|
|
4995
|
-
return null;
|
|
4996
|
-
}
|
|
4997
|
-
requiredContext(contextStackCursor$1.current);
|
|
4998
|
-
current = allocateTag();
|
|
4999
|
-
type = getViewConfigForType(type);
|
|
5000
|
-
var updatePayload = diffProperties(
|
|
5001
|
-
null,
|
|
5002
|
-
emptyObject,
|
|
5003
|
-
newProps,
|
|
5004
|
-
type.validAttributes
|
|
5005
|
-
);
|
|
5006
|
-
ReactNativePrivateInterface.UIManager.createView(
|
|
5007
|
-
current,
|
|
5008
|
-
type.uiViewClassName,
|
|
5009
|
-
renderLanes,
|
|
5010
|
-
updatePayload
|
|
5011
|
-
);
|
|
5012
|
-
renderLanes = new ReactNativeFiberHostComponent(
|
|
5382
|
+
workInProgressRootSkippedLanes |= workInProgress.lanes;
|
|
5383
|
+
if (0 === (renderLanes & workInProgress.childLanes)) return null;
|
|
5384
|
+
if (null !== current && workInProgress.child !== current.child)
|
|
5385
|
+
throw Error("Resuming work not yet implemented.");
|
|
5386
|
+
if (null !== workInProgress.child) {
|
|
5387
|
+
current = workInProgress.child;
|
|
5388
|
+
renderLanes = createWorkInProgress(current, current.pendingProps);
|
|
5389
|
+
workInProgress.child = renderLanes;
|
|
5390
|
+
for (renderLanes.return = workInProgress; null !== current.sibling; )
|
|
5391
|
+
(current = current.sibling),
|
|
5392
|
+
(renderLanes = renderLanes.sibling = createWorkInProgress(
|
|
5013
5393
|
current,
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
);
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5394
|
+
current.pendingProps
|
|
5395
|
+
)),
|
|
5396
|
+
(renderLanes.return = workInProgress);
|
|
5397
|
+
renderLanes.sibling = null;
|
|
5398
|
+
}
|
|
5399
|
+
return workInProgress.child;
|
|
5400
|
+
}
|
|
5401
|
+
function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
5402
|
+
current,
|
|
5403
|
+
workInProgress,
|
|
5404
|
+
renderLanes
|
|
5405
|
+
) {
|
|
5406
|
+
switch (workInProgress.tag) {
|
|
5407
|
+
case 3:
|
|
5408
|
+
pushHostRootContext(workInProgress);
|
|
5409
|
+
break;
|
|
5410
|
+
case 5:
|
|
5411
|
+
pushHostContext(workInProgress);
|
|
5412
|
+
break;
|
|
5413
|
+
case 1:
|
|
5414
|
+
isContextProvider(workInProgress.type) &&
|
|
5415
|
+
pushContextProvider(workInProgress);
|
|
5416
|
+
break;
|
|
5417
|
+
case 4:
|
|
5418
|
+
pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
|
|
5419
|
+
break;
|
|
5420
|
+
case 10:
|
|
5421
|
+
var context = workInProgress.type._context,
|
|
5422
|
+
nextValue = workInProgress.memoizedProps.value;
|
|
5423
|
+
push(valueCursor, context._currentValue);
|
|
5424
|
+
context._currentValue = nextValue;
|
|
5425
|
+
break;
|
|
5426
|
+
case 13:
|
|
5427
|
+
if (null !== workInProgress.memoizedState) {
|
|
5428
|
+
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
5429
|
+
return updateSuspenseComponent(current, workInProgress, renderLanes);
|
|
5430
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5431
|
+
current = bailoutOnAlreadyFinishedWork(
|
|
5029
5432
|
current,
|
|
5030
5433
|
workInProgress,
|
|
5031
|
-
|
|
5032
|
-
newProps
|
|
5033
|
-
);
|
|
5034
|
-
else {
|
|
5035
|
-
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
5036
|
-
throw Error(
|
|
5037
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
5038
|
-
);
|
|
5039
|
-
current = requiredContext(rootInstanceStackCursor.current);
|
|
5040
|
-
if (!requiredContext(contextStackCursor$1.current).isInAParentText)
|
|
5041
|
-
throw Error(
|
|
5042
|
-
"Text strings must be rendered within a <Text> component."
|
|
5043
|
-
);
|
|
5044
|
-
renderLanes = allocateTag();
|
|
5045
|
-
ReactNativePrivateInterface.UIManager.createView(
|
|
5046
|
-
renderLanes,
|
|
5047
|
-
"RCTRawText",
|
|
5048
|
-
current,
|
|
5049
|
-
{ text: newProps }
|
|
5434
|
+
renderLanes
|
|
5050
5435
|
);
|
|
5051
|
-
|
|
5052
|
-
workInProgress.stateNode = renderLanes;
|
|
5436
|
+
return null !== current ? current.sibling : null;
|
|
5053
5437
|
}
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
case 13:
|
|
5057
|
-
pop(suspenseStackCursor);
|
|
5058
|
-
newProps = workInProgress.memoizedState;
|
|
5059
|
-
if (0 !== (workInProgress.flags & 128))
|
|
5060
|
-
return (workInProgress.lanes = renderLanes), workInProgress;
|
|
5061
|
-
newProps = null !== newProps;
|
|
5062
|
-
renderLanes = !1;
|
|
5063
|
-
null !== current && (renderLanes = null !== current.memoizedState);
|
|
5064
|
-
if (newProps && !renderLanes && 0 !== (workInProgress.mode & 1))
|
|
5065
|
-
if (
|
|
5066
|
-
(null === current &&
|
|
5067
|
-
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
5068
|
-
0 !== (suspenseStackCursor.current & 1)
|
|
5069
|
-
)
|
|
5070
|
-
0 === workInProgressRootExitStatus &&
|
|
5071
|
-
(workInProgressRootExitStatus = 3);
|
|
5072
|
-
else {
|
|
5073
|
-
if (
|
|
5074
|
-
0 === workInProgressRootExitStatus ||
|
|
5075
|
-
3 === workInProgressRootExitStatus
|
|
5076
|
-
)
|
|
5077
|
-
workInProgressRootExitStatus = 4;
|
|
5078
|
-
null === workInProgressRoot ||
|
|
5079
|
-
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
5080
|
-
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
|
|
5081
|
-
markRootSuspended$1(
|
|
5082
|
-
workInProgressRoot,
|
|
5083
|
-
workInProgressRootRenderLanes
|
|
5084
|
-
);
|
|
5085
|
-
}
|
|
5086
|
-
if (newProps || renderLanes) workInProgress.flags |= 4;
|
|
5087
|
-
bubbleProperties(workInProgress);
|
|
5088
|
-
return null;
|
|
5089
|
-
case 4:
|
|
5090
|
-
return (
|
|
5091
|
-
popHostContainer(),
|
|
5092
|
-
updateHostContainer(current, workInProgress),
|
|
5093
|
-
bubbleProperties(workInProgress),
|
|
5094
|
-
null
|
|
5095
|
-
);
|
|
5096
|
-
case 10:
|
|
5097
|
-
return (
|
|
5098
|
-
popProvider(workInProgress.type._context),
|
|
5099
|
-
bubbleProperties(workInProgress),
|
|
5100
|
-
null
|
|
5101
|
-
);
|
|
5102
|
-
case 17:
|
|
5103
|
-
return (
|
|
5104
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
5105
|
-
bubbleProperties(workInProgress),
|
|
5106
|
-
null
|
|
5107
|
-
);
|
|
5438
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5439
|
+
break;
|
|
5108
5440
|
case 19:
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
0 !== workInProgressRootExitStatus ||
|
|
5119
|
-
(null !== current && 0 !== (current.flags & 128))
|
|
5120
|
-
)
|
|
5121
|
-
for (current = workInProgress.child; null !== current; ) {
|
|
5122
|
-
updatePayload = findFirstSuspended(current);
|
|
5123
|
-
if (null !== updatePayload) {
|
|
5124
|
-
workInProgress.flags |= 128;
|
|
5125
|
-
cutOffTailIfNeeded(type, !1);
|
|
5126
|
-
current = updatePayload.updateQueue;
|
|
5127
|
-
null !== current &&
|
|
5128
|
-
((workInProgress.updateQueue = current),
|
|
5129
|
-
(workInProgress.flags |= 4));
|
|
5130
|
-
workInProgress.subtreeFlags = 0;
|
|
5131
|
-
current = renderLanes;
|
|
5132
|
-
for (newProps = workInProgress.child; null !== newProps; )
|
|
5133
|
-
(renderLanes = newProps),
|
|
5134
|
-
(type = current),
|
|
5135
|
-
(renderLanes.flags &= 1835010),
|
|
5136
|
-
(updatePayload = renderLanes.alternate),
|
|
5137
|
-
null === updatePayload
|
|
5138
|
-
? ((renderLanes.childLanes = 0),
|
|
5139
|
-
(renderLanes.lanes = type),
|
|
5140
|
-
(renderLanes.child = null),
|
|
5141
|
-
(renderLanes.subtreeFlags = 0),
|
|
5142
|
-
(renderLanes.memoizedProps = null),
|
|
5143
|
-
(renderLanes.memoizedState = null),
|
|
5144
|
-
(renderLanes.updateQueue = null),
|
|
5145
|
-
(renderLanes.dependencies = null),
|
|
5146
|
-
(renderLanes.stateNode = null))
|
|
5147
|
-
: ((renderLanes.childLanes = updatePayload.childLanes),
|
|
5148
|
-
(renderLanes.lanes = updatePayload.lanes),
|
|
5149
|
-
(renderLanes.child = updatePayload.child),
|
|
5150
|
-
(renderLanes.subtreeFlags = 0),
|
|
5151
|
-
(renderLanes.deletions = null),
|
|
5152
|
-
(renderLanes.memoizedProps =
|
|
5153
|
-
updatePayload.memoizedProps),
|
|
5154
|
-
(renderLanes.memoizedState =
|
|
5155
|
-
updatePayload.memoizedState),
|
|
5156
|
-
(renderLanes.updateQueue = updatePayload.updateQueue),
|
|
5157
|
-
(renderLanes.type = updatePayload.type),
|
|
5158
|
-
(type = updatePayload.dependencies),
|
|
5159
|
-
(renderLanes.dependencies =
|
|
5160
|
-
null === type
|
|
5161
|
-
? null
|
|
5162
|
-
: {
|
|
5163
|
-
lanes: type.lanes,
|
|
5164
|
-
firstContext: type.firstContext
|
|
5165
|
-
})),
|
|
5166
|
-
(newProps = newProps.sibling);
|
|
5167
|
-
push(
|
|
5168
|
-
suspenseStackCursor,
|
|
5169
|
-
(suspenseStackCursor.current & 1) | 2
|
|
5170
|
-
);
|
|
5171
|
-
return workInProgress.child;
|
|
5172
|
-
}
|
|
5173
|
-
current = current.sibling;
|
|
5174
|
-
}
|
|
5175
|
-
null !== type.tail &&
|
|
5176
|
-
now() > workInProgressRootRenderTargetTime &&
|
|
5177
|
-
((workInProgress.flags |= 128),
|
|
5178
|
-
(newProps = !0),
|
|
5179
|
-
cutOffTailIfNeeded(type, !1),
|
|
5180
|
-
(workInProgress.lanes = 4194304));
|
|
5181
|
-
}
|
|
5182
|
-
else {
|
|
5183
|
-
if (!newProps)
|
|
5184
|
-
if (
|
|
5185
|
-
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
5186
|
-
) {
|
|
5187
|
-
if (
|
|
5188
|
-
((workInProgress.flags |= 128),
|
|
5189
|
-
(newProps = !0),
|
|
5190
|
-
(current = current.updateQueue),
|
|
5191
|
-
null !== current &&
|
|
5192
|
-
((workInProgress.updateQueue = current),
|
|
5193
|
-
(workInProgress.flags |= 4)),
|
|
5194
|
-
cutOffTailIfNeeded(type, !0),
|
|
5195
|
-
null === type.tail &&
|
|
5196
|
-
"hidden" === type.tailMode &&
|
|
5197
|
-
!updatePayload.alternate)
|
|
5198
|
-
)
|
|
5199
|
-
return bubbleProperties(workInProgress), null;
|
|
5200
|
-
} else
|
|
5201
|
-
2 * now() - type.renderingStartTime >
|
|
5202
|
-
workInProgressRootRenderTargetTime &&
|
|
5203
|
-
1073741824 !== renderLanes &&
|
|
5204
|
-
((workInProgress.flags |= 128),
|
|
5205
|
-
(newProps = !0),
|
|
5206
|
-
cutOffTailIfNeeded(type, !1),
|
|
5207
|
-
(workInProgress.lanes = 4194304));
|
|
5208
|
-
type.isBackwards
|
|
5209
|
-
? ((updatePayload.sibling = workInProgress.child),
|
|
5210
|
-
(workInProgress.child = updatePayload))
|
|
5211
|
-
: ((current = type.last),
|
|
5212
|
-
null !== current
|
|
5213
|
-
? (current.sibling = updatePayload)
|
|
5214
|
-
: (workInProgress.child = updatePayload),
|
|
5215
|
-
(type.last = updatePayload));
|
|
5441
|
+
context = 0 !== (renderLanes & workInProgress.childLanes);
|
|
5442
|
+
if (0 !== (current.flags & 128)) {
|
|
5443
|
+
if (context)
|
|
5444
|
+
return updateSuspenseListComponent(
|
|
5445
|
+
current,
|
|
5446
|
+
workInProgress,
|
|
5447
|
+
renderLanes
|
|
5448
|
+
);
|
|
5449
|
+
workInProgress.flags |= 128;
|
|
5216
5450
|
}
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
case 22:
|
|
5231
|
-
case 23:
|
|
5232
|
-
return (
|
|
5233
|
-
popRenderLanes(),
|
|
5234
|
-
(renderLanes = null !== workInProgress.memoizedState),
|
|
5235
|
-
null !== current &&
|
|
5236
|
-
(null !== current.memoizedState) !== renderLanes &&
|
|
5237
|
-
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
5238
|
-
(workInProgress.flags |= 4),
|
|
5239
|
-
(renderLanes &&
|
|
5240
|
-
0 === (subtreeRenderLanes & 1073741824) &&
|
|
5241
|
-
0 !== (workInProgress.mode & 1)) ||
|
|
5242
|
-
bubbleProperties(workInProgress),
|
|
5243
|
-
null
|
|
5451
|
+
nextValue = workInProgress.memoizedState;
|
|
5452
|
+
null !== nextValue &&
|
|
5453
|
+
((nextValue.rendering = null),
|
|
5454
|
+
(nextValue.tail = null),
|
|
5455
|
+
(nextValue.lastEffect = null));
|
|
5456
|
+
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
5457
|
+
if (context) break;
|
|
5458
|
+
else return null;
|
|
5459
|
+
case 22:
|
|
5460
|
+
case 23:
|
|
5461
|
+
return (
|
|
5462
|
+
(workInProgress.lanes = 0),
|
|
5463
|
+
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
5244
5464
|
);
|
|
5245
5465
|
}
|
|
5246
|
-
|
|
5247
|
-
"Unknown unit of work tag (" +
|
|
5248
|
-
workInProgress.tag +
|
|
5249
|
-
"). This error is likely caused by a bug in React. Please file an issue."
|
|
5250
|
-
);
|
|
5466
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5251
5467
|
}
|
|
5252
5468
|
function unwindWork(workInProgress) {
|
|
5253
5469
|
switch (workInProgress.tag) {
|
|
5254
5470
|
case 1:
|
|
5255
5471
|
isContextProvider(workInProgress.type) && popContext();
|
|
5256
5472
|
var flags = workInProgress.flags;
|
|
5257
|
-
return flags &
|
|
5258
|
-
? ((workInProgress.flags = (flags & -
|
|
5473
|
+
return flags & 32768
|
|
5474
|
+
? ((workInProgress.flags = (flags & -32769) | 128), workInProgress)
|
|
5259
5475
|
: null;
|
|
5260
5476
|
case 3:
|
|
5261
5477
|
popHostContainer();
|
|
@@ -5267,7 +5483,7 @@ function unwindWork(workInProgress) {
|
|
|
5267
5483
|
throw Error(
|
|
5268
5484
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5269
5485
|
);
|
|
5270
|
-
workInProgress.flags = (flags & -
|
|
5486
|
+
workInProgress.flags = (flags & -32769) | 128;
|
|
5271
5487
|
return workInProgress;
|
|
5272
5488
|
case 5:
|
|
5273
5489
|
return popHostContext(workInProgress), null;
|
|
@@ -5275,8 +5491,8 @@ function unwindWork(workInProgress) {
|
|
|
5275
5491
|
return (
|
|
5276
5492
|
pop(suspenseStackCursor),
|
|
5277
5493
|
(flags = workInProgress.flags),
|
|
5278
|
-
flags &
|
|
5279
|
-
? ((workInProgress.flags = (flags & -
|
|
5494
|
+
flags & 32768
|
|
5495
|
+
? ((workInProgress.flags = (flags & -32769) | 128), workInProgress)
|
|
5280
5496
|
: null
|
|
5281
5497
|
);
|
|
5282
5498
|
case 19:
|
|
@@ -5294,74 +5510,6 @@ function unwindWork(workInProgress) {
|
|
|
5294
5510
|
return null;
|
|
5295
5511
|
}
|
|
5296
5512
|
}
|
|
5297
|
-
function createCapturedValue(value, source) {
|
|
5298
|
-
return {
|
|
5299
|
-
value: value,
|
|
5300
|
-
source: source,
|
|
5301
|
-
stack: getStackByFiberInDevAndProd(source)
|
|
5302
|
-
};
|
|
5303
|
-
}
|
|
5304
|
-
if (
|
|
5305
|
-
"function" !==
|
|
5306
|
-
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
|
5307
|
-
)
|
|
5308
|
-
throw Error(
|
|
5309
|
-
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
|
5310
|
-
);
|
|
5311
|
-
function logCapturedError(boundary, errorInfo) {
|
|
5312
|
-
try {
|
|
5313
|
-
!1 !==
|
|
5314
|
-
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
|
5315
|
-
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
|
5316
|
-
error: errorInfo.value,
|
|
5317
|
-
errorBoundary:
|
|
5318
|
-
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
|
5319
|
-
}) && console.error(errorInfo.value);
|
|
5320
|
-
} catch (e) {
|
|
5321
|
-
setTimeout(function() {
|
|
5322
|
-
throw e;
|
|
5323
|
-
});
|
|
5324
|
-
}
|
|
5325
|
-
}
|
|
5326
|
-
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
|
5327
|
-
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
5328
|
-
lane = createUpdate(-1, lane);
|
|
5329
|
-
lane.tag = 3;
|
|
5330
|
-
lane.payload = { element: null };
|
|
5331
|
-
var error = errorInfo.value;
|
|
5332
|
-
lane.callback = function() {
|
|
5333
|
-
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
|
5334
|
-
logCapturedError(fiber, errorInfo);
|
|
5335
|
-
};
|
|
5336
|
-
return lane;
|
|
5337
|
-
}
|
|
5338
|
-
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
5339
|
-
lane = createUpdate(-1, lane);
|
|
5340
|
-
lane.tag = 3;
|
|
5341
|
-
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
5342
|
-
if ("function" === typeof getDerivedStateFromError) {
|
|
5343
|
-
var error = errorInfo.value;
|
|
5344
|
-
lane.payload = function() {
|
|
5345
|
-
logCapturedError(fiber, errorInfo);
|
|
5346
|
-
return getDerivedStateFromError(error);
|
|
5347
|
-
};
|
|
5348
|
-
}
|
|
5349
|
-
var inst = fiber.stateNode;
|
|
5350
|
-
null !== inst &&
|
|
5351
|
-
"function" === typeof inst.componentDidCatch &&
|
|
5352
|
-
(lane.callback = function() {
|
|
5353
|
-
"function" !== typeof getDerivedStateFromError &&
|
|
5354
|
-
(null === legacyErrorBoundariesThatAlreadyFailed
|
|
5355
|
-
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
|
5356
|
-
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
|
5357
|
-
logCapturedError(fiber, errorInfo));
|
|
5358
|
-
var stack = errorInfo.stack;
|
|
5359
|
-
this.componentDidCatch(errorInfo.value, {
|
|
5360
|
-
componentStack: null !== stack ? stack : ""
|
|
5361
|
-
});
|
|
5362
|
-
});
|
|
5363
|
-
return lane;
|
|
5364
|
-
}
|
|
5365
5513
|
var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
|
5366
5514
|
nextEffect = null;
|
|
5367
5515
|
function safelyDetachRef(current, nearestMountedAncestor) {
|
|
@@ -5370,54 +5518,26 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
5370
5518
|
if ("function" === typeof ref)
|
|
5371
5519
|
try {
|
|
5372
5520
|
ref(null);
|
|
5373
|
-
} catch (
|
|
5374
|
-
captureCommitPhaseError(current, nearestMountedAncestor,
|
|
5521
|
+
} catch (error) {
|
|
5522
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5375
5523
|
}
|
|
5376
5524
|
else ref.current = null;
|
|
5377
5525
|
}
|
|
5378
|
-
var
|
|
5379
|
-
shouldFireAfterActiveInstanceBlur = !1;
|
|
5526
|
+
var shouldFireAfterActiveInstanceBlur = !1;
|
|
5380
5527
|
function commitBeforeMutationEffects(root, firstChild) {
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
doesFiberContain(firstChild[i], focusedInstanceHandle) &&
|
|
5388
|
-
(shouldFireAfterActiveInstanceBlur = !0);
|
|
5389
|
-
firstChild = root.child;
|
|
5390
|
-
if (0 !== (root.subtreeFlags & 516) && null !== firstChild)
|
|
5528
|
+
for (nextEffect = firstChild; null !== nextEffect; )
|
|
5529
|
+
if (
|
|
5530
|
+
((root = nextEffect),
|
|
5531
|
+
(firstChild = root.child),
|
|
5532
|
+
0 !== (root.subtreeFlags & 516) && null !== firstChild)
|
|
5533
|
+
)
|
|
5391
5534
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
5392
5535
|
else
|
|
5393
5536
|
for (; null !== nextEffect; ) {
|
|
5394
5537
|
root = nextEffect;
|
|
5395
5538
|
try {
|
|
5396
|
-
var current = root.alternate
|
|
5397
|
-
|
|
5398
|
-
if (
|
|
5399
|
-
!shouldFireAfterActiveInstanceBlur &&
|
|
5400
|
-
null !== focusedInstanceHandle
|
|
5401
|
-
) {
|
|
5402
|
-
var JSCompiler_temp;
|
|
5403
|
-
if ((JSCompiler_temp = 13 === root.tag))
|
|
5404
|
-
a: {
|
|
5405
|
-
if (null !== current) {
|
|
5406
|
-
var oldState = current.memoizedState;
|
|
5407
|
-
if (null === oldState || null !== oldState.dehydrated) {
|
|
5408
|
-
var newState = root.memoizedState;
|
|
5409
|
-
JSCompiler_temp =
|
|
5410
|
-
null !== newState && null === newState.dehydrated;
|
|
5411
|
-
break a;
|
|
5412
|
-
}
|
|
5413
|
-
}
|
|
5414
|
-
JSCompiler_temp = !1;
|
|
5415
|
-
}
|
|
5416
|
-
JSCompiler_temp &&
|
|
5417
|
-
doesFiberContain(root, focusedInstanceHandle) &&
|
|
5418
|
-
(shouldFireAfterActiveInstanceBlur = !0);
|
|
5419
|
-
}
|
|
5420
|
-
if (0 !== (flags & 512))
|
|
5539
|
+
var current = root.alternate;
|
|
5540
|
+
if (0 !== (root.flags & 512))
|
|
5421
5541
|
switch (root.tag) {
|
|
5422
5542
|
case 0:
|
|
5423
5543
|
case 11:
|
|
@@ -5460,10 +5580,8 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5460
5580
|
}
|
|
5461
5581
|
nextEffect = root.return;
|
|
5462
5582
|
}
|
|
5463
|
-
}
|
|
5464
5583
|
current = shouldFireAfterActiveInstanceBlur;
|
|
5465
5584
|
shouldFireAfterActiveInstanceBlur = !1;
|
|
5466
|
-
focusedInstanceHandle = null;
|
|
5467
5585
|
return current;
|
|
5468
5586
|
}
|
|
5469
5587
|
function commitHookEffectListUnmount(
|
|
@@ -5500,75 +5618,13 @@ function commitHookEffectListMount(tag, finishedWork) {
|
|
|
5500
5618
|
var effect = (finishedWork = finishedWork.next);
|
|
5501
5619
|
do {
|
|
5502
5620
|
if ((effect.tag & tag) === tag) {
|
|
5503
|
-
var create$
|
|
5504
|
-
effect.destroy = create$
|
|
5621
|
+
var create$83 = effect.create;
|
|
5622
|
+
effect.destroy = create$83();
|
|
5505
5623
|
}
|
|
5506
5624
|
effect = effect.next;
|
|
5507
5625
|
} while (effect !== finishedWork);
|
|
5508
5626
|
}
|
|
5509
5627
|
}
|
|
5510
|
-
function hideOrUnhideAllChildren(finishedWork, isHidden) {
|
|
5511
|
-
for (var hostSubtreeRoot = null, node = finishedWork; ; ) {
|
|
5512
|
-
if (5 === node.tag) {
|
|
5513
|
-
if (null === hostSubtreeRoot) {
|
|
5514
|
-
hostSubtreeRoot = node;
|
|
5515
|
-
var instance = node.stateNode;
|
|
5516
|
-
if (isHidden) {
|
|
5517
|
-
var viewConfig = instance.viewConfig;
|
|
5518
|
-
var updatePayload = diffProperties(
|
|
5519
|
-
null,
|
|
5520
|
-
emptyObject,
|
|
5521
|
-
{ style: { display: "none" } },
|
|
5522
|
-
viewConfig.validAttributes
|
|
5523
|
-
);
|
|
5524
|
-
ReactNativePrivateInterface.UIManager.updateView(
|
|
5525
|
-
instance._nativeTag,
|
|
5526
|
-
viewConfig.uiViewClassName,
|
|
5527
|
-
updatePayload
|
|
5528
|
-
);
|
|
5529
|
-
} else {
|
|
5530
|
-
instance = node.stateNode;
|
|
5531
|
-
updatePayload = node.memoizedProps;
|
|
5532
|
-
viewConfig = instance.viewConfig;
|
|
5533
|
-
var prevProps = Object.assign({}, updatePayload, {
|
|
5534
|
-
style: [updatePayload.style, { display: "none" }]
|
|
5535
|
-
});
|
|
5536
|
-
updatePayload = diffProperties(
|
|
5537
|
-
null,
|
|
5538
|
-
prevProps,
|
|
5539
|
-
updatePayload,
|
|
5540
|
-
viewConfig.validAttributes
|
|
5541
|
-
);
|
|
5542
|
-
ReactNativePrivateInterface.UIManager.updateView(
|
|
5543
|
-
instance._nativeTag,
|
|
5544
|
-
viewConfig.uiViewClassName,
|
|
5545
|
-
updatePayload
|
|
5546
|
-
);
|
|
5547
|
-
}
|
|
5548
|
-
}
|
|
5549
|
-
} else if (6 === node.tag) {
|
|
5550
|
-
if (null === hostSubtreeRoot) throw Error("Not yet implemented.");
|
|
5551
|
-
} else if (
|
|
5552
|
-
((22 !== node.tag && 23 !== node.tag) ||
|
|
5553
|
-
null === node.memoizedState ||
|
|
5554
|
-
node === finishedWork) &&
|
|
5555
|
-
null !== node.child
|
|
5556
|
-
) {
|
|
5557
|
-
node.child.return = node;
|
|
5558
|
-
node = node.child;
|
|
5559
|
-
continue;
|
|
5560
|
-
}
|
|
5561
|
-
if (node === finishedWork) break;
|
|
5562
|
-
for (; null === node.sibling; ) {
|
|
5563
|
-
if (null === node.return || node.return === finishedWork) return;
|
|
5564
|
-
hostSubtreeRoot === node && (hostSubtreeRoot = null);
|
|
5565
|
-
node = node.return;
|
|
5566
|
-
}
|
|
5567
|
-
hostSubtreeRoot === node && (hostSubtreeRoot = null);
|
|
5568
|
-
node.sibling.return = node.return;
|
|
5569
|
-
node = node.sibling;
|
|
5570
|
-
}
|
|
5571
|
-
}
|
|
5572
5628
|
function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
5573
5629
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
|
|
5574
5630
|
try {
|
|
@@ -5589,7 +5645,10 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
|
5589
5645
|
var _effect = effect,
|
|
5590
5646
|
destroy = _effect.destroy;
|
|
5591
5647
|
_effect = _effect.tag;
|
|
5592
|
-
if (
|
|
5648
|
+
if (
|
|
5649
|
+
void 0 !== destroy &&
|
|
5650
|
+
(0 !== (_effect & 2) || 0 !== (_effect & 4))
|
|
5651
|
+
) {
|
|
5593
5652
|
_effect = current;
|
|
5594
5653
|
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
|
|
5595
5654
|
try {
|
|
@@ -5610,11 +5669,11 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
|
5610
5669
|
(finishedRoot.props = current.memoizedProps),
|
|
5611
5670
|
(finishedRoot.state = current.memoizedState),
|
|
5612
5671
|
finishedRoot.componentWillUnmount();
|
|
5613
|
-
} catch (
|
|
5672
|
+
} catch (error) {
|
|
5614
5673
|
captureCommitPhaseError(
|
|
5615
5674
|
current,
|
|
5616
5675
|
nearestMountedAncestor$jscomp$0,
|
|
5617
|
-
|
|
5676
|
+
error
|
|
5618
5677
|
);
|
|
5619
5678
|
}
|
|
5620
5679
|
break;
|
|
@@ -5635,11 +5694,13 @@ function detachFiberAfterEffects(fiber) {
|
|
|
5635
5694
|
((fiber.alternate = null), detachFiberAfterEffects(alternate));
|
|
5636
5695
|
fiber.child = null;
|
|
5637
5696
|
fiber.deletions = null;
|
|
5697
|
+
fiber.sibling = null;
|
|
5698
|
+
fiber.stateNode = null;
|
|
5699
|
+
fiber.return = null;
|
|
5638
5700
|
fiber.dependencies = null;
|
|
5639
5701
|
fiber.memoizedProps = null;
|
|
5640
5702
|
fiber.memoizedState = null;
|
|
5641
5703
|
fiber.pendingProps = null;
|
|
5642
|
-
fiber.sibling = null;
|
|
5643
5704
|
fiber.stateNode = null;
|
|
5644
5705
|
fiber.updateQueue = null;
|
|
5645
5706
|
}
|
|
@@ -5914,6 +5975,8 @@ function commitWork(current, finishedWork) {
|
|
|
5914
5975
|
case 14:
|
|
5915
5976
|
case 15:
|
|
5916
5977
|
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
5978
|
+
commitHookEffectListMount(3, finishedWork);
|
|
5979
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
5917
5980
|
return;
|
|
5918
5981
|
case 1:
|
|
5919
5982
|
return;
|
|
@@ -5957,9 +6020,6 @@ function commitWork(current, finishedWork) {
|
|
|
5957
6020
|
case 12:
|
|
5958
6021
|
return;
|
|
5959
6022
|
case 13:
|
|
5960
|
-
null !== finishedWork.memoizedState &&
|
|
5961
|
-
((globalMostRecentFallbackTime = now()),
|
|
5962
|
-
hideOrUnhideAllChildren(finishedWork.child, !0));
|
|
5963
6023
|
attachSuspenseRetryListeners(finishedWork);
|
|
5964
6024
|
return;
|
|
5965
6025
|
case 19:
|
|
@@ -5967,13 +6027,6 @@ function commitWork(current, finishedWork) {
|
|
|
5967
6027
|
return;
|
|
5968
6028
|
case 17:
|
|
5969
6029
|
return;
|
|
5970
|
-
case 22:
|
|
5971
|
-
case 23:
|
|
5972
|
-
hideOrUnhideAllChildren(
|
|
5973
|
-
finishedWork,
|
|
5974
|
-
null !== finishedWork.memoizedState
|
|
5975
|
-
);
|
|
5976
|
-
return;
|
|
5977
6030
|
}
|
|
5978
6031
|
throw Error(
|
|
5979
6032
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
@@ -6027,6 +6080,87 @@ function commitMutationEffects(root, firstChild) {
|
|
|
6027
6080
|
: (currentRef.current = null));
|
|
6028
6081
|
}
|
|
6029
6082
|
}
|
|
6083
|
+
if (flags & 4096)
|
|
6084
|
+
switch (firstChild.tag) {
|
|
6085
|
+
case 13:
|
|
6086
|
+
if (null !== firstChild.memoizedState) {
|
|
6087
|
+
var current$88 = firstChild.alternate;
|
|
6088
|
+
if (null === current$88 || null === current$88.memoizedState)
|
|
6089
|
+
globalMostRecentFallbackTime = now();
|
|
6090
|
+
}
|
|
6091
|
+
break;
|
|
6092
|
+
case 22:
|
|
6093
|
+
a: {
|
|
6094
|
+
deletions = firstChild;
|
|
6095
|
+
var isHidden = null !== firstChild.memoizedState;
|
|
6096
|
+
i = null;
|
|
6097
|
+
for (childToDelete = deletions; ; ) {
|
|
6098
|
+
if (5 === childToDelete.tag) {
|
|
6099
|
+
if (null === i) {
|
|
6100
|
+
i = childToDelete;
|
|
6101
|
+
var instance = childToDelete.stateNode;
|
|
6102
|
+
if (isHidden) {
|
|
6103
|
+
var instance$jscomp$0 = instance,
|
|
6104
|
+
viewConfig = instance$jscomp$0.viewConfig;
|
|
6105
|
+
var updatePayload = diffProperties(
|
|
6106
|
+
null,
|
|
6107
|
+
emptyObject,
|
|
6108
|
+
{ style: { display: "none" } },
|
|
6109
|
+
viewConfig.validAttributes
|
|
6110
|
+
);
|
|
6111
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6112
|
+
instance$jscomp$0._nativeTag,
|
|
6113
|
+
viewConfig.uiViewClassName,
|
|
6114
|
+
updatePayload
|
|
6115
|
+
);
|
|
6116
|
+
} else {
|
|
6117
|
+
var instance$jscomp$1 = childToDelete.stateNode,
|
|
6118
|
+
props = childToDelete.memoizedProps,
|
|
6119
|
+
viewConfig$jscomp$0 = instance$jscomp$1.viewConfig,
|
|
6120
|
+
prevProps = Object.assign({}, props, {
|
|
6121
|
+
style: [props.style, { display: "none" }]
|
|
6122
|
+
});
|
|
6123
|
+
var updatePayload$jscomp$0 = diffProperties(
|
|
6124
|
+
null,
|
|
6125
|
+
prevProps,
|
|
6126
|
+
props,
|
|
6127
|
+
viewConfig$jscomp$0.validAttributes
|
|
6128
|
+
);
|
|
6129
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6130
|
+
instance$jscomp$1._nativeTag,
|
|
6131
|
+
viewConfig$jscomp$0.uiViewClassName,
|
|
6132
|
+
updatePayload$jscomp$0
|
|
6133
|
+
);
|
|
6134
|
+
}
|
|
6135
|
+
}
|
|
6136
|
+
} else if (6 === childToDelete.tag) {
|
|
6137
|
+
if (null === i) throw Error("Not yet implemented.");
|
|
6138
|
+
} else if (
|
|
6139
|
+
((22 !== childToDelete.tag && 23 !== childToDelete.tag) ||
|
|
6140
|
+
null === childToDelete.memoizedState ||
|
|
6141
|
+
childToDelete === deletions) &&
|
|
6142
|
+
null !== childToDelete.child
|
|
6143
|
+
) {
|
|
6144
|
+
childToDelete.child.return = childToDelete;
|
|
6145
|
+
childToDelete = childToDelete.child;
|
|
6146
|
+
continue;
|
|
6147
|
+
}
|
|
6148
|
+
if (childToDelete === deletions) break;
|
|
6149
|
+
for (; null === childToDelete.sibling; ) {
|
|
6150
|
+
if (
|
|
6151
|
+
null === childToDelete.return ||
|
|
6152
|
+
childToDelete.return === deletions
|
|
6153
|
+
)
|
|
6154
|
+
break a;
|
|
6155
|
+
i === childToDelete && (i = null);
|
|
6156
|
+
childToDelete = childToDelete.return;
|
|
6157
|
+
}
|
|
6158
|
+
i === childToDelete && (i = null);
|
|
6159
|
+
childToDelete.sibling.return = childToDelete.return;
|
|
6160
|
+
childToDelete = childToDelete.sibling;
|
|
6161
|
+
}
|
|
6162
|
+
}
|
|
6163
|
+
}
|
|
6030
6164
|
switch (flags & 2054) {
|
|
6031
6165
|
case 2:
|
|
6032
6166
|
commitPlacement(firstChild);
|
|
@@ -6064,20 +6198,20 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6064
6198
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
6065
6199
|
var fiber = nextEffect,
|
|
6066
6200
|
firstChild = fiber.child;
|
|
6067
|
-
if (0 !== (fiber.subtreeFlags &
|
|
6201
|
+
if (0 !== (fiber.subtreeFlags & 4420) && null !== firstChild)
|
|
6068
6202
|
(firstChild.return = fiber), (nextEffect = firstChild);
|
|
6069
6203
|
else
|
|
6070
6204
|
for (fiber = finishedWork; null !== nextEffect; ) {
|
|
6071
6205
|
firstChild = nextEffect;
|
|
6072
|
-
if (0 !== (firstChild.flags &
|
|
6206
|
+
if (0 !== (firstChild.flags & 4420)) {
|
|
6073
6207
|
var current = firstChild.alternate;
|
|
6074
6208
|
try {
|
|
6075
|
-
if (0 !== (firstChild.flags &
|
|
6209
|
+
if (0 !== (firstChild.flags & 4420))
|
|
6076
6210
|
switch (firstChild.tag) {
|
|
6077
6211
|
case 0:
|
|
6078
6212
|
case 11:
|
|
6079
6213
|
case 15:
|
|
6080
|
-
commitHookEffectListMount(
|
|
6214
|
+
commitHookEffectListMount(5, firstChild);
|
|
6081
6215
|
break;
|
|
6082
6216
|
case 1:
|
|
6083
6217
|
var instance = firstChild.stateNode;
|
|
@@ -6102,8 +6236,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6102
6236
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
6103
6237
|
break;
|
|
6104
6238
|
case 3:
|
|
6105
|
-
var updateQueue$
|
|
6106
|
-
if (null !== updateQueue$
|
|
6239
|
+
var updateQueue$84 = firstChild.updateQueue;
|
|
6240
|
+
if (null !== updateQueue$84) {
|
|
6107
6241
|
current = null;
|
|
6108
6242
|
if (null !== firstChild.child)
|
|
6109
6243
|
switch (firstChild.child.tag) {
|
|
@@ -6113,7 +6247,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6113
6247
|
case 1:
|
|
6114
6248
|
current = firstChild.child.stateNode;
|
|
6115
6249
|
}
|
|
6116
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6250
|
+
commitUpdateQueue(firstChild, updateQueue$84, current);
|
|
6117
6251
|
}
|
|
6118
6252
|
break;
|
|
6119
6253
|
case 5:
|
|
@@ -6200,7 +6334,7 @@ var ceil = Math.ceil,
|
|
|
6200
6334
|
currentEventTime = -1,
|
|
6201
6335
|
currentEventTransitionLane = 0;
|
|
6202
6336
|
function requestEventTime() {
|
|
6203
|
-
return 0 !== (executionContext &
|
|
6337
|
+
return 0 !== (executionContext & 6)
|
|
6204
6338
|
? now()
|
|
6205
6339
|
: -1 !== currentEventTime
|
|
6206
6340
|
? currentEventTime
|
|
@@ -6208,6 +6342,8 @@ function requestEventTime() {
|
|
|
6208
6342
|
}
|
|
6209
6343
|
function requestUpdateLane(fiber) {
|
|
6210
6344
|
if (0 === (fiber.mode & 1)) return 1;
|
|
6345
|
+
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
|
|
6346
|
+
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
|
6211
6347
|
if (0 !== ReactCurrentBatchConfig.transition)
|
|
6212
6348
|
return (
|
|
6213
6349
|
0 === currentEventTransitionLane &&
|
|
@@ -6231,18 +6367,15 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6231
6367
|
if (null === root) return null;
|
|
6232
6368
|
markRootUpdated(root, lane, eventTime);
|
|
6233
6369
|
root === workInProgressRoot &&
|
|
6234
|
-
((workInProgressRootUpdatedLanes |= lane),
|
|
6370
|
+
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
|
|
6235
6371
|
4 === workInProgressRootExitStatus &&
|
|
6236
6372
|
markRootSuspended$1(root, workInProgressRootRenderLanes));
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6244
|
-
includesLegacySyncCallbacks && flushSyncCallbacks()))
|
|
6245
|
-
: ensureRootIsScheduled(root, eventTime);
|
|
6373
|
+
ensureRootIsScheduled(root, eventTime);
|
|
6374
|
+
1 === lane &&
|
|
6375
|
+
0 === executionContext &&
|
|
6376
|
+
0 === (fiber.mode & 1) &&
|
|
6377
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6378
|
+
includesLegacySyncCallbacks && flushSyncCallbacks());
|
|
6246
6379
|
return root;
|
|
6247
6380
|
}
|
|
6248
6381
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6320,7 +6453,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6320
6453
|
default:
|
|
6321
6454
|
existingCallbackNode = NormalPriority;
|
|
6322
6455
|
}
|
|
6323
|
-
existingCallbackNode = scheduleCallback(
|
|
6456
|
+
existingCallbackNode = scheduleCallback$1(
|
|
6324
6457
|
existingCallbackNode,
|
|
6325
6458
|
performConcurrentWorkOnRoot.bind(null, root)
|
|
6326
6459
|
);
|
|
@@ -6332,7 +6465,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6332
6465
|
function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
6333
6466
|
currentEventTime = -1;
|
|
6334
6467
|
currentEventTransitionLane = 0;
|
|
6335
|
-
if (0 !== (executionContext &
|
|
6468
|
+
if (0 !== (executionContext & 6))
|
|
6336
6469
|
throw Error("Should not already be working.");
|
|
6337
6470
|
var originalCallbackNode = root.callbackNode;
|
|
6338
6471
|
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode)
|
|
@@ -6342,16 +6475,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6342
6475
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6343
6476
|
);
|
|
6344
6477
|
if (0 === lanes) return null;
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6478
|
+
if (
|
|
6479
|
+
includesBlockingLane(root, lanes) ||
|
|
6480
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
6481
|
+
didTimeout
|
|
6482
|
+
)
|
|
6483
|
+
didTimeout = renderRootSync(root, lanes);
|
|
6484
|
+
else {
|
|
6352
6485
|
didTimeout = lanes;
|
|
6353
|
-
|
|
6354
|
-
executionContext |=
|
|
6486
|
+
var prevExecutionContext = executionContext;
|
|
6487
|
+
executionContext |= 2;
|
|
6355
6488
|
var prevDispatcher = pushDispatcher();
|
|
6356
6489
|
if (
|
|
6357
6490
|
workInProgressRoot !== root ||
|
|
@@ -6369,28 +6502,44 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6369
6502
|
while (1);
|
|
6370
6503
|
resetContextDependencies();
|
|
6371
6504
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6372
|
-
executionContext =
|
|
6505
|
+
executionContext = prevExecutionContext;
|
|
6373
6506
|
null !== workInProgress
|
|
6374
6507
|
? (didTimeout = 0)
|
|
6375
6508
|
: ((workInProgressRoot = null),
|
|
6376
6509
|
(workInProgressRootRenderLanes = 0),
|
|
6377
6510
|
(didTimeout = workInProgressRootExitStatus));
|
|
6378
|
-
}
|
|
6511
|
+
}
|
|
6379
6512
|
if (0 !== didTimeout) {
|
|
6380
6513
|
2 === didTimeout &&
|
|
6381
|
-
((
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
((lanes = JSCompiler_inline_result),
|
|
6386
|
-
(didTimeout = renderRootSync(root, JSCompiler_inline_result))));
|
|
6514
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
6515
|
+
0 !== prevExecutionContext &&
|
|
6516
|
+
((lanes = prevExecutionContext),
|
|
6517
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6387
6518
|
if (1 === didTimeout)
|
|
6388
6519
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6389
6520
|
prepareFreshStack(root, 0),
|
|
6390
6521
|
markRootSuspended$1(root, lanes),
|
|
6391
6522
|
ensureRootIsScheduled(root, now()),
|
|
6392
6523
|
originalCallbackNode);
|
|
6393
|
-
|
|
6524
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
6525
|
+
prevExecutionContext = root.current.alternate;
|
|
6526
|
+
if (
|
|
6527
|
+
prevDispatcher &&
|
|
6528
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
6529
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
6530
|
+
2 === didTimeout &&
|
|
6531
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
6532
|
+
0 !== prevDispatcher &&
|
|
6533
|
+
((lanes = prevDispatcher),
|
|
6534
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
6535
|
+
1 === didTimeout)
|
|
6536
|
+
)
|
|
6537
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6538
|
+
prepareFreshStack(root, 0),
|
|
6539
|
+
markRootSuspended$1(root, lanes),
|
|
6540
|
+
ensureRootIsScheduled(root, now()),
|
|
6541
|
+
originalCallbackNode);
|
|
6542
|
+
root.finishedWork = prevExecutionContext;
|
|
6394
6543
|
root.finishedLanes = lanes;
|
|
6395
6544
|
switch (didTimeout) {
|
|
6396
6545
|
case 0:
|
|
@@ -6407,10 +6556,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6407
6556
|
10 < didTimeout)
|
|
6408
6557
|
) {
|
|
6409
6558
|
if (0 !== getNextLanes(root, 0)) break;
|
|
6410
|
-
|
|
6411
|
-
if ((
|
|
6559
|
+
prevExecutionContext = root.suspendedLanes;
|
|
6560
|
+
if ((prevExecutionContext & lanes) !== lanes) {
|
|
6412
6561
|
requestEventTime();
|
|
6413
|
-
root.pingedLanes |= root.suspendedLanes &
|
|
6562
|
+
root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
|
|
6414
6563
|
break;
|
|
6415
6564
|
}
|
|
6416
6565
|
root.timeoutHandle = scheduleTimeout(
|
|
@@ -6425,15 +6574,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6425
6574
|
markRootSuspended$1(root, lanes);
|
|
6426
6575
|
if ((lanes & 4194240) === lanes) break;
|
|
6427
6576
|
didTimeout = root.eventTimes;
|
|
6428
|
-
for (
|
|
6577
|
+
for (prevExecutionContext = -1; 0 < lanes; ) {
|
|
6429
6578
|
var index$5 = 31 - clz32(lanes);
|
|
6430
6579
|
prevDispatcher = 1 << index$5;
|
|
6431
6580
|
index$5 = didTimeout[index$5];
|
|
6432
|
-
index$5 >
|
|
6433
|
-
(JSCompiler_inline_result = index$5);
|
|
6581
|
+
index$5 > prevExecutionContext && (prevExecutionContext = index$5);
|
|
6434
6582
|
lanes &= ~prevDispatcher;
|
|
6435
6583
|
}
|
|
6436
|
-
lanes =
|
|
6584
|
+
lanes = prevExecutionContext;
|
|
6437
6585
|
lanes = now() - lanes;
|
|
6438
6586
|
lanes =
|
|
6439
6587
|
(120 > lanes
|
|
@@ -6470,6 +6618,48 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6470
6618
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6471
6619
|
: null;
|
|
6472
6620
|
}
|
|
6621
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6622
|
+
var prevExecutionContext = executionContext;
|
|
6623
|
+
executionContext |= 8;
|
|
6624
|
+
root.hydrate && (root.hydrate = !1);
|
|
6625
|
+
root = renderRootSync(root, errorRetryLanes);
|
|
6626
|
+
executionContext = prevExecutionContext;
|
|
6627
|
+
return root;
|
|
6628
|
+
}
|
|
6629
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6630
|
+
for (var node = finishedWork; ; ) {
|
|
6631
|
+
if (node.flags & 8192) {
|
|
6632
|
+
var updateQueue = node.updateQueue;
|
|
6633
|
+
if (
|
|
6634
|
+
null !== updateQueue &&
|
|
6635
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
6636
|
+
)
|
|
6637
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
6638
|
+
var check = updateQueue[i],
|
|
6639
|
+
getSnapshot = check.getSnapshot;
|
|
6640
|
+
check = check.value;
|
|
6641
|
+
try {
|
|
6642
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
6643
|
+
} catch (error) {
|
|
6644
|
+
return !1;
|
|
6645
|
+
}
|
|
6646
|
+
}
|
|
6647
|
+
}
|
|
6648
|
+
updateQueue = node.child;
|
|
6649
|
+
if (node.subtreeFlags & 8192 && null !== updateQueue)
|
|
6650
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
6651
|
+
else {
|
|
6652
|
+
if (node === finishedWork) break;
|
|
6653
|
+
for (; null === node.sibling; ) {
|
|
6654
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
6655
|
+
node = node.return;
|
|
6656
|
+
}
|
|
6657
|
+
node.sibling.return = node.return;
|
|
6658
|
+
node = node.sibling;
|
|
6659
|
+
}
|
|
6660
|
+
}
|
|
6661
|
+
return !0;
|
|
6662
|
+
}
|
|
6473
6663
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6474
6664
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6475
6665
|
suspendedLanes &= ~workInProgressRootUpdatedLanes;
|
|
@@ -6483,18 +6673,20 @@ function markRootSuspended$1(root, suspendedLanes) {
|
|
|
6483
6673
|
}
|
|
6484
6674
|
}
|
|
6485
6675
|
function performSyncWorkOnRoot(root) {
|
|
6486
|
-
if (0 !== (executionContext &
|
|
6676
|
+
if (0 !== (executionContext & 6))
|
|
6487
6677
|
throw Error("Should not already be working.");
|
|
6488
6678
|
flushPassiveEffects();
|
|
6489
6679
|
var lanes = getNextLanes(root, 0);
|
|
6490
6680
|
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
6491
6681
|
var exitStatus = renderRootSync(root, lanes);
|
|
6492
6682
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6493
|
-
|
|
6683
|
+
var prevExecutionContext = executionContext;
|
|
6684
|
+
executionContext |= 8;
|
|
6494
6685
|
root.hydrate && (root.hydrate = !1);
|
|
6495
6686
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6496
6687
|
0 !== errorRetryLanes &&
|
|
6497
6688
|
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
|
|
6689
|
+
executionContext = prevExecutionContext;
|
|
6498
6690
|
}
|
|
6499
6691
|
if (1 === exitStatus)
|
|
6500
6692
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
@@ -6615,7 +6807,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6615
6807
|
sourceFiber = erroredWork,
|
|
6616
6808
|
value = thrownValue;
|
|
6617
6809
|
thrownValue = workInProgressRootRenderLanes;
|
|
6618
|
-
sourceFiber.flags |=
|
|
6810
|
+
sourceFiber.flags |= 16384;
|
|
6619
6811
|
if (
|
|
6620
6812
|
null !== value &&
|
|
6621
6813
|
"object" === typeof value &&
|
|
@@ -6637,39 +6829,37 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6637
6829
|
}
|
|
6638
6830
|
var hasInvisibleParentBoundary =
|
|
6639
6831
|
0 !== (suspenseStackCursor.current & 1),
|
|
6640
|
-
workInProgress$
|
|
6832
|
+
workInProgress$32 = returnFiber;
|
|
6641
6833
|
do {
|
|
6642
6834
|
var JSCompiler_temp;
|
|
6643
|
-
if ((JSCompiler_temp = 13 === workInProgress$
|
|
6644
|
-
var nextState = workInProgress$
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
var props = workInProgress$77.memoizedProps;
|
|
6649
|
-
JSCompiler_temp =
|
|
6650
|
-
void 0 === props.fallback
|
|
6651
|
-
? !1
|
|
6652
|
-
: !0 !== props.unstable_avoidThisFallback
|
|
6835
|
+
if ((JSCompiler_temp = 13 === workInProgress$32.tag)) {
|
|
6836
|
+
var nextState = workInProgress$32.memoizedState;
|
|
6837
|
+
JSCompiler_temp =
|
|
6838
|
+
null !== nextState
|
|
6839
|
+
? null !== nextState.dehydrated
|
|
6653
6840
|
? !0
|
|
6654
|
-
:
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6841
|
+
: !1
|
|
6842
|
+
: !0 !==
|
|
6843
|
+
workInProgress$32.memoizedProps.unstable_avoidThisFallback
|
|
6844
|
+
? !0
|
|
6845
|
+
: hasInvisibleParentBoundary
|
|
6846
|
+
? !1
|
|
6847
|
+
: !0;
|
|
6658
6848
|
}
|
|
6659
6849
|
if (JSCompiler_temp) {
|
|
6660
|
-
var wakeables = workInProgress$
|
|
6850
|
+
var wakeables = workInProgress$32.updateQueue;
|
|
6661
6851
|
if (null === wakeables) {
|
|
6662
6852
|
var updateQueue = new Set();
|
|
6663
6853
|
updateQueue.add(wakeable);
|
|
6664
|
-
workInProgress$
|
|
6854
|
+
workInProgress$32.updateQueue = updateQueue;
|
|
6665
6855
|
} else wakeables.add(wakeable);
|
|
6666
6856
|
if (
|
|
6667
|
-
0 === (workInProgress$
|
|
6668
|
-
workInProgress$
|
|
6857
|
+
0 === (workInProgress$32.mode & 1) &&
|
|
6858
|
+
workInProgress$32 !== returnFiber
|
|
6669
6859
|
) {
|
|
6670
|
-
workInProgress$
|
|
6671
|
-
sourceFiber.flags |=
|
|
6672
|
-
sourceFiber.flags &= -
|
|
6860
|
+
workInProgress$32.flags |= 128;
|
|
6861
|
+
sourceFiber.flags |= 65536;
|
|
6862
|
+
sourceFiber.flags &= -26437;
|
|
6673
6863
|
if (1 === sourceFiber.tag)
|
|
6674
6864
|
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
6675
6865
|
else {
|
|
@@ -6700,12 +6890,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6700
6890
|
);
|
|
6701
6891
|
wakeable.then(ping, ping);
|
|
6702
6892
|
}
|
|
6703
|
-
workInProgress$
|
|
6704
|
-
workInProgress$
|
|
6893
|
+
workInProgress$32.flags |= 32768;
|
|
6894
|
+
workInProgress$32.lanes = thrownValue;
|
|
6705
6895
|
break a;
|
|
6706
6896
|
}
|
|
6707
|
-
workInProgress$
|
|
6708
|
-
} while (null !== workInProgress$
|
|
6897
|
+
workInProgress$32 = workInProgress$32.return;
|
|
6898
|
+
} while (null !== workInProgress$32);
|
|
6709
6899
|
value = Error(
|
|
6710
6900
|
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
|
6711
6901
|
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
|
|
@@ -6714,47 +6904,47 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6714
6904
|
5 !== workInProgressRootExitStatus &&
|
|
6715
6905
|
(workInProgressRootExitStatus = 2);
|
|
6716
6906
|
value = createCapturedValue(value, sourceFiber);
|
|
6717
|
-
workInProgress$
|
|
6907
|
+
workInProgress$32 = returnFiber;
|
|
6718
6908
|
do {
|
|
6719
|
-
switch (workInProgress$
|
|
6909
|
+
switch (workInProgress$32.tag) {
|
|
6720
6910
|
case 3:
|
|
6721
6911
|
root = value;
|
|
6722
|
-
workInProgress$
|
|
6912
|
+
workInProgress$32.flags |= 32768;
|
|
6723
6913
|
thrownValue &= -thrownValue;
|
|
6724
|
-
workInProgress$
|
|
6725
|
-
var update$
|
|
6726
|
-
workInProgress$
|
|
6914
|
+
workInProgress$32.lanes |= thrownValue;
|
|
6915
|
+
var update$33 = createRootErrorUpdate(
|
|
6916
|
+
workInProgress$32,
|
|
6727
6917
|
root,
|
|
6728
6918
|
thrownValue
|
|
6729
6919
|
);
|
|
6730
|
-
enqueueCapturedUpdate(workInProgress$
|
|
6920
|
+
enqueueCapturedUpdate(workInProgress$32, update$33);
|
|
6731
6921
|
break a;
|
|
6732
6922
|
case 1:
|
|
6733
6923
|
root = value;
|
|
6734
|
-
var ctor = workInProgress$
|
|
6735
|
-
instance = workInProgress$
|
|
6924
|
+
var ctor = workInProgress$32.type,
|
|
6925
|
+
instance = workInProgress$32.stateNode;
|
|
6736
6926
|
if (
|
|
6737
|
-
0 === (workInProgress$
|
|
6927
|
+
0 === (workInProgress$32.flags & 128) &&
|
|
6738
6928
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
6739
6929
|
(null !== instance &&
|
|
6740
6930
|
"function" === typeof instance.componentDidCatch &&
|
|
6741
6931
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
6742
6932
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
6743
6933
|
) {
|
|
6744
|
-
workInProgress$
|
|
6934
|
+
workInProgress$32.flags |= 32768;
|
|
6745
6935
|
thrownValue &= -thrownValue;
|
|
6746
|
-
workInProgress$
|
|
6747
|
-
var update$
|
|
6748
|
-
workInProgress$
|
|
6936
|
+
workInProgress$32.lanes |= thrownValue;
|
|
6937
|
+
var update$36 = createClassErrorUpdate(
|
|
6938
|
+
workInProgress$32,
|
|
6749
6939
|
root,
|
|
6750
6940
|
thrownValue
|
|
6751
6941
|
);
|
|
6752
|
-
enqueueCapturedUpdate(workInProgress$
|
|
6942
|
+
enqueueCapturedUpdate(workInProgress$32, update$36);
|
|
6753
6943
|
break a;
|
|
6754
6944
|
}
|
|
6755
6945
|
}
|
|
6756
|
-
workInProgress$
|
|
6757
|
-
} while (null !== workInProgress$
|
|
6946
|
+
workInProgress$32 = workInProgress$32.return;
|
|
6947
|
+
} while (null !== workInProgress$32);
|
|
6758
6948
|
}
|
|
6759
6949
|
completeUnitOfWork(erroredWork);
|
|
6760
6950
|
} catch (yetAnotherThrownValue) {
|
|
@@ -6774,7 +6964,7 @@ function pushDispatcher() {
|
|
|
6774
6964
|
}
|
|
6775
6965
|
function renderRootSync(root, lanes) {
|
|
6776
6966
|
var prevExecutionContext = executionContext;
|
|
6777
|
-
executionContext |=
|
|
6967
|
+
executionContext |= 2;
|
|
6778
6968
|
var prevDispatcher = pushDispatcher();
|
|
6779
6969
|
(workInProgressRoot === root && workInProgressRootRenderLanes === lanes) ||
|
|
6780
6970
|
prepareFreshStack(root, lanes);
|
|
@@ -6815,7 +7005,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6815
7005
|
do {
|
|
6816
7006
|
var current = completedWork.alternate;
|
|
6817
7007
|
unitOfWork = completedWork.return;
|
|
6818
|
-
if (0 === (completedWork.flags &
|
|
7008
|
+
if (0 === (completedWork.flags & 16384)) {
|
|
6819
7009
|
if (
|
|
6820
7010
|
((current = completeWork(current, completedWork, subtreeRenderLanes)),
|
|
6821
7011
|
null !== current)
|
|
@@ -6826,12 +7016,12 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6826
7016
|
} else {
|
|
6827
7017
|
current = unwindWork(completedWork);
|
|
6828
7018
|
if (null !== current) {
|
|
6829
|
-
current.flags &=
|
|
7019
|
+
current.flags &= 16383;
|
|
6830
7020
|
workInProgress = current;
|
|
6831
7021
|
return;
|
|
6832
7022
|
}
|
|
6833
7023
|
null !== unitOfWork &&
|
|
6834
|
-
((unitOfWork.flags |=
|
|
7024
|
+
((unitOfWork.flags |= 16384),
|
|
6835
7025
|
(unitOfWork.subtreeFlags = 0),
|
|
6836
7026
|
(unitOfWork.deletions = null));
|
|
6837
7027
|
}
|
|
@@ -6860,7 +7050,7 @@ function commitRoot(root) {
|
|
|
6860
7050
|
function commitRootImpl(root, renderPriorityLevel) {
|
|
6861
7051
|
do flushPassiveEffects();
|
|
6862
7052
|
while (null !== rootWithPendingPassiveEffects);
|
|
6863
|
-
if (0 !== (executionContext &
|
|
7053
|
+
if (0 !== (executionContext & 6))
|
|
6864
7054
|
throw Error("Should not already be working.");
|
|
6865
7055
|
var finishedWork = root.finishedWork,
|
|
6866
7056
|
lanes = root.finishedLanes;
|
|
@@ -6882,7 +7072,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6882
7072
|
0 === (finishedWork.flags & 1040)) ||
|
|
6883
7073
|
rootDoesHavePassiveEffects ||
|
|
6884
7074
|
((rootDoesHavePassiveEffects = !0),
|
|
6885
|
-
scheduleCallback(NormalPriority, function() {
|
|
7075
|
+
scheduleCallback$1(NormalPriority, function() {
|
|
6886
7076
|
flushPassiveEffects();
|
|
6887
7077
|
return null;
|
|
6888
7078
|
}));
|
|
@@ -6893,7 +7083,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6893
7083
|
var previousPriority = currentUpdatePriority;
|
|
6894
7084
|
currentUpdatePriority = 1;
|
|
6895
7085
|
var prevExecutionContext = executionContext;
|
|
6896
|
-
executionContext |=
|
|
7086
|
+
executionContext |= 4;
|
|
6897
7087
|
ReactCurrentOwner$2.current = null;
|
|
6898
7088
|
commitBeforeMutationEffects(root, finishedWork);
|
|
6899
7089
|
commitMutationEffects(root, finishedWork);
|
|
@@ -6910,11 +7100,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6910
7100
|
(pendingPassiveEffectsLanes = lanes));
|
|
6911
7101
|
remainingLanes = root.pendingLanes;
|
|
6912
7102
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
6913
|
-
0 !== (remainingLanes & 1)
|
|
6914
|
-
? root === rootWithNestedUpdates
|
|
6915
|
-
? nestedUpdateCount++
|
|
6916
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
6917
|
-
: (nestedUpdateCount = 0);
|
|
6918
7103
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
6919
7104
|
ensureRootIsScheduled(root, now());
|
|
6920
7105
|
if (hasUncaughtError)
|
|
@@ -6922,10 +7107,15 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6922
7107
|
(root = firstUncaughtError),
|
|
6923
7108
|
(firstUncaughtError = null),
|
|
6924
7109
|
root);
|
|
6925
|
-
if (0 !== (executionContext & 4)) return null;
|
|
6926
7110
|
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
6927
7111
|
0 !== root.tag &&
|
|
6928
7112
|
flushPassiveEffects();
|
|
7113
|
+
remainingLanes = root.pendingLanes;
|
|
7114
|
+
0 !== (remainingLanes & 1)
|
|
7115
|
+
? root === rootWithNestedUpdates
|
|
7116
|
+
? nestedUpdateCount++
|
|
7117
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
7118
|
+
: (nestedUpdateCount = 0);
|
|
6929
7119
|
flushSyncCallbacks();
|
|
6930
7120
|
return null;
|
|
6931
7121
|
}
|
|
@@ -6943,10 +7133,10 @@ function flushPassiveEffects() {
|
|
|
6943
7133
|
renderPriority = rootWithPendingPassiveEffects;
|
|
6944
7134
|
rootWithPendingPassiveEffects = null;
|
|
6945
7135
|
pendingPassiveEffectsLanes = 0;
|
|
6946
|
-
if (0 !== (executionContext &
|
|
7136
|
+
if (0 !== (executionContext & 6))
|
|
6947
7137
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
6948
7138
|
var prevExecutionContext = executionContext;
|
|
6949
|
-
executionContext |=
|
|
7139
|
+
executionContext |= 4;
|
|
6950
7140
|
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
6951
7141
|
var fiber = nextEffect,
|
|
6952
7142
|
child = fiber.child;
|
|
@@ -6961,7 +7151,7 @@ function flushPassiveEffects() {
|
|
|
6961
7151
|
case 0:
|
|
6962
7152
|
case 11:
|
|
6963
7153
|
case 15:
|
|
6964
|
-
commitHookEffectListUnmount(
|
|
7154
|
+
commitHookEffectListUnmount(8, fiber$jscomp$0, fiber);
|
|
6965
7155
|
}
|
|
6966
7156
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
6967
7157
|
if (null !== child$jscomp$0)
|
|
@@ -6972,8 +7162,8 @@ function flushPassiveEffects() {
|
|
|
6972
7162
|
fiber$jscomp$0 = nextEffect;
|
|
6973
7163
|
var sibling = fiber$jscomp$0.sibling,
|
|
6974
7164
|
returnFiber = fiber$jscomp$0.return;
|
|
7165
|
+
detachFiberAfterEffects(fiber$jscomp$0);
|
|
6975
7166
|
if (fiber$jscomp$0 === fiberToDelete) {
|
|
6976
|
-
detachFiberAfterEffects(fiber$jscomp$0);
|
|
6977
7167
|
nextEffect = null;
|
|
6978
7168
|
break;
|
|
6979
7169
|
}
|
|
@@ -7011,7 +7201,7 @@ function flushPassiveEffects() {
|
|
|
7011
7201
|
case 0:
|
|
7012
7202
|
case 11:
|
|
7013
7203
|
case 15:
|
|
7014
|
-
commitHookEffectListUnmount(
|
|
7204
|
+
commitHookEffectListUnmount(9, fiber, fiber.return);
|
|
7015
7205
|
}
|
|
7016
7206
|
var sibling$jscomp$0 = fiber.sibling;
|
|
7017
7207
|
if (null !== sibling$jscomp$0) {
|
|
@@ -7037,7 +7227,7 @@ function flushPassiveEffects() {
|
|
|
7037
7227
|
case 0:
|
|
7038
7228
|
case 11:
|
|
7039
7229
|
case 15:
|
|
7040
|
-
commitHookEffectListMount(
|
|
7230
|
+
commitHookEffectListMount(9, deletions);
|
|
7041
7231
|
}
|
|
7042
7232
|
} catch (error) {
|
|
7043
7233
|
captureCommitPhaseError(deletions, deletions.return, error);
|
|
@@ -7164,7 +7354,6 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
|
|
|
7164
7354
|
}
|
|
7165
7355
|
var beginWork$1;
|
|
7166
7356
|
beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
7167
|
-
var updateLanes = workInProgress.lanes;
|
|
7168
7357
|
if (null !== current)
|
|
7169
7358
|
if (
|
|
7170
7359
|
current.memoizedProps !== workInProgress.pendingProps ||
|
|
@@ -7172,158 +7361,98 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7172
7361
|
)
|
|
7173
7362
|
didReceiveUpdate = !0;
|
|
7174
7363
|
else {
|
|
7175
|
-
if (
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
pushContextProvider(workInProgress);
|
|
7187
|
-
break;
|
|
7188
|
-
case 4:
|
|
7189
|
-
pushHostContainer(
|
|
7190
|
-
workInProgress,
|
|
7191
|
-
workInProgress.stateNode.containerInfo
|
|
7192
|
-
);
|
|
7193
|
-
break;
|
|
7194
|
-
case 10:
|
|
7195
|
-
updateLanes = workInProgress.type._context;
|
|
7196
|
-
var nextValue = workInProgress.memoizedProps.value;
|
|
7197
|
-
push(valueCursor, updateLanes._currentValue);
|
|
7198
|
-
updateLanes._currentValue = nextValue;
|
|
7199
|
-
break;
|
|
7200
|
-
case 13:
|
|
7201
|
-
if (null !== workInProgress.memoizedState) {
|
|
7202
|
-
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
7203
|
-
return updateSuspenseComponent(
|
|
7204
|
-
current,
|
|
7205
|
-
workInProgress,
|
|
7206
|
-
renderLanes
|
|
7207
|
-
);
|
|
7208
|
-
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
7209
|
-
workInProgress = bailoutOnAlreadyFinishedWork(
|
|
7210
|
-
current,
|
|
7211
|
-
workInProgress,
|
|
7212
|
-
renderLanes
|
|
7213
|
-
);
|
|
7214
|
-
return null !== workInProgress ? workInProgress.sibling : null;
|
|
7215
|
-
}
|
|
7216
|
-
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
7217
|
-
break;
|
|
7218
|
-
case 19:
|
|
7219
|
-
updateLanes = 0 !== (renderLanes & workInProgress.childLanes);
|
|
7220
|
-
if (0 !== (current.flags & 128)) {
|
|
7221
|
-
if (updateLanes)
|
|
7222
|
-
return updateSuspenseListComponent(
|
|
7223
|
-
current,
|
|
7224
|
-
workInProgress,
|
|
7225
|
-
renderLanes
|
|
7226
|
-
);
|
|
7227
|
-
workInProgress.flags |= 128;
|
|
7228
|
-
}
|
|
7229
|
-
nextValue = workInProgress.memoizedState;
|
|
7230
|
-
null !== nextValue &&
|
|
7231
|
-
((nextValue.rendering = null),
|
|
7232
|
-
(nextValue.tail = null),
|
|
7233
|
-
(nextValue.lastEffect = null));
|
|
7234
|
-
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
7235
|
-
if (updateLanes) break;
|
|
7236
|
-
else return null;
|
|
7237
|
-
case 22:
|
|
7238
|
-
case 23:
|
|
7239
|
-
return (
|
|
7240
|
-
(workInProgress.lanes = 0),
|
|
7241
|
-
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
7242
|
-
);
|
|
7243
|
-
}
|
|
7244
|
-
return bailoutOnAlreadyFinishedWork(
|
|
7245
|
-
current,
|
|
7246
|
-
workInProgress,
|
|
7247
|
-
renderLanes
|
|
7364
|
+
if (
|
|
7365
|
+
0 === (current.lanes & renderLanes) &&
|
|
7366
|
+
0 === (workInProgress.flags & 128)
|
|
7367
|
+
)
|
|
7368
|
+
return (
|
|
7369
|
+
(didReceiveUpdate = !1),
|
|
7370
|
+
attemptEarlyBailoutIfNoScheduledUpdate(
|
|
7371
|
+
current,
|
|
7372
|
+
workInProgress,
|
|
7373
|
+
renderLanes
|
|
7374
|
+
)
|
|
7248
7375
|
);
|
|
7249
|
-
|
|
7250
|
-
didReceiveUpdate = 0 !== (current.flags & 32768) ? !0 : !1;
|
|
7376
|
+
didReceiveUpdate = 0 !== (current.flags & 65536) ? !0 : !1;
|
|
7251
7377
|
}
|
|
7252
7378
|
else didReceiveUpdate = !1;
|
|
7253
7379
|
workInProgress.lanes = 0;
|
|
7254
7380
|
switch (workInProgress.tag) {
|
|
7255
7381
|
case 2:
|
|
7256
|
-
|
|
7382
|
+
var Component = workInProgress.type;
|
|
7257
7383
|
null !== current &&
|
|
7258
7384
|
((current.alternate = null),
|
|
7259
7385
|
(workInProgress.alternate = null),
|
|
7260
7386
|
(workInProgress.flags |= 2));
|
|
7261
7387
|
current = workInProgress.pendingProps;
|
|
7262
|
-
|
|
7388
|
+
var context = getMaskedContext(
|
|
7389
|
+
workInProgress,
|
|
7390
|
+
contextStackCursor.current
|
|
7391
|
+
);
|
|
7263
7392
|
prepareToReadContext(workInProgress, renderLanes);
|
|
7264
|
-
|
|
7393
|
+
context = renderWithHooks(
|
|
7265
7394
|
null,
|
|
7266
7395
|
workInProgress,
|
|
7267
|
-
|
|
7396
|
+
Component,
|
|
7268
7397
|
current,
|
|
7269
|
-
|
|
7398
|
+
context,
|
|
7270
7399
|
renderLanes
|
|
7271
7400
|
);
|
|
7272
7401
|
workInProgress.flags |= 1;
|
|
7273
7402
|
if (
|
|
7274
|
-
"object" === typeof
|
|
7275
|
-
null !==
|
|
7276
|
-
"function" === typeof
|
|
7277
|
-
void 0 ===
|
|
7403
|
+
"object" === typeof context &&
|
|
7404
|
+
null !== context &&
|
|
7405
|
+
"function" === typeof context.render &&
|
|
7406
|
+
void 0 === context.$$typeof
|
|
7278
7407
|
) {
|
|
7279
7408
|
workInProgress.tag = 1;
|
|
7280
7409
|
workInProgress.memoizedState = null;
|
|
7281
7410
|
workInProgress.updateQueue = null;
|
|
7282
|
-
if (isContextProvider(
|
|
7411
|
+
if (isContextProvider(Component)) {
|
|
7283
7412
|
var hasContext = !0;
|
|
7284
7413
|
pushContextProvider(workInProgress);
|
|
7285
7414
|
} else hasContext = !1;
|
|
7286
7415
|
workInProgress.memoizedState =
|
|
7287
|
-
null !==
|
|
7288
|
-
?
|
|
7416
|
+
null !== context.state && void 0 !== context.state
|
|
7417
|
+
? context.state
|
|
7289
7418
|
: null;
|
|
7290
7419
|
initializeUpdateQueue(workInProgress);
|
|
7291
|
-
|
|
7292
|
-
workInProgress.stateNode =
|
|
7293
|
-
|
|
7294
|
-
mountClassInstance(workInProgress,
|
|
7420
|
+
context.updater = classComponentUpdater;
|
|
7421
|
+
workInProgress.stateNode = context;
|
|
7422
|
+
context._reactInternals = workInProgress;
|
|
7423
|
+
mountClassInstance(workInProgress, Component, current, renderLanes);
|
|
7295
7424
|
workInProgress = finishClassComponent(
|
|
7296
7425
|
null,
|
|
7297
7426
|
workInProgress,
|
|
7298
|
-
|
|
7427
|
+
Component,
|
|
7299
7428
|
!0,
|
|
7300
7429
|
hasContext,
|
|
7301
7430
|
renderLanes
|
|
7302
7431
|
);
|
|
7303
7432
|
} else
|
|
7304
7433
|
(workInProgress.tag = 0),
|
|
7305
|
-
reconcileChildren(null, workInProgress,
|
|
7434
|
+
reconcileChildren(null, workInProgress, context, renderLanes),
|
|
7306
7435
|
(workInProgress = workInProgress.child);
|
|
7307
7436
|
return workInProgress;
|
|
7308
7437
|
case 16:
|
|
7309
|
-
|
|
7438
|
+
Component = workInProgress.elementType;
|
|
7310
7439
|
a: {
|
|
7311
7440
|
null !== current &&
|
|
7312
7441
|
((current.alternate = null),
|
|
7313
7442
|
(workInProgress.alternate = null),
|
|
7314
7443
|
(workInProgress.flags |= 2));
|
|
7315
7444
|
current = workInProgress.pendingProps;
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
workInProgress.type =
|
|
7319
|
-
|
|
7320
|
-
current = resolveDefaultProps(
|
|
7321
|
-
switch (
|
|
7445
|
+
context = Component._init;
|
|
7446
|
+
Component = context(Component._payload);
|
|
7447
|
+
workInProgress.type = Component;
|
|
7448
|
+
context = workInProgress.tag = resolveLazyComponentTag(Component);
|
|
7449
|
+
current = resolveDefaultProps(Component, current);
|
|
7450
|
+
switch (context) {
|
|
7322
7451
|
case 0:
|
|
7323
7452
|
workInProgress = updateFunctionComponent(
|
|
7324
7453
|
null,
|
|
7325
7454
|
workInProgress,
|
|
7326
|
-
|
|
7455
|
+
Component,
|
|
7327
7456
|
current,
|
|
7328
7457
|
renderLanes
|
|
7329
7458
|
);
|
|
@@ -7332,7 +7461,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7332
7461
|
workInProgress = updateClassComponent(
|
|
7333
7462
|
null,
|
|
7334
7463
|
workInProgress,
|
|
7335
|
-
|
|
7464
|
+
Component,
|
|
7336
7465
|
current,
|
|
7337
7466
|
renderLanes
|
|
7338
7467
|
);
|
|
@@ -7341,7 +7470,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7341
7470
|
workInProgress = updateForwardRef(
|
|
7342
7471
|
null,
|
|
7343
7472
|
workInProgress,
|
|
7344
|
-
|
|
7473
|
+
Component,
|
|
7345
7474
|
current,
|
|
7346
7475
|
renderLanes
|
|
7347
7476
|
);
|
|
@@ -7350,79 +7479,78 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7350
7479
|
workInProgress = updateMemoComponent(
|
|
7351
7480
|
null,
|
|
7352
7481
|
workInProgress,
|
|
7353
|
-
|
|
7354
|
-
resolveDefaultProps(
|
|
7355
|
-
updateLanes,
|
|
7482
|
+
Component,
|
|
7483
|
+
resolveDefaultProps(Component.type, current),
|
|
7356
7484
|
renderLanes
|
|
7357
7485
|
);
|
|
7358
7486
|
break a;
|
|
7359
7487
|
}
|
|
7360
7488
|
throw Error(
|
|
7361
7489
|
"Element type is invalid. Received a promise that resolves to: " +
|
|
7362
|
-
|
|
7490
|
+
Component +
|
|
7363
7491
|
". Lazy element type must resolve to a class or function."
|
|
7364
7492
|
);
|
|
7365
7493
|
}
|
|
7366
7494
|
return workInProgress;
|
|
7367
7495
|
case 0:
|
|
7368
7496
|
return (
|
|
7369
|
-
(
|
|
7370
|
-
(
|
|
7371
|
-
(
|
|
7372
|
-
workInProgress.elementType ===
|
|
7373
|
-
?
|
|
7374
|
-
: resolveDefaultProps(
|
|
7497
|
+
(Component = workInProgress.type),
|
|
7498
|
+
(context = workInProgress.pendingProps),
|
|
7499
|
+
(context =
|
|
7500
|
+
workInProgress.elementType === Component
|
|
7501
|
+
? context
|
|
7502
|
+
: resolveDefaultProps(Component, context)),
|
|
7375
7503
|
updateFunctionComponent(
|
|
7376
7504
|
current,
|
|
7377
7505
|
workInProgress,
|
|
7378
|
-
|
|
7379
|
-
|
|
7506
|
+
Component,
|
|
7507
|
+
context,
|
|
7380
7508
|
renderLanes
|
|
7381
7509
|
)
|
|
7382
7510
|
);
|
|
7383
7511
|
case 1:
|
|
7384
7512
|
return (
|
|
7385
|
-
(
|
|
7386
|
-
(
|
|
7387
|
-
(
|
|
7388
|
-
workInProgress.elementType ===
|
|
7389
|
-
?
|
|
7390
|
-
: resolveDefaultProps(
|
|
7513
|
+
(Component = workInProgress.type),
|
|
7514
|
+
(context = workInProgress.pendingProps),
|
|
7515
|
+
(context =
|
|
7516
|
+
workInProgress.elementType === Component
|
|
7517
|
+
? context
|
|
7518
|
+
: resolveDefaultProps(Component, context)),
|
|
7391
7519
|
updateClassComponent(
|
|
7392
7520
|
current,
|
|
7393
7521
|
workInProgress,
|
|
7394
|
-
|
|
7395
|
-
|
|
7522
|
+
Component,
|
|
7523
|
+
context,
|
|
7396
7524
|
renderLanes
|
|
7397
7525
|
)
|
|
7398
7526
|
);
|
|
7399
7527
|
case 3:
|
|
7400
7528
|
pushHostRootContext(workInProgress);
|
|
7401
|
-
|
|
7402
|
-
if (null === current || null ===
|
|
7529
|
+
Component = workInProgress.updateQueue;
|
|
7530
|
+
if (null === current || null === Component)
|
|
7403
7531
|
throw Error(
|
|
7404
7532
|
"If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue."
|
|
7405
7533
|
);
|
|
7406
|
-
|
|
7407
|
-
|
|
7534
|
+
context = workInProgress.pendingProps;
|
|
7535
|
+
Component = workInProgress.memoizedState.element;
|
|
7408
7536
|
cloneUpdateQueue(current, workInProgress);
|
|
7409
|
-
processUpdateQueue(workInProgress,
|
|
7410
|
-
|
|
7411
|
-
|
|
7537
|
+
processUpdateQueue(workInProgress, context, null, renderLanes);
|
|
7538
|
+
context = workInProgress.memoizedState.element;
|
|
7539
|
+
context === Component
|
|
7412
7540
|
? (workInProgress = bailoutOnAlreadyFinishedWork(
|
|
7413
7541
|
current,
|
|
7414
7542
|
workInProgress,
|
|
7415
7543
|
renderLanes
|
|
7416
7544
|
))
|
|
7417
|
-
: (reconcileChildren(current, workInProgress,
|
|
7545
|
+
: (reconcileChildren(current, workInProgress, context, renderLanes),
|
|
7418
7546
|
(workInProgress = workInProgress.child));
|
|
7419
7547
|
return workInProgress;
|
|
7420
7548
|
case 5:
|
|
7421
7549
|
return (
|
|
7422
7550
|
pushHostContext(workInProgress),
|
|
7423
|
-
(
|
|
7424
|
-
markRef(current, workInProgress),
|
|
7425
|
-
reconcileChildren(current, workInProgress,
|
|
7551
|
+
(Component = workInProgress.pendingProps.children),
|
|
7552
|
+
markRef$1(current, workInProgress),
|
|
7553
|
+
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7426
7554
|
workInProgress.child
|
|
7427
7555
|
);
|
|
7428
7556
|
case 6:
|
|
@@ -7435,35 +7563,30 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7435
7563
|
workInProgress,
|
|
7436
7564
|
workInProgress.stateNode.containerInfo
|
|
7437
7565
|
),
|
|
7438
|
-
(
|
|
7566
|
+
(Component = workInProgress.pendingProps),
|
|
7439
7567
|
null === current
|
|
7440
7568
|
? (workInProgress.child = reconcileChildFibers(
|
|
7441
7569
|
workInProgress,
|
|
7442
7570
|
null,
|
|
7443
|
-
|
|
7571
|
+
Component,
|
|
7444
7572
|
renderLanes
|
|
7445
7573
|
))
|
|
7446
|
-
: reconcileChildren(
|
|
7447
|
-
current,
|
|
7448
|
-
workInProgress,
|
|
7449
|
-
updateLanes,
|
|
7450
|
-
renderLanes
|
|
7451
|
-
),
|
|
7574
|
+
: reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7452
7575
|
workInProgress.child
|
|
7453
7576
|
);
|
|
7454
7577
|
case 11:
|
|
7455
7578
|
return (
|
|
7456
|
-
(
|
|
7457
|
-
(
|
|
7458
|
-
(
|
|
7459
|
-
workInProgress.elementType ===
|
|
7460
|
-
?
|
|
7461
|
-
: resolveDefaultProps(
|
|
7579
|
+
(Component = workInProgress.type),
|
|
7580
|
+
(context = workInProgress.pendingProps),
|
|
7581
|
+
(context =
|
|
7582
|
+
workInProgress.elementType === Component
|
|
7583
|
+
? context
|
|
7584
|
+
: resolveDefaultProps(Component, context)),
|
|
7462
7585
|
updateForwardRef(
|
|
7463
7586
|
current,
|
|
7464
7587
|
workInProgress,
|
|
7465
|
-
|
|
7466
|
-
|
|
7588
|
+
Component,
|
|
7589
|
+
context,
|
|
7467
7590
|
renderLanes
|
|
7468
7591
|
)
|
|
7469
7592
|
);
|
|
@@ -7499,16 +7622,16 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7499
7622
|
);
|
|
7500
7623
|
case 10:
|
|
7501
7624
|
a: {
|
|
7502
|
-
|
|
7503
|
-
|
|
7625
|
+
Component = workInProgress.type._context;
|
|
7626
|
+
context = workInProgress.pendingProps;
|
|
7504
7627
|
hasContext = workInProgress.memoizedProps;
|
|
7505
|
-
var newValue =
|
|
7506
|
-
push(valueCursor,
|
|
7507
|
-
|
|
7628
|
+
var newValue = context.value;
|
|
7629
|
+
push(valueCursor, Component._currentValue);
|
|
7630
|
+
Component._currentValue = newValue;
|
|
7508
7631
|
if (null !== hasContext)
|
|
7509
7632
|
if (objectIs(hasContext.value, newValue)) {
|
|
7510
7633
|
if (
|
|
7511
|
-
hasContext.children ===
|
|
7634
|
+
hasContext.children === context.children &&
|
|
7512
7635
|
!didPerformWorkStackCursor.current
|
|
7513
7636
|
) {
|
|
7514
7637
|
workInProgress = bailoutOnAlreadyFinishedWork(
|
|
@@ -7533,7 +7656,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7533
7656
|
null !== dependency;
|
|
7534
7657
|
|
|
7535
7658
|
) {
|
|
7536
|
-
if (dependency.context ===
|
|
7659
|
+
if (dependency.context === Component) {
|
|
7537
7660
|
if (1 === newValue.tag) {
|
|
7538
7661
|
dependency = createUpdate(-1, renderLanes & -renderLanes);
|
|
7539
7662
|
dependency.tag = 2;
|
|
@@ -7584,7 +7707,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7584
7707
|
reconcileChildren(
|
|
7585
7708
|
current,
|
|
7586
7709
|
workInProgress,
|
|
7587
|
-
|
|
7710
|
+
context.children,
|
|
7588
7711
|
renderLanes
|
|
7589
7712
|
);
|
|
7590
7713
|
workInProgress = workInProgress.child;
|
|
@@ -7592,29 +7715,25 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7592
7715
|
return workInProgress;
|
|
7593
7716
|
case 9:
|
|
7594
7717
|
return (
|
|
7595
|
-
(
|
|
7596
|
-
(
|
|
7718
|
+
(context = workInProgress.type),
|
|
7719
|
+
(Component = workInProgress.pendingProps.children),
|
|
7597
7720
|
prepareToReadContext(workInProgress, renderLanes),
|
|
7598
|
-
(
|
|
7599
|
-
(
|
|
7721
|
+
(context = readContext(context)),
|
|
7722
|
+
(Component = Component(context)),
|
|
7600
7723
|
(workInProgress.flags |= 1),
|
|
7601
|
-
reconcileChildren(current, workInProgress,
|
|
7724
|
+
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7602
7725
|
workInProgress.child
|
|
7603
7726
|
);
|
|
7604
7727
|
case 14:
|
|
7605
7728
|
return (
|
|
7606
|
-
(
|
|
7607
|
-
(
|
|
7608
|
-
|
|
7609
|
-
workInProgress.pendingProps
|
|
7610
|
-
)),
|
|
7611
|
-
(hasContext = resolveDefaultProps(nextValue.type, hasContext)),
|
|
7729
|
+
(Component = workInProgress.type),
|
|
7730
|
+
(context = resolveDefaultProps(Component, workInProgress.pendingProps)),
|
|
7731
|
+
(context = resolveDefaultProps(Component.type, context)),
|
|
7612
7732
|
updateMemoComponent(
|
|
7613
7733
|
current,
|
|
7614
7734
|
workInProgress,
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
updateLanes,
|
|
7735
|
+
Component,
|
|
7736
|
+
context,
|
|
7618
7737
|
renderLanes
|
|
7619
7738
|
)
|
|
7620
7739
|
);
|
|
@@ -7624,32 +7743,31 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7624
7743
|
workInProgress,
|
|
7625
7744
|
workInProgress.type,
|
|
7626
7745
|
workInProgress.pendingProps,
|
|
7627
|
-
updateLanes,
|
|
7628
7746
|
renderLanes
|
|
7629
7747
|
);
|
|
7630
7748
|
case 17:
|
|
7631
7749
|
return (
|
|
7632
|
-
(
|
|
7633
|
-
(
|
|
7634
|
-
(
|
|
7635
|
-
workInProgress.elementType ===
|
|
7636
|
-
?
|
|
7637
|
-
: resolveDefaultProps(
|
|
7750
|
+
(Component = workInProgress.type),
|
|
7751
|
+
(context = workInProgress.pendingProps),
|
|
7752
|
+
(context =
|
|
7753
|
+
workInProgress.elementType === Component
|
|
7754
|
+
? context
|
|
7755
|
+
: resolveDefaultProps(Component, context)),
|
|
7638
7756
|
null !== current &&
|
|
7639
7757
|
((current.alternate = null),
|
|
7640
7758
|
(workInProgress.alternate = null),
|
|
7641
7759
|
(workInProgress.flags |= 2)),
|
|
7642
7760
|
(workInProgress.tag = 1),
|
|
7643
|
-
isContextProvider(
|
|
7761
|
+
isContextProvider(Component)
|
|
7644
7762
|
? ((current = !0), pushContextProvider(workInProgress))
|
|
7645
7763
|
: (current = !1),
|
|
7646
7764
|
prepareToReadContext(workInProgress, renderLanes),
|
|
7647
|
-
constructClassInstance(workInProgress,
|
|
7648
|
-
mountClassInstance(workInProgress,
|
|
7765
|
+
constructClassInstance(workInProgress, Component, context),
|
|
7766
|
+
mountClassInstance(workInProgress, Component, context, renderLanes),
|
|
7649
7767
|
finishClassComponent(
|
|
7650
7768
|
null,
|
|
7651
7769
|
workInProgress,
|
|
7652
|
-
|
|
7770
|
+
Component,
|
|
7653
7771
|
!0,
|
|
7654
7772
|
current,
|
|
7655
7773
|
renderLanes
|
|
@@ -7668,6 +7786,9 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7668
7786
|
"). This error is likely caused by a bug in React. Please file an issue."
|
|
7669
7787
|
);
|
|
7670
7788
|
};
|
|
7789
|
+
function scheduleCallback$1(priorityLevel, callback) {
|
|
7790
|
+
return scheduleCallback(priorityLevel, callback);
|
|
7791
|
+
}
|
|
7671
7792
|
function FiberNode(tag, pendingProps, key, mode) {
|
|
7672
7793
|
this.tag = tag;
|
|
7673
7794
|
this.key = key;
|
|
@@ -7718,7 +7839,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
7718
7839
|
(workInProgress.flags = 0),
|
|
7719
7840
|
(workInProgress.subtreeFlags = 0),
|
|
7720
7841
|
(workInProgress.deletions = null));
|
|
7721
|
-
workInProgress.flags = current.flags &
|
|
7842
|
+
workInProgress.flags = current.flags & 3670016;
|
|
7722
7843
|
workInProgress.childLanes = current.childLanes;
|
|
7723
7844
|
workInProgress.lanes = current.lanes;
|
|
7724
7845
|
workInProgress.child = current.child;
|
|
@@ -7757,7 +7878,7 @@ function createFiberFromTypeAndProps(
|
|
|
7757
7878
|
break;
|
|
7758
7879
|
case REACT_STRICT_MODE_TYPE:
|
|
7759
7880
|
fiberTag = 8;
|
|
7760
|
-
mode |=
|
|
7881
|
+
mode |= 8;
|
|
7761
7882
|
break;
|
|
7762
7883
|
case REACT_PROFILER_TYPE:
|
|
7763
7884
|
return (
|
|
@@ -7953,6 +8074,95 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
7953
8074
|
function emptyFindFiberByHostInstance() {
|
|
7954
8075
|
return null;
|
|
7955
8076
|
}
|
|
8077
|
+
var emptyObject$1 = {},
|
|
8078
|
+
createHierarchy,
|
|
8079
|
+
getHostNode,
|
|
8080
|
+
getHostProps,
|
|
8081
|
+
lastNonHostInstance,
|
|
8082
|
+
getOwnerHierarchy,
|
|
8083
|
+
traverseOwnerTreeUp;
|
|
8084
|
+
createHierarchy = function(fiberHierarchy) {
|
|
8085
|
+
return fiberHierarchy.map(function(fiber) {
|
|
8086
|
+
return {
|
|
8087
|
+
name: getComponentNameFromType(fiber.type),
|
|
8088
|
+
getInspectorData: function(findNodeHandle) {
|
|
8089
|
+
return {
|
|
8090
|
+
props: getHostProps(fiber),
|
|
8091
|
+
source: fiber._debugSource,
|
|
8092
|
+
measure: function(callback) {
|
|
8093
|
+
var hostFiber = findCurrentHostFiber(fiber);
|
|
8094
|
+
if (
|
|
8095
|
+
(hostFiber =
|
|
8096
|
+
null != hostFiber &&
|
|
8097
|
+
null !== hostFiber.stateNode &&
|
|
8098
|
+
hostFiber.stateNode.node)
|
|
8099
|
+
)
|
|
8100
|
+
nativeFabricUIManager.measure(hostFiber, callback);
|
|
8101
|
+
else
|
|
8102
|
+
return ReactNativePrivateInterface.UIManager.measure(
|
|
8103
|
+
getHostNode(fiber, findNodeHandle),
|
|
8104
|
+
callback
|
|
8105
|
+
);
|
|
8106
|
+
}
|
|
8107
|
+
};
|
|
8108
|
+
}
|
|
8109
|
+
};
|
|
8110
|
+
});
|
|
8111
|
+
};
|
|
8112
|
+
getHostNode = function(fiber, findNodeHandle) {
|
|
8113
|
+
for (var hostNode; fiber; ) {
|
|
8114
|
+
null !== fiber.stateNode &&
|
|
8115
|
+
5 === fiber.tag &&
|
|
8116
|
+
(hostNode = findNodeHandle(fiber.stateNode));
|
|
8117
|
+
if (hostNode) return hostNode;
|
|
8118
|
+
fiber = fiber.child;
|
|
8119
|
+
}
|
|
8120
|
+
return null;
|
|
8121
|
+
};
|
|
8122
|
+
getHostProps = function(fiber) {
|
|
8123
|
+
return (fiber = findCurrentHostFiber(fiber))
|
|
8124
|
+
? fiber.memoizedProps || emptyObject$1
|
|
8125
|
+
: emptyObject$1;
|
|
8126
|
+
};
|
|
8127
|
+
exports.getInspectorDataForInstance = function(closestInstance) {
|
|
8128
|
+
if (!closestInstance)
|
|
8129
|
+
return {
|
|
8130
|
+
hierarchy: [],
|
|
8131
|
+
props: emptyObject$1,
|
|
8132
|
+
selectedIndex: null,
|
|
8133
|
+
source: null
|
|
8134
|
+
};
|
|
8135
|
+
closestInstance = findCurrentFiberUsingSlowPath(closestInstance);
|
|
8136
|
+
var fiberHierarchy = getOwnerHierarchy(closestInstance),
|
|
8137
|
+
instance = lastNonHostInstance(fiberHierarchy);
|
|
8138
|
+
closestInstance = createHierarchy(fiberHierarchy);
|
|
8139
|
+
var props = getHostProps(instance),
|
|
8140
|
+
source = instance._debugSource;
|
|
8141
|
+
fiberHierarchy = fiberHierarchy.indexOf(instance);
|
|
8142
|
+
return {
|
|
8143
|
+
hierarchy: closestInstance,
|
|
8144
|
+
props: props,
|
|
8145
|
+
selectedIndex: fiberHierarchy,
|
|
8146
|
+
source: source
|
|
8147
|
+
};
|
|
8148
|
+
};
|
|
8149
|
+
getOwnerHierarchy = function(instance) {
|
|
8150
|
+
var hierarchy = [];
|
|
8151
|
+
traverseOwnerTreeUp(hierarchy, instance);
|
|
8152
|
+
return hierarchy;
|
|
8153
|
+
};
|
|
8154
|
+
lastNonHostInstance = function(hierarchy) {
|
|
8155
|
+
for (var i = hierarchy.length - 1; 1 < i; i--) {
|
|
8156
|
+
var instance = hierarchy[i];
|
|
8157
|
+
if (5 !== instance.tag) return instance;
|
|
8158
|
+
}
|
|
8159
|
+
return hierarchy[0];
|
|
8160
|
+
};
|
|
8161
|
+
traverseOwnerTreeUp = function(hierarchy, instance) {
|
|
8162
|
+
instance &&
|
|
8163
|
+
(hierarchy.unshift(instance),
|
|
8164
|
+
traverseOwnerTreeUp(hierarchy, instance._debugOwner));
|
|
8165
|
+
};
|
|
7956
8166
|
function findNodeHandle(componentOrHandle) {
|
|
7957
8167
|
if (null == componentOrHandle) return null;
|
|
7958
8168
|
if ("number" === typeof componentOrHandle) return componentOrHandle;
|
|
@@ -7989,7 +8199,7 @@ var roots = new Map(),
|
|
|
7989
8199
|
devToolsConfig$jscomp$inline_986 = {
|
|
7990
8200
|
findFiberByHostInstance: getInstanceFromTag,
|
|
7991
8201
|
bundleType: 0,
|
|
7992
|
-
version: "
|
|
8202
|
+
version: "18.0.0-e8feb11b6-20210915",
|
|
7993
8203
|
rendererPackageName: "react-native-renderer",
|
|
7994
8204
|
rendererConfig: {
|
|
7995
8205
|
getInspectorDataForViewTag: function() {
|
|
@@ -8004,7 +8214,7 @@ var roots = new Map(),
|
|
|
8004
8214
|
}.bind(null, findNodeHandle)
|
|
8005
8215
|
}
|
|
8006
8216
|
};
|
|
8007
|
-
var internals$jscomp$
|
|
8217
|
+
var internals$jscomp$inline_1239 = {
|
|
8008
8218
|
bundleType: devToolsConfig$jscomp$inline_986.bundleType,
|
|
8009
8219
|
version: devToolsConfig$jscomp$inline_986.version,
|
|
8010
8220
|
rendererPackageName: devToolsConfig$jscomp$inline_986.rendererPackageName,
|
|
@@ -8015,6 +8225,7 @@ var internals$jscomp$inline_1243 = {
|
|
|
8015
8225
|
overrideProps: null,
|
|
8016
8226
|
overridePropsDeletePath: null,
|
|
8017
8227
|
overridePropsRenamePath: null,
|
|
8228
|
+
setErrorHandler: null,
|
|
8018
8229
|
setSuspenseHandler: null,
|
|
8019
8230
|
scheduleUpdate: null,
|
|
8020
8231
|
currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher,
|
|
@@ -8030,19 +8241,20 @@ var internals$jscomp$inline_1243 = {
|
|
|
8030
8241
|
scheduleRoot: null,
|
|
8031
8242
|
setRefreshHandler: null,
|
|
8032
8243
|
getCurrentFiber: null,
|
|
8033
|
-
|
|
8244
|
+
getIsStrictMode: null,
|
|
8245
|
+
reconcilerVersion: "18.0.0-e8feb11b6-20210915"
|
|
8034
8246
|
};
|
|
8035
8247
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8036
|
-
var hook$jscomp$
|
|
8248
|
+
var hook$jscomp$inline_1240 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8037
8249
|
if (
|
|
8038
|
-
!hook$jscomp$
|
|
8039
|
-
hook$jscomp$
|
|
8250
|
+
!hook$jscomp$inline_1240.isDisabled &&
|
|
8251
|
+
hook$jscomp$inline_1240.supportsFiber
|
|
8040
8252
|
)
|
|
8041
8253
|
try {
|
|
8042
|
-
(rendererID = hook$jscomp$
|
|
8043
|
-
internals$jscomp$
|
|
8254
|
+
(rendererID = hook$jscomp$inline_1240.inject(
|
|
8255
|
+
internals$jscomp$inline_1239
|
|
8044
8256
|
)),
|
|
8045
|
-
(injectedHook = hook$jscomp$
|
|
8257
|
+
(injectedHook = hook$jscomp$inline_1240);
|
|
8046
8258
|
} catch (err) {}
|
|
8047
8259
|
}
|
|
8048
8260
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
|
@@ -8062,12 +8274,10 @@ exports.createPortal = function(children, containerTag) {
|
|
|
8062
8274
|
};
|
|
8063
8275
|
exports.dispatchCommand = function(handle, command, args) {
|
|
8064
8276
|
null != handle._nativeTag &&
|
|
8065
|
-
(handle._internalInstanceHandle
|
|
8066
|
-
?
|
|
8067
|
-
|
|
8068
|
-
command,
|
|
8069
|
-
args
|
|
8070
|
-
)
|
|
8277
|
+
(null != handle._internalInstanceHandle
|
|
8278
|
+
? ((handle = handle._internalInstanceHandle.stateNode),
|
|
8279
|
+
null != handle &&
|
|
8280
|
+
nativeFabricUIManager.dispatchCommand(handle.node, command, args))
|
|
8071
8281
|
: ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(
|
|
8072
8282
|
handle._nativeTag,
|
|
8073
8283
|
command,
|
|
@@ -8112,11 +8322,10 @@ exports.render = function(element, containerTag, callback) {
|
|
|
8112
8322
|
};
|
|
8113
8323
|
exports.sendAccessibilityEvent = function(handle, eventType) {
|
|
8114
8324
|
null != handle._nativeTag &&
|
|
8115
|
-
(handle._internalInstanceHandle
|
|
8116
|
-
?
|
|
8117
|
-
|
|
8118
|
-
eventType
|
|
8119
|
-
)
|
|
8325
|
+
(null != handle._internalInstanceHandle
|
|
8326
|
+
? ((handle = handle._internalInstanceHandle.stateNode),
|
|
8327
|
+
null != handle &&
|
|
8328
|
+
nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType))
|
|
8120
8329
|
: ReactNativePrivateInterface.legacySendAccessibilityEvent(
|
|
8121
8330
|
handle._nativeTag,
|
|
8122
8331
|
eventType
|