react-native-tvos 0.69.8-2 → 0.71.7-0rc0
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.d.ts +80 -0
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +4 -3
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +1 -0
- package/Libraries/Alert/Alert.d.ts +91 -0
- package/Libraries/Alert/Alert.js +25 -5
- package/Libraries/Alert/Alert.js.flow +49 -0
- package/Libraries/Alert/NativeAlertManager.js +3 -0
- package/Libraries/Alert/RCTAlertManager.ios.js +2 -1
- package/Libraries/Animated/Animated.d.ts +615 -0
- package/Libraries/Animated/Animated.js +13 -11
- package/Libraries/Animated/AnimatedEvent.js +19 -21
- package/Libraries/Animated/AnimatedImplementation.js +38 -26
- package/Libraries/Animated/AnimatedMock.js +15 -12
- package/Libraries/Animated/AnimatedWeb.js +2 -2
- package/Libraries/Animated/Easing.d.ts +37 -0
- package/Libraries/Animated/Easing.js +2 -2
- package/Libraries/Animated/NativeAnimatedHelper.js +247 -112
- package/Libraries/Animated/NativeAnimatedModule.js +4 -0
- package/Libraries/Animated/NativeAnimatedTurboModule.js +4 -0
- package/Libraries/Animated/SpringConfig.js +2 -7
- package/Libraries/Animated/animations/Animation.js +3 -4
- package/Libraries/Animated/animations/DecayAnimation.js +5 -8
- package/Libraries/Animated/animations/SpringAnimation.js +12 -17
- package/Libraries/Animated/animations/TimingAnimation.js +12 -16
- package/Libraries/Animated/bezier.js +2 -2
- package/Libraries/Animated/components/AnimatedFlatList.js +5 -6
- package/Libraries/Animated/components/AnimatedImage.js +5 -6
- package/Libraries/Animated/components/AnimatedScrollView.js +110 -14
- package/Libraries/Animated/components/AnimatedSectionList.js +4 -5
- package/Libraries/Animated/components/AnimatedText.js +5 -6
- package/Libraries/Animated/components/AnimatedView.js +5 -6
- package/Libraries/Animated/createAnimatedComponent.js +14 -14
- package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +2 -2
- package/Libraries/Animated/nodes/AnimatedAddition.js +9 -9
- package/Libraries/Animated/nodes/AnimatedColor.js +56 -35
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +9 -9
- package/Libraries/Animated/nodes/AnimatedDivision.js +10 -10
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +28 -30
- package/Libraries/Animated/nodes/AnimatedModulo.js +9 -9
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +10 -11
- package/Libraries/Animated/nodes/AnimatedNode.js +10 -8
- package/Libraries/Animated/nodes/AnimatedProps.js +15 -25
- package/Libraries/Animated/nodes/AnimatedStyle.js +14 -21
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +10 -10
- package/Libraries/Animated/nodes/AnimatedTracking.js +8 -12
- package/Libraries/Animated/nodes/AnimatedTransform.js +39 -32
- package/Libraries/Animated/nodes/AnimatedValue.js +23 -15
- package/Libraries/Animated/nodes/AnimatedValueXY.js +31 -7
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +4 -5
- package/Libraries/Animated/useAnimatedProps.js +9 -16
- package/Libraries/Animated/useAnimatedValue.d.ts +15 -0
- package/Libraries/Animated/useAnimatedValue.js +25 -0
- package/Libraries/AppDelegate/RCTAppDelegate.h +123 -0
- package/Libraries/AppDelegate/RCTAppDelegate.mm +171 -0
- package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +73 -0
- package/Libraries/AppState/AppState.d.ts +58 -0
- package/Libraries/AppState/AppState.js +3 -39
- package/Libraries/AppState/NativeAppState.js +1 -0
- package/Libraries/BatchedBridge/MessageQueue.js +28 -18
- package/Libraries/BatchedBridge/NativeModules.d.ts +25 -0
- package/Libraries/BatchedBridge/NativeModules.js +4 -4
- package/Libraries/Blob/Blob.js +6 -0
- package/Libraries/Blob/BlobManager.js +5 -3
- package/Libraries/Blob/File.js +2 -3
- package/Libraries/Blob/FileReader.js +6 -11
- package/Libraries/Blob/NativeBlobModule.js +1 -0
- package/Libraries/Blob/NativeFileReaderModule.js +1 -0
- package/Libraries/Blob/RCTBlobCollector.h +0 -2
- package/Libraries/Blob/RCTBlobCollector.mm +27 -23
- package/Libraries/Blob/RCTBlobManager.h +1 -1
- package/Libraries/Blob/RCTBlobManager.mm +34 -28
- package/Libraries/Blob/RCTFileReaderModule.mm +24 -17
- package/Libraries/Blob/React-RCTBlob.podspec +5 -2
- package/Libraries/Blob/URL.js +11 -9
- package/Libraries/BugReporting/NativeBugReporting.js +1 -0
- package/Libraries/BugReporting/getReactData.js +1 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +157 -0
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.flow.js +208 -0
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +40 -28
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js +1 -0
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +5 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +86 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.flow.js +58 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +7 -8
- package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +2 -3
- package/Libraries/Components/Button.d.ts +42 -0
- package/Libraries/Components/Button.flow.js +265 -0
- package/Libraries/Components/Button.js +62 -18
- package/Libraries/Components/Clipboard/Clipboard.d.ts +28 -0
- package/Libraries/Components/Clipboard/NativeClipboard.js +1 -0
- package/Libraries/Components/DatePicker/DatePickerIOS.android.js +4 -2
- package/Libraries/Components/DatePicker/DatePickerIOS.d.ts +92 -0
- package/Libraries/Components/{MaskedView/MaskedViewIOS.android.js → DatePicker/DatePickerIOS.flow.android.js} +3 -2
- package/Libraries/Components/DatePicker/DatePickerIOS.flow.ios.js +113 -0
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +8 -7
- package/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +6 -5
- package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +1 -0
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +5 -4
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +17 -14
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +141 -0
- package/Libraries/Components/Keyboard/Keyboard.d.ts +109 -0
- package/Libraries/Components/Keyboard/Keyboard.js +35 -19
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +46 -0
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +35 -15
- package/Libraries/Components/Keyboard/NativeKeyboardObserver.js +1 -0
- package/Libraries/Components/Pressable/Pressable.d.ts +167 -0
- package/Libraries/Components/Pressable/Pressable.js +77 -25
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +5 -4
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +3 -3
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +83 -0
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js +2 -2
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +1 -1
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.d.ts +62 -0
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +4 -4
- package/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js +2 -2
- package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +5 -6
- package/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +4 -4
- package/Libraries/Components/RefreshControl/RefreshControl.d.ts +87 -0
- package/Libraries/Components/RefreshControl/RefreshControl.js +4 -3
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -3
- package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +2 -4
- package/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +24 -0
- package/Libraries/Components/SafeAreaView/SafeAreaView.flow.js +19 -0
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +8 -34
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -1
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +2 -1
- package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +2 -1
- package/Libraries/Components/ScrollView/ScrollView.d.ts +911 -0
- package/Libraries/Components/ScrollView/ScrollView.js +99 -62
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +3 -3
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +2 -1
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +3 -3
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +243 -267
- package/Libraries/Components/Slider/Slider.d.ts +132 -0
- package/Libraries/Components/Slider/Slider.js +9 -10
- package/Libraries/Components/Slider/SliderNativeComponent.js +4 -5
- package/Libraries/Components/Sound/NativeSoundManager.js +1 -0
- package/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +1 -0
- package/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js +1 -0
- package/Libraries/Components/StatusBar/StatusBar.d.ts +138 -0
- package/Libraries/Components/StatusBar/StatusBar.js +21 -18
- package/Libraries/Components/Switch/AndroidSwitchNativeComponent.js +8 -8
- package/Libraries/Components/Switch/Switch.d.ts +115 -0
- package/Libraries/Components/Switch/Switch.js +7 -14
- package/Libraries/Components/Switch/SwitchNativeComponent.js +9 -4
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +40 -12
- package/Libraries/Components/TextInput/InputAccessoryView.d.ts +34 -0
- package/Libraries/Components/TextInput/InputAccessoryView.js +17 -17
- package/Libraries/Components/TextInput/InputAccessoryView.js.flow +25 -0
- package/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js +1 -1
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +3 -2
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +3 -2
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +3 -1
- package/Libraries/Components/TextInput/TextInput.d.ts +855 -0
- package/Libraries/Components/TextInput/TextInput.flow.js +1057 -0
- package/Libraries/Components/TextInput/TextInput.js +361 -39
- package/Libraries/Components/TextInput/TextInputNativeCommands.js +2 -2
- package/Libraries/Components/TextInput/TextInputState.js +22 -5
- package/Libraries/Components/ToastAndroid/NativeToastAndroid.js +1 -0
- package/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +47 -0
- package/Libraries/Components/Touchable/PooledClass.js +16 -4
- package/Libraries/Components/Touchable/Touchable.d.ts +90 -0
- package/Libraries/Components/Touchable/Touchable.flow.js +258 -0
- package/Libraries/Components/Touchable/Touchable.js +62 -14
- package/Libraries/Components/Touchable/TouchableBounce.js +44 -10
- package/Libraries/Components/Touchable/TouchableHighlight.d.ts +68 -0
- package/Libraries/Components/Touchable/TouchableHighlight.js +32 -10
- package/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +114 -0
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +60 -22
- package/Libraries/Components/Touchable/TouchableOpacity.d.ts +109 -0
- package/Libraries/Components/Touchable/TouchableOpacity.js +55 -18
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +143 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +67 -13
- package/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js +1 -1
- package/Libraries/Components/UnimplementedViews/UnimplementedView.js +1 -1
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +13 -9
- package/Libraries/Components/View/View.d.ts +29 -0
- package/Libraries/Components/View/View.js +92 -10
- package/Libraries/Components/View/ViewAccessibility.d.ts +373 -0
- package/Libraries/Components/View/ViewAccessibility.js +70 -1
- package/Libraries/Components/View/ViewNativeComponent.js +3 -3
- package/Libraries/Components/View/ViewPropTypes.d.ts +245 -0
- package/Libraries/Components/View/ViewPropTypes.js +107 -20
- package/Libraries/Core/Devtools/openFileInEditor.js +3 -0
- package/Libraries/Core/Devtools/parseErrorStack.js +1 -1
- package/Libraries/Core/Devtools/symbolicateStackTrace.js +2 -2
- package/Libraries/Core/ExceptionsManager.js +10 -0
- package/Libraries/Core/ExtendedError.js +11 -8
- package/Libraries/Core/InitializeCore.js +2 -1
- package/Libraries/Core/NativeExceptionsManager.js +3 -4
- package/Libraries/Core/RawEventEmitter.js +2 -1
- package/Libraries/Core/ReactFiberErrorDialog.js +2 -2
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -0
- package/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js +1 -0
- package/Libraries/Core/Timers/JSTimers.js +15 -13
- package/Libraries/Core/Timers/NativeTiming.js +1 -0
- package/Libraries/Core/polyfillPromise.js +0 -32
- package/Libraries/Core/setUpBatchedBridge.js +6 -6
- package/Libraries/Core/setUpDeveloperTools.js +4 -6
- package/Libraries/Core/setUpPerformance.js +1 -1
- package/Libraries/Core/setUpReactDevTools.js +4 -1
- package/Libraries/Core/setUpRegeneratorRuntime.js +1 -1
- package/Libraries/Core/setUpTimers.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.d.ts +70 -0
- package/Libraries/EventEmitter/NativeEventEmitter.js +1 -13
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +30 -0
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
- package/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +32 -0
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +1 -0
- package/Libraries/Events/EventPolyfill.js +1 -1
- package/Libraries/FBLazyVector/BUCK +2 -1
- package/Libraries/FBLazyVector/FBLazyVector/FBLazyIterator.h +9 -12
- package/Libraries/FBLazyVector/FBLazyVector/FBLazyVector.h +9 -6
- package/Libraries/HeapCapture/NativeJSCHeapCapture.js +1 -0
- package/Libraries/Image/AssetSourceResolver.js +6 -8
- package/Libraries/Image/Image.android.js +68 -48
- package/Libraries/Image/Image.d.ts +322 -0
- package/Libraries/Image/Image.flow.js +64 -0
- package/Libraries/Image/Image.ios.js +61 -31
- package/Libraries/Image/ImageBackground.js +18 -7
- package/Libraries/Image/ImageBackground.js.flow +17 -0
- package/Libraries/Image/ImageInjection.js +2 -1
- package/Libraries/Image/ImageProps.js +88 -5
- package/Libraries/Image/ImageResizeMode.d.ts +49 -0
- package/Libraries/Image/ImageSource.d.ts +76 -0
- package/Libraries/Image/ImageSource.js +7 -7
- package/Libraries/Image/ImageSourceUtils.js +80 -0
- package/Libraries/Image/ImageUtils.js +21 -0
- package/Libraries/Image/ImageViewNativeComponent.js +8 -5
- package/Libraries/Image/ImageViewNativeComponent.js.flow +45 -0
- package/Libraries/Image/NativeImageEditor.js +1 -0
- package/Libraries/Image/NativeImageLoaderAndroid.js +1 -0
- package/Libraries/Image/NativeImageLoaderIOS.js +1 -0
- package/Libraries/Image/NativeImageStoreAndroid.js +1 -0
- package/Libraries/Image/NativeImageStoreIOS.js +1 -0
- package/Libraries/Image/RCTAnimatedImage.m +5 -2
- package/Libraries/Image/RCTDisplayWeakRefreshable.h +1 -0
- package/Libraries/Image/RCTDisplayWeakRefreshable.m +4 -2
- package/Libraries/Image/RCTGIFImageDecoder.mm +7 -4
- package/Libraries/Image/RCTImageBlurUtils.m +22 -17
- package/Libraries/Image/RCTImageCache.h +7 -7
- package/Libraries/Image/RCTImageCache.m +16 -21
- package/Libraries/Image/RCTImageDataDecoder.h +1 -1
- package/Libraries/Image/RCTImageEditingManager.mm +53 -44
- package/Libraries/Image/RCTImageLoader.h +7 -7
- package/Libraries/Image/RCTImageLoader.mm +417 -367
- package/Libraries/Image/RCTImageLoaderProtocol.h +14 -17
- package/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h +2 -2
- package/Libraries/Image/RCTImageStoreManager.mm +30 -25
- package/Libraries/Image/RCTImageURLLoader.h +11 -8
- package/Libraries/Image/RCTImageURLLoaderWithAttribution.h +6 -4
- package/Libraries/Image/RCTImageURLLoaderWithAttribution.mm +3 -1
- package/Libraries/Image/RCTImageUtils.h +19 -18
- package/Libraries/Image/RCTImageUtils.m +61 -67
- package/Libraries/Image/RCTImageView.h +2 -2
- package/Libraries/Image/RCTImageView.mm +50 -43
- package/Libraries/Image/RCTImageViewManager.mm +45 -41
- package/Libraries/Image/RCTLocalAssetImageLoader.mm +12 -10
- package/Libraries/Image/RCTResizeMode.h +1 -1
- package/Libraries/Image/RCTResizeMode.m +12 -8
- package/Libraries/Image/RCTUIImageViewAnimated.m +21 -13
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Image/TextInlineImageNativeComponent.js +4 -3
- package/Libraries/Image/TextInlineImageNativeComponent.js.flow +27 -0
- package/Libraries/Image/nativeImageSource.js +2 -2
- package/Libraries/Image/resolveAssetSource.js +5 -5
- package/Libraries/Inspector/BorderBox.js +1 -1
- package/Libraries/Inspector/BoxInspector.js +3 -4
- package/Libraries/Inspector/DevtoolsOverlay.js +213 -0
- package/Libraries/Inspector/ElementBox.js +6 -7
- package/Libraries/Inspector/ElementProperties.js +10 -11
- package/Libraries/Inspector/Inspector.js +22 -108
- package/Libraries/Inspector/InspectorOverlay.js +5 -5
- package/Libraries/Inspector/InspectorPanel.js +12 -10
- package/Libraries/Inspector/NetworkOverlay.js +19 -10
- package/Libraries/Inspector/PerformanceOverlay.js +3 -3
- package/Libraries/Inspector/StyleInspector.js +2 -2
- package/Libraries/Inspector/getInspectorDataForViewAtPoint.js +71 -0
- package/Libraries/Interaction/BridgeSpyStallHandler.js +1 -1
- package/Libraries/Interaction/InteractionManager.d.ts +74 -0
- package/Libraries/Interaction/InteractionManager.js +8 -8
- package/Libraries/Interaction/NativeFrameRateLogger.js +1 -0
- package/Libraries/Interaction/PanResponder.d.ts +202 -0
- package/Libraries/Interaction/PanResponder.flow.js +257 -0
- package/Libraries/Interaction/PanResponder.js +20 -17
- package/Libraries/JSInspector/JSInspector.js +0 -3
- package/Libraries/JSInspector/NetworkAgent.js +3 -3
- package/Libraries/LayoutAnimation/LayoutAnimation.d.ts +84 -0
- package/Libraries/LayoutAnimation/LayoutAnimation.js +4 -3
- package/Libraries/Linking/Linking.d.ts +61 -0
- package/Libraries/Linking/Linking.js +3 -13
- package/Libraries/Linking/NativeIntentAndroid.js +1 -0
- package/Libraries/Linking/NativeLinkingManager.js +1 -0
- package/Libraries/LinkingIOS/RCTLinkingManager.h +5 -5
- package/Libraries/LinkingIOS/RCTLinkingManager.mm +75 -63
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/Lists/CellRenderMask.js +13 -3
- package/Libraries/Lists/ChildListCollection.js +72 -0
- package/Libraries/Lists/FillRateHelper.js +28 -17
- package/Libraries/Lists/FlatList.d.ts +251 -0
- package/Libraries/Lists/FlatList.js +90 -75
- package/Libraries/Lists/FlatList.js.flow +115 -0
- package/Libraries/Lists/SectionList.d.ts +258 -0
- package/Libraries/Lists/SectionList.js +7 -5
- package/Libraries/Lists/SectionListModern.js +6 -6
- package/Libraries/Lists/StateSafePureComponent.js +85 -0
- package/Libraries/Lists/ViewabilityHelper.js +39 -14
- package/Libraries/Lists/VirtualizeUtils.js +48 -31
- package/Libraries/Lists/VirtualizedList.d.ts +347 -0
- package/Libraries/Lists/VirtualizedList.js +605 -900
- package/Libraries/Lists/VirtualizedListCellRenderer.js +259 -0
- package/Libraries/Lists/VirtualizedListContext.js +8 -48
- package/Libraries/Lists/VirtualizedListProps.js +279 -0
- package/Libraries/Lists/VirtualizedSectionList.js +18 -11
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +10 -9
- package/Libraries/LogBox/Data/LogBoxLog.js +5 -5
- package/Libraries/LogBox/Data/LogBoxSymbolication.js +4 -4
- package/Libraries/LogBox/Data/parseLogBoxLog.js +6 -4
- package/Libraries/LogBox/LogBox.d.ts +28 -0
- package/Libraries/LogBox/LogBox.js +14 -12
- package/Libraries/LogBox/LogBoxInspectorContainer.js +3 -2
- package/Libraries/LogBox/LogBoxNotificationContainer.js +2 -2
- package/Libraries/LogBox/UI/AnsiHighlight.js +7 -5
- package/Libraries/LogBox/UI/LogBoxButton.js +7 -6
- package/Libraries/LogBox/UI/LogBoxInspector.js +6 -6
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +12 -8
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +3 -3
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +7 -6
- package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +6 -5
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +7 -6
- package/Libraries/LogBox/UI/LogBoxInspectorSection.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +3 -6
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +5 -5
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +12 -7
- package/Libraries/LogBox/UI/LogBoxMessage.js +3 -3
- package/Libraries/LogBox/UI/LogBoxNotification.js +6 -5
- package/Libraries/Modal/Modal.d.ts +104 -0
- package/Libraries/Modal/Modal.js +14 -14
- package/Libraries/Modal/NativeModalManager.js +1 -0
- package/Libraries/Modal/RCTModalHostViewNativeComponent.js +3 -3
- package/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.h +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m +6 -9
- package/Libraries/NativeAnimation/Drivers/RCTEventAnimation.h +1 -2
- package/Libraries/NativeAnimation/Drivers/RCTEventAnimation.m +2 -4
- package/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.h +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m +14 -21
- package/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.h +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m +8 -22
- package/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.m +1 -2
- package/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h +2 -3
- package/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.m +3 -5
- package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +2 -4
- package/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.m +7 -4
- package/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.m +1 -2
- package/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.m +14 -20
- package/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.m +1 -2
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +13 -16
- package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +5 -7
- package/Libraries/NativeAnimation/Nodes/RCTSubtractionAnimatedNode.h +0 -1
- package/Libraries/NativeAnimation/Nodes/RCTSubtractionAnimatedNode.m +1 -3
- package/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.h +0 -1
- package/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.m +3 -8
- package/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.m +4 -6
- package/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.m +1 -2
- package/Libraries/NativeAnimation/RCTAnimationUtils.h +14 -12
- package/Libraries/NativeAnimation/RCTAnimationUtils.m +15 -19
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.h +6 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +82 -69
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +11 -20
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +55 -64
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.h +5 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +68 -55
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/NativeComponent/BaseViewConfig.android.js +36 -20
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +34 -15
- package/Libraries/NativeComponent/NativeComponentRegistry.js +5 -4
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +1 -0
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +1 -1
- package/Libraries/NativeComponent/ViewConfig.js +1 -0
- package/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js +1 -0
- package/Libraries/NativeModules/specs/NativeDevMenu.js +1 -0
- package/Libraries/NativeModules/specs/NativeDevSettings.js +1 -0
- package/Libraries/NativeModules/specs/NativeDeviceEventManager.js +1 -0
- package/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js +1 -0
- package/Libraries/NativeModules/specs/NativeLogBox.js +1 -0
- package/Libraries/NativeModules/specs/NativeRedBox.js +1 -0
- package/Libraries/NativeModules/specs/NativeSourceCode.js +1 -0
- package/Libraries/Network/NativeNetworkingAndroid.js +1 -0
- package/Libraries/Network/NativeNetworkingIOS.js +1 -0
- package/Libraries/Network/RCTDataRequestHandler.mm +8 -11
- package/Libraries/Network/RCTFileRequestHandler.mm +10 -16
- package/Libraries/Network/RCTHTTPRequestHandler.h +4 -3
- package/Libraries/Network/RCTHTTPRequestHandler.mm +19 -23
- package/Libraries/Network/RCTNetworkTask.mm +2 -3
- package/Libraries/Network/RCTNetworking.android.js +4 -3
- package/Libraries/Network/RCTNetworking.ios.js +3 -2
- package/Libraries/Network/RCTNetworking.mm +189 -168
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/Network/XMLHttpRequest.js +9 -11
- package/Libraries/Network/convertRequestBody.js +1 -2
- package/Libraries/NewAppScreen/components/DebugInstructions.js +4 -1
- package/Libraries/NewAppScreen/components/Header.js +6 -2
- package/Libraries/NewAppScreen/components/HermesBadge.js +8 -9
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +8 -9
- package/Libraries/NewAppScreen/components/ReloadInstructions.js +4 -1
- package/Libraries/NewAppScreen/index.js +1 -1
- package/Libraries/Performance/NativeJSCSamplingProfiler.js +1 -0
- package/Libraries/Performance/PureComponentDebug.js +1 -0
- package/Libraries/Performance/QuickPerformanceLogger.js +34 -10
- package/Libraries/Performance/Systrace.d.ts +66 -0
- package/Libraries/Performance/Systrace.js +110 -195
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +10 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +115 -0
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +23 -4
- package/Libraries/Pressability/Pressability.js +38 -26
- package/Libraries/Pressability/PressabilityDebug.js +2 -2
- package/Libraries/Promise.js +0 -1
- package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -0
- package/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +295 -0
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +19 -14
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.h +2 -1
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +142 -103
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/RCTRequired/BUCK +2 -1
- package/Libraries/RCTRequired/RCTRequired/RCTRequired.h +31 -18
- package/Libraries/ReactNative/AppContainer.js +17 -7
- package/Libraries/ReactNative/AppRegistry.d.ts +119 -0
- package/Libraries/ReactNative/AppRegistry.js +30 -28
- package/Libraries/ReactNative/BridgelessUIManager.js +5 -2
- package/Libraries/ReactNative/FabricUIManager.js +3 -3
- package/Libraries/ReactNative/I18nManager.d.ts +25 -0
- package/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js +1 -0
- package/Libraries/ReactNative/NativeI18nManager.js +1 -0
- package/Libraries/ReactNative/NativeUIManager.js +1 -0
- package/Libraries/ReactNative/PaperUIManager.js +10 -10
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +21 -0
- package/Libraries/ReactNative/ReactNativeRuntimeDiagnostics.js +68 -0
- package/Libraries/ReactNative/RendererImplementation.js +112 -0
- package/Libraries/ReactNative/RendererProxy.d.ts +20 -0
- package/Libraries/ReactNative/RendererProxy.js +26 -0
- package/Libraries/ReactNative/RootTag.d.ts +13 -0
- package/Libraries/ReactNative/RootTag.js +0 -1
- package/Libraries/ReactNative/UIManager.d.ts +157 -0
- package/Libraries/ReactNative/UIManager.js +1 -1
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +1 -0
- package/Libraries/ReactNative/getNativeComponentAttributes.js +6 -7
- package/Libraries/ReactNative/renderApplication.js +39 -21
- package/Libraries/ReactNative/requireNativeComponent.d.ts +23 -0
- package/Libraries/ReactNative/requireNativeComponent.js +2 -2
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +10 -9
- package/Libraries/Renderer/README.md +22 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +4765 -3842
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +1632 -1271
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +1754 -1381
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +4726 -3782
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1706 -1342
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1720 -1343
- package/Libraries/Renderer/implementations/ReactNativeRenderer.d.ts +149 -0
- package/Libraries/Renderer/shims/ReactFabric.js +2 -2
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
- package/Libraries/Renderer/shims/ReactNative.js +2 -2
- package/Libraries/Renderer/shims/ReactNativeTypes.d.ts +141 -0
- package/Libraries/Renderer/shims/ReactNativeTypes.js +23 -22
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +8 -8
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Settings/NativeSettingsManager.js +1 -0
- package/Libraries/Settings/RCTSettingsManager.mm +10 -12
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Settings/Settings.d.ts +18 -0
- package/Libraries/Share/NativeShareModule.js +1 -0
- package/Libraries/Share/Share.d.ts +80 -0
- package/Libraries/Share/Share.js +7 -5
- package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +18 -0
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +9 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +25 -0
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +1 -0
- package/Libraries/StyleSheet/StyleSheet.d.ts +160 -0
- package/Libraries/StyleSheet/StyleSheet.js +15 -11
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +331 -0
- package/Libraries/StyleSheet/StyleSheetTypes.js +101 -24
- package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +2 -2
- package/Libraries/StyleSheet/flattenStyle.js +1 -1
- package/Libraries/StyleSheet/normalizeColor.js +3 -3
- package/Libraries/StyleSheet/private/_TransformStyle.js +26 -24
- package/Libraries/StyleSheet/processAspectRatio.js +63 -0
- package/Libraries/StyleSheet/processColor.d.ts +16 -0
- package/Libraries/StyleSheet/processColor.js +3 -4
- package/Libraries/StyleSheet/processColorArray.js +1 -0
- package/Libraries/StyleSheet/processFontVariant.js +30 -0
- package/Libraries/StyleSheet/processTransform.js +114 -103
- package/Libraries/StyleSheet/splitLayoutProps.js +7 -0
- package/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.mm +9 -12
- package/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.h +1 -1
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.mm +9 -14
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.mm +16 -12
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentOptions.h +1 -1
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.h +2 -3
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.mm +3 -8
- package/Libraries/Text/BaseText/RCTBaseTextShadowView.h +4 -2
- package/Libraries/Text/BaseText/RCTBaseTextShadowView.m +13 -12
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +2 -0
- package/Libraries/Text/RCTConvert+Text.m +16 -14
- package/Libraries/Text/RCTTextAttributes.h +3 -0
- package/Libraries/Text/RCTTextAttributes.m +75 -54
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -1
- package/Libraries/Text/Text/NSTextStorage+FontScaling.m +22 -42
- package/Libraries/Text/Text/RCTDynamicTypeRamp.h +37 -0
- package/Libraries/Text/Text/RCTDynamicTypeRamp.m +86 -0
- package/Libraries/Text/Text/RCTTextShadowView.m +152 -175
- package/Libraries/Text/Text/RCTTextView.m +38 -40
- package/Libraries/Text/Text/RCTTextViewManager.m +7 -8
- package/Libraries/Text/Text.d.ts +209 -0
- package/Libraries/Text/Text.js +105 -19
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +10 -23
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +1 -1
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +1 -1
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +18 -12
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +10 -6
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.h +1 -1
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +33 -14
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +1 -2
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +37 -47
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +2 -3
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +177 -155
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +19 -17
- package/Libraries/Text/TextInput/RCTInputAccessoryShadowView.m +1 -1
- package/Libraries/Text/TextInput/RCTInputAccessoryView.m +2 -3
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +1 -2
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +3 -4
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.m +1 -2
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +1 -1
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +7 -5
- package/Libraries/Text/TextNativeComponent.js +49 -41
- package/Libraries/Text/TextProps.js +64 -7
- package/{React/Views/RCTMaskedViewManager.h → Libraries/TurboModule/RCTExport.d.ts} +6 -6
- package/Libraries/TurboModule/TurboModuleRegistry.d.ts +13 -0
- package/Libraries/TurboModule/TurboModuleRegistry.js +3 -1
- package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +1 -0
- package/Libraries/TypeSafety/RCTConvertHelpers.h +22 -12
- package/Libraries/TypeSafety/RCTConvertHelpers.mm +2 -2
- package/Libraries/TypeSafety/RCTTypedModuleConstants.h +7 -5
- package/Libraries/TypeSafety/RCTTypedModuleConstants.mm +6 -4
- package/Libraries/Types/CoreEventTypes.d.ts +263 -0
- package/Libraries/Types/CoreEventTypes.js +139 -12
- package/Libraries/Utilities/AcessibilityMapping.js +154 -0
- package/Libraries/Utilities/Appearance.d.ts +43 -0
- package/Libraries/Utilities/Appearance.js +3 -3
- package/Libraries/Utilities/BackHandler.android.js +3 -5
- package/Libraries/Utilities/BackHandler.d.ts +38 -0
- package/Libraries/Utilities/DevSettings.d.ts +32 -0
- package/Libraries/Utilities/DevSettings.js +4 -2
- package/Libraries/Utilities/Dimensions.d.ts +79 -0
- package/Libraries/Utilities/Dimensions.js +2 -15
- package/Libraries/Utilities/GlobalPerformanceLogger.js +2 -1
- package/Libraries/Utilities/HMRClient.js +26 -11
- package/Libraries/Utilities/LoadingView.ios.js +1 -1
- package/Libraries/Utilities/NativeAppearance.js +1 -0
- package/Libraries/Utilities/NativeDevLoadingView.js +1 -0
- package/Libraries/Utilities/NativeDevSplitBundleLoader.js +1 -0
- package/Libraries/Utilities/NativeDeviceInfo.js +1 -0
- package/Libraries/Utilities/NativePlatformConstantsAndroid.js +1 -0
- package/Libraries/Utilities/NativePlatformConstantsIOS.js +1 -0
- package/Libraries/Utilities/PerformanceLoggerContext.js +3 -2
- package/Libraries/Utilities/PixelRatio.d.ts +64 -0
- package/Libraries/Utilities/PixelRatio.js.flow +21 -0
- package/Libraries/Utilities/Platform.android.js +11 -5
- package/Libraries/Utilities/Platform.d.ts +102 -0
- package/Libraries/Utilities/Platform.ios.js +12 -12
- package/Libraries/Utilities/PolyfillFunctions.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +12 -14
- package/Libraries/Utilities/codegenNativeCommands.js +2 -2
- package/Libraries/Utilities/codegenNativeComponent.js +4 -1
- package/Libraries/Utilities/createPerformanceLogger.d.ts +48 -0
- package/Libraries/Utilities/createPerformanceLogger.js +7 -8
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +2 -0
- package/Libraries/Utilities/differ/deepDiffer.js +1 -1
- package/Libraries/Utilities/groupByEveryN.js +1 -1
- package/Libraries/Utilities/stringifySafe.js +6 -2
- package/Libraries/Utilities/truncate.js +1 -1
- package/Libraries/Utilities/useColorScheme.js +3 -2
- package/Libraries/Utilities/useRefEffect.js +1 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -2
- package/Libraries/Vibration/NativeVibration.js +1 -0
- package/Libraries/Vibration/RCTVibration.mm +5 -5
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/Vibration/Vibration.d.ts +43 -0
- package/Libraries/Vibration/Vibration.js +2 -1
- package/Libraries/WebPerformance/NativePerformanceObserver.cpp +42 -0
- package/Libraries/WebPerformance/NativePerformanceObserver.h +64 -0
- package/Libraries/WebPerformance/NativePerformanceObserver.js +41 -0
- package/Libraries/WebPerformance/PerformanceObserver.js +223 -0
- package/Libraries/WebSocket/NativeWebSocketModule.js +1 -0
- package/Libraries/WebSocket/RCTReconnectingWebSocket.m +5 -2
- package/Libraries/WebSocket/RCTSRWebSocket.h +20 -16
- package/Libraries/WebSocket/RCTSRWebSocket.m +293 -187
- package/Libraries/WebSocket/WebSocket.js +12 -3
- package/Libraries/WebSocket/WebSocketInterceptor.js +1 -1
- package/Libraries/Wrapper/Example/RCTWrapperExampleView.m +5 -12
- package/Libraries/Wrapper/Example/RCTWrapperExampleViewController.m +2 -1
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.m +4 -5
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.m +2 -3
- package/Libraries/Wrapper/RCTWrapper.h +50 -48
- package/Libraries/Wrapper/RCTWrapperShadowView.m +9 -8
- package/Libraries/Wrapper/RCTWrapperView.m +1 -4
- package/Libraries/Wrapper/RCTWrapperViewControllerHostingView.m +1 -2
- package/Libraries/YellowBox/YellowBoxDeprecated.d.ts +19 -0
- package/Libraries/YellowBox/YellowBoxDeprecated.js +2 -3
- package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +2 -1
- package/Libraries/vendor/core/ErrorUtils.d.ts +15 -0
- package/Libraries/vendor/emitter/EventEmitter.d.ts +164 -0
- package/Libraries/vendor/emitter/EventEmitter.js +105 -12
- package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +73 -117
- package/React/AppSetup/RCTAppSetupUtils.h +6 -2
- package/React/AppSetup/RCTAppSetupUtils.mm +10 -8
- package/React/Base/RCTAssert.h +16 -10
- package/React/Base/RCTAssert.m +46 -31
- package/React/Base/RCTBridge.h +3 -107
- package/React/Base/RCTBridge.m +0 -18
- package/React/Base/RCTBridgeConstants.h +71 -0
- package/React/Base/RCTBridgeConstants.m +18 -0
- package/React/Base/RCTBridgeModule.h +4 -47
- package/React/Base/RCTBundleManager.h +23 -0
- package/React/Base/RCTBundleManager.m +1 -1
- package/React/Base/RCTConstants.h +55 -7
- package/React/Base/RCTConstants.m +30 -19
- package/React/Base/RCTConvert.h +3 -0
- package/React/Base/RCTConvert.m +29 -1
- package/React/Base/RCTDefines.h +2 -2
- package/React/Base/RCTEventDispatcherProtocol.h +5 -0
- package/React/Base/RCTKeyCommands.m +1 -1
- package/React/Base/RCTModuleData.mm +1 -0
- package/React/Base/RCTModuleMethod.mm +1 -1
- package/React/Base/RCTModuleRegistry.m +3 -1
- package/React/Base/RCTMultipartStreamReader.m +1 -0
- package/React/Base/RCTTurboModuleRegistry.h +29 -0
- package/React/Base/RCTVersion.m +3 -3
- package/React/Base/Surface/RCTSurface.mm +2 -1
- package/React/CoreModules/BUCK +6 -5
- package/React/CoreModules/CoreModulesPlugins.h +1 -1
- package/React/CoreModules/CoreModulesPlugins.mm +1 -1
- package/React/CoreModules/RCTAccessibilityManager.h +1 -0
- package/React/CoreModules/RCTAccessibilityManager.mm +11 -0
- package/React/CoreModules/RCTAlertController.m +35 -3
- package/React/CoreModules/RCTAlertManager.mm +55 -26
- package/React/CoreModules/RCTAppState.mm +2 -2
- package/React/CoreModules/RCTDevLoadingView.mm +15 -0
- package/React/CoreModules/RCTDevSettings.mm +1 -0
- package/React/CoreModules/RCTDeviceInfo.mm +28 -11
- package/React/CoreModules/RCTEventDispatcher.mm +12 -3
- package/React/CoreModules/RCTExceptionsManager.h +4 -1
- package/React/CoreModules/RCTExceptionsManager.mm +4 -12
- package/React/CoreModules/RCTLogBox.mm +2 -2
- package/React/CoreModules/RCTLogBoxView.mm +1 -1
- package/React/CoreModules/RCTRedBox.mm +7 -1
- package/React/CoreModules/React-CoreModules.podspec +2 -1
- package/React/CxxBridge/JSCExecutorFactory.mm +1 -1
- package/React/CxxBridge/RCTCxxBridge.mm +2 -1
- package/React/CxxBridge/RCTJSIExecutorRuntimeInstaller.mm +1 -3
- package/React/CxxModule/RCTNativeModule.mm +15 -0
- package/React/CxxUtils/RCTFollyConvert.mm +11 -4
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +0 -8
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h +1 -0
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm +1 -0
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +1 -11
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +8 -3
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +23 -5
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +16 -1
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +11 -7
- package/React/Fabric/Mounting/RCTComponentViewProtocol.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewRegistry.h +0 -5
- package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +0 -39
- package/React/Fabric/Mounting/RCTMountingManager.h +1 -1
- package/React/Fabric/Mounting/RCTMountingManager.mm +11 -9
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +1 -1
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +1 -1
- package/React/Fabric/RCTScheduler.mm +0 -9
- package/React/Fabric/RCTSurfacePresenter.h +2 -1
- package/React/Fabric/RCTSurfacePresenter.mm +20 -18
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.mm +3 -1
- package/React/Fabric/RCTSurfaceTouchHandler.mm +475 -61
- package/React/Fabric/Utils/RCTReactTaggedView.h +34 -0
- package/React/Fabric/Utils/RCTReactTaggedView.mm +55 -0
- package/React/Modules/RCTEventEmitter.h +2 -0
- package/React/Modules/RCTEventEmitter.m +15 -0
- package/React/Modules/RCTUIManager.m +1 -1
- package/React/Profiler/RCTProfile.h +20 -0
- package/React/React-RCTFabric.podspec +1 -1
- package/React/Tests/Mounting/RCTComponentViewRegistryTests.mm +1 -0
- package/React/Views/RCTBorderCurve.h +13 -0
- package/React/Views/RCTComponentData.m +1 -0
- package/React/Views/RCTDatePickerManager.m +4 -0
- package/React/Views/RCTFont.mm +80 -0
- package/React/Views/RCTModalHostViewManager.m +16 -12
- package/React/Views/RCTProgressViewManager.m +4 -0
- package/React/Views/RCTSegmentedControlManager.m +4 -0
- package/React/Views/RCTShadowView.h +3 -0
- package/React/Views/RCTShadowView.m +14 -0
- package/React/Views/RCTView.h +11 -3
- package/React/Views/RCTView.m +18 -2
- package/React/Views/RCTViewManager.m +23 -3
- package/React/Views/RCTViewUtils.h +1 -0
- package/React/Views/RCTWrapperViewController.m +9 -10
- package/React/Views/SafeAreaView/RCTSafeAreaView.h +0 -2
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +2 -70
- package/React/Views/SafeAreaView/RCTSafeAreaViewManager.m +0 -2
- package/React/third-party.xcconfig +1 -1
- package/React-Core.podspec +45 -8
- package/ReactAndroid/Android-prebuilt.mk +10 -2
- package/ReactAndroid/README.md +3 -2
- package/ReactAndroid/build.gradle +361 -148
- package/ReactAndroid/cmake-utils/ReactNative-application.cmake +119 -0
- package/ReactAndroid/cmake-utils/default-app-setup/CMakeLists.txt +31 -0
- package/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +88 -0
- package/ReactAndroid/cmake-utils/folly-flags.cmake +22 -0
- package/ReactAndroid/external-artifacts/build.gradle +44 -0
- package/ReactAndroid/gradle.properties +24 -14
- package/ReactAndroid/hermes-engine/build.gradle +27 -34
- package/ReactAndroid/publish.gradle +100 -0
- package/ReactAndroid/src/main/java/com/facebook/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK +4 -30
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/BUCK +5 -22
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java +14 -8
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.java +11 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/unicode/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/perftest/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackage.java +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackageTurboModuleManagerDelegate.java +67 -0
- package/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/JSEngineResolutionAlgorithm.java +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +41 -43
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +20 -45
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +19 -12
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +67 -5
- package/ReactAndroid/src/main/java/com/facebook/react/TurboReactPackage.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.java +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +248 -38
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +56 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/AssertionException.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BackgroundExecutor.java +19 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +10 -19
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ColorPropConverter.java +28 -21
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{DefaultNativeModuleCallExceptionHandler.java → DefaultJSExceptionHandler.java} +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedAsyncTask.java +3 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedResultAsyncTask.java +3 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedRunnable.java +3 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{NativeModuleCallExceptionHandler.java → JSExceptionHandler.java} +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ModuleSpec.java +2 -9
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +14 -14
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java +45 -43
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UiThreadUtil.java +17 -4
- package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/MapBuffer.kt +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.kt +22 -1
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/WritableMapBuffer.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/network/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +47 -41
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultComponentsRegistry.kt +35 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultJSIModulePackage.kt +58 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultNewArchitectureEntryPoint.kt +49 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactActivityDelegate.kt +46 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactNativeHost.kt +71 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultTurboModuleManagerDelegate.kt +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevLoadingViewController.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +24 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/CoreComponentsRegistry.java +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/{bridge/queue/NativeRunnable.java → fabric/CppComponentRegistry.java} +11 -8
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/CppViewMutationsWrapper.java +47 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/DevToolsReactPerfLogger.java +85 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.java +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +14 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +109 -40
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/GuardedFrameCallback.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/LayoutMetricsConversions.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +10 -8
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +11 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +467 -56
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchStringCommandMountItem.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +31 -17
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/BUCK +3 -25
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/module/annotations/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/module/model/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/module/processing/BUCK +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/module/processing/ReactModuleSpecProcessor.java +4 -5
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/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 +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/bundleloader/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/camera/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/common/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fabric/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +12 -18
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/RequestBodyUtil.java +14 -0
- 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 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +3 -3
- 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 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java +11 -3
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/processing/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/processing/ReactPropertyProcessor.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/surface/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/touch/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/BUCK +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK +4 -7
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +159 -17
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerAdapter.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerDelegate.java +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerInterface.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java +3 -14
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/GuardedFrameCallback.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java +380 -195
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +26 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +42 -37
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +5 -31
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +109 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java +51 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerResolver.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java +14 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +11 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEvent.java +225 -42
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEventHelper.java +166 -12
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/util/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/util/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/util/RNLog.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/common/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK +3 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java +30 -30
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/BUCK +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.java +9 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +15 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +17 -20
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +12 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +52 -12
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewAccessibilityDelegate.java +154 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +0 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderEvent.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLetterSpacingSpan.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +18 -17
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextUpdate.java +1 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +94 -14
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java +42 -17
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTypefaceUtils.java +60 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +75 -15
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +2 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +7 -18
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK +9 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +264 -120
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +139 -110
- package/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactMapBufferPropSetter.kt +37 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +24 -9
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundManager.java +11 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +74 -30
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +17 -0
- package/ReactAndroid/src/main/java/com/facebook/systrace/BUCK +5 -1
- package/ReactAndroid/src/main/java/com/facebook/systrace/Systrace.java +22 -8
- package/ReactAndroid/src/main/java/com/facebook/systrace/SystraceMessage.java +61 -8
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaDisplay.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaGutter.java +35 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java +3 -2
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNative.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeJNIBase.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeType.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java +2 -0
- package/ReactAndroid/src/main/jni/CMakeLists.txt +27 -13
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp +23 -0
- package/ReactAndroid/src/main/jni/react/cxxcomponents/BUCK +44 -0
- package/ReactAndroid/src/main/jni/react/cxxcomponents/CMakeLists.txt +22 -0
- package/ReactAndroid/src/main/jni/react/cxxcomponents/Component.h +66 -0
- package/ReactAndroid/src/main/jni/react/cxxcomponents/ComponentManager.h +26 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/BUCK +3 -3
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/Binding.cpp +54 -69
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/Binding.h +9 -16
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/CMakeLists.txt +1 -0
- package/ReactAndroid/src/main/jni/react/fabric/ComponentRegistryResolver.cpp +51 -0
- package/ReactAndroid/src/main/jni/react/fabric/ComponentRegistryResolver.h +47 -0
- package/ReactAndroid/src/main/jni/react/fabric/CppComponentRegistry.cpp +73 -0
- package/ReactAndroid/src/main/jni/react/fabric/CppComponentRegistry.h +64 -0
- package/ReactAndroid/src/main/jni/react/fabric/CppViewMutationsWrapper.cpp +100 -0
- package/ReactAndroid/src/main/jni/react/fabric/CppViewMutationsWrapper.h +39 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/FabricMountItem.cpp +11 -2
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/FabricMountItem.h +11 -2
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/FabricMountingManager.cpp +125 -67
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/FabricMountingManager.h +3 -4
- package/ReactAndroid/src/main/jni/react/fabric/JBackgroundExecutor.cpp +30 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/JBackgroundExecutor.h +1 -8
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/OnLoad.cpp +2 -0
- package/ReactAndroid/src/main/jni/react/fabric/viewPropConversions.h +215 -0
- package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/.clang-tidy +1 -0
- package/ReactAndroid/src/main/jni/react/hermes/instrumentation/BUCK +27 -0
- package/ReactAndroid/src/main/jni/react/hermes/reactexecutor/BUCK +19 -0
- package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/reactexecutor/CMakeLists.txt +5 -14
- package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/reactexecutor/OnLoad.cpp +18 -5
- package/ReactAndroid/src/main/jni/react/jni/BUCK +3 -4
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +11 -28
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +2 -10
- package/ReactAndroid/src/main/jni/react/jni/JCallback.h +7 -0
- package/ReactAndroid/src/main/jni/react/jni/JMessageQueueThread.cpp +5 -7
- package/ReactAndroid/src/main/jni/react/jscexecutor/BUCK +22 -0
- package/ReactAndroid/src/main/jni/react/jscexecutor/CMakeLists.txt +36 -0
- package/ReactAndroid/src/main/{java/com/facebook → jni}/react/jscexecutor/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/BUCK +0 -1
- package/ReactAndroid/src/main/jni/react/newarchdefaults/CMakeLists.txt +22 -0
- package/{template/android/app/src/main/jni/MainComponentsRegistry.cpp → ReactAndroid/src/main/jni/react/newarchdefaults/DefaultComponentsRegistry.cpp} +22 -13
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultComponentsRegistry.h +47 -0
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.cpp +60 -0
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.h +53 -0
- package/ReactAndroid/src/main/jni/react/newarchdefaults/OnLoad.cpp +18 -0
- package/ReactAndroid/src/main/jni/react/perftests/BUCK +0 -1
- package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/BUCK +0 -1
- package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/BUCK +0 -1
- package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/reactperflogger/.clang-tidy +1 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/BUCK +3 -3
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/CMakeLists.txt +2 -1
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/CompositeTurboModuleManagerDelegate.cpp +59 -0
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/CompositeTurboModuleManagerDelegate.h +49 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/OnLoad.cpp +3 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/TurboModuleManager.cpp +18 -6
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/TurboModuleManagerDelegate.h +3 -3
- package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/BUCK +0 -2
- package/ReactAndroid/src/main/libraries/fbcore/src/main/java/com/facebook/common/logging/BUCK +1 -0
- package/ReactAndroid/src/main/libraries/fbjni/BUCK +1 -1
- package/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK +7 -6
- package/ReactAndroid/src/main/libraries/soloader/java/com/facebook/soloader/BUCK +5 -5
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +17 -17
- package/ReactCommon/React-Fabric.podspec +16 -5
- package/ReactCommon/ReactCommon.podspec +24 -6
- package/ReactCommon/butter/BUCK +4 -3
- package/ReactCommon/butter/CMakeLists.txt +3 -1
- package/ReactCommon/callinvoker/BUCK +1 -1
- package/ReactCommon/callinvoker/CMakeLists.txt +7 -1
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/BUCK +19 -14
- package/ReactCommon/cxxreact/CxxNativeModule.cpp +33 -25
- package/ReactCommon/cxxreact/JSBigString.h +2 -2
- package/ReactCommon/cxxreact/JSBundleType.h +7 -4
- package/ReactCommon/cxxreact/JSExecutor.h +1 -1
- package/ReactCommon/cxxreact/NativeToJsBridge.cpp +2 -2
- package/ReactCommon/cxxreact/React-cxxreact.podspec +5 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
- package/ReactCommon/cxxreact/SampleCxxModule.cpp +1 -1
- package/ReactCommon/cxxreact/SystraceSection.h +11 -1
- package/ReactCommon/cxxreact/tests/BUCK +6 -48
- package/ReactCommon/cxxreact/tests/jsarg_helpers.cpp +3 -4
- package/ReactCommon/cxxreact/tests/jsbigstring.cpp +0 -43
- package/ReactCommon/cxxreact/tests/main.cpp +15 -0
- package/ReactCommon/cxxreact/tests/methodcall.cpp +1 -2
- package/ReactCommon/hermes/React-hermes.podspec +10 -7
- package/ReactCommon/hermes/executor/CMakeLists.txt +6 -5
- package/ReactCommon/hermes/executor/HermesExecutorFactory.cpp +36 -24
- package/ReactCommon/hermes/executor/HermesExecutorFactory.h +6 -0
- package/ReactCommon/hermes/inspector/BUCK +5 -5
- package/ReactCommon/hermes/inspector/CMakeLists.txt +4 -4
- package/ReactCommon/hermes/inspector/Inspector.cpp +1 -1
- package/ReactCommon/hermes/inspector/RuntimeAdapter.cpp +3 -8
- package/ReactCommon/hermes/inspector/RuntimeAdapter.h +5 -10
- package/ReactCommon/hermes/inspector/chrome/Connection.cpp +87 -20
- package/ReactCommon/hermes/inspector/chrome/Connection.h +1 -1
- package/ReactCommon/hermes/inspector/chrome/ConnectionDemux.cpp +8 -19
- package/ReactCommon/hermes/inspector/chrome/ConnectionDemux.h +3 -2
- package/ReactCommon/hermes/inspector/chrome/MessageConverters.cpp +10 -0
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.cpp +106 -1
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.h +49 -1
- package/ReactCommon/hermes/inspector/chrome/Registration.cpp +4 -4
- package/ReactCommon/hermes/inspector/chrome/Registration.h +9 -5
- package/ReactCommon/hermes/inspector/chrome/cli/main.cpp +5 -3
- package/ReactCommon/hermes/inspector/chrome/tests/ConnectionDemuxTests.cpp +3 -5
- package/ReactCommon/hermes/inspector/chrome/tests/ConnectionTests.cpp +48 -0
- package/ReactCommon/hermes/inspector/chrome/tests/SyncConnection.cpp +1 -3
- package/ReactCommon/hermes/inspector/tests/InspectorTests.cpp +1 -3
- package/ReactCommon/hermes/inspector/tools/message_types.txt +2 -0
- package/ReactCommon/hermes/inspector/tools/run_msggen +3 -1
- package/ReactCommon/{microprofiler → jsc}/.clang-tidy +1 -0
- package/ReactCommon/jsc/BUCK +34 -0
- package/ReactCommon/jsc/CMakeLists.txt +35 -0
- package/ReactCommon/{jsi → jsc}/JSCRuntime.cpp +71 -0
- package/ReactCommon/{React-bridging.podspec → jsc/React-jsc.podspec} +10 -15
- package/ReactCommon/jserrorhandler/BUCK +30 -0
- package/ReactCommon/jserrorhandler/JsErrorHandler.cpp +107 -0
- package/ReactCommon/jserrorhandler/JsErrorHandler.h +39 -0
- package/ReactCommon/jsi/BUCK +3 -34
- package/ReactCommon/jsi/CMakeLists.txt +0 -16
- package/ReactCommon/jsi/React-jsi.podspec +21 -13
- package/ReactCommon/jsi/jsi/JSIDynamic.cpp +7 -2
- package/ReactCommon/jsi/jsi/decorator.h +44 -0
- package/ReactCommon/jsi/jsi/jsi-inl.h +35 -2
- package/ReactCommon/jsi/jsi/jsi.cpp +44 -8
- package/ReactCommon/jsi/jsi/jsi.h +157 -0
- package/ReactCommon/jsiexecutor/BUCK +1 -2
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +5 -1
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp +2 -7
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h +0 -2
- package/ReactCommon/jsinspector/BUCK +3 -2
- package/ReactCommon/libraries/fbcore/src/test/java/com/facebook/powermock/BUCK +2 -0
- package/ReactCommon/logger/BUCK +1 -1
- package/ReactCommon/logger/React-logger.podspec +1 -1
- package/ReactCommon/react/bridging/Array.h +19 -0
- package/ReactCommon/react/bridging/BUCK +2 -2
- package/ReactCommon/react/bridging/Base.h +1 -2
- package/ReactCommon/react/bridging/CMakeLists.txt +8 -1
- package/ReactCommon/react/bridging/CallbackWrapper.h +1 -1
- package/ReactCommon/react/bridging/Class.h +21 -0
- package/ReactCommon/react/bridging/Convert.h +9 -0
- package/ReactCommon/react/bridging/tests/BridgingTest.cpp +113 -0
- package/ReactCommon/react/bridging/tests/BridgingTest.h +1 -1
- package/ReactCommon/react/config/BUCK +1 -3
- package/ReactCommon/react/config/CMakeLists.txt +2 -0
- package/ReactCommon/react/debug/BUCK +3 -4
- package/ReactCommon/react/debug/CMakeLists.txt +2 -0
- package/ReactCommon/react/nativemodule/core/BUCK +3 -5
- package/ReactCommon/react/nativemodule/core/CMakeLists.txt +8 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/CallbackWrapper.h +11 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboCxxModule.cpp +35 -18
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboCxxModule.h +4 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.cpp +23 -4
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.h +37 -19
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +46 -61
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.h +11 -12
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +1 -2
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +91 -145
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.h +5 -22
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.h +2 -2
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +5 -2
- package/ReactCommon/react/nativemodule/samples/BUCK +2 -1
- package/ReactCommon/react/nativemodule/samples/platform/android/CMakeLists.txt +27 -0
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleSpec.cpp +39 -12
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleSpec.h +1 -1
- package/ReactCommon/react/renderer/.clang-tidy +144 -0
- package/ReactCommon/react/renderer/animations/BUCK +1 -6
- package/ReactCommon/react/renderer/animations/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +4 -6
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +45 -35
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +7 -10
- package/ReactCommon/react/renderer/animations/utils.cpp +2 -4
- package/ReactCommon/react/renderer/attributedstring/AttributedString.cpp +22 -5
- package/ReactCommon/react/renderer/attributedstring/AttributedString.h +13 -1
- package/ReactCommon/react/renderer/attributedstring/AttributedStringBox.cpp +2 -4
- package/ReactCommon/react/renderer/attributedstring/BUCK +3 -5
- package/ReactCommon/react/renderer/attributedstring/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +2 -4
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +14 -4
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +3 -0
- package/ReactCommon/react/renderer/attributedstring/conversions.h +134 -0
- package/ReactCommon/react/renderer/attributedstring/primitives.h +30 -0
- package/ReactCommon/react/renderer/attributedstring/tests/AttributedStringBoxTest.cpp +2 -4
- package/ReactCommon/react/renderer/attributedstring/tests/ParagraphAttributesTest.cpp +2 -4
- package/ReactCommon/react/renderer/componentregistry/BUCK +1 -8
- package/ReactCommon/react/renderer/componentregistry/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.cpp +3 -5
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h +1 -1
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +7 -14
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.h +3 -2
- package/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.cpp +2 -4
- package/ReactCommon/react/renderer/componentregistry/native/BUCK +1 -7
- package/ReactCommon/react/renderer/componentregistry/native/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/componentregistry/native/NativeComponentRegistryBinding.cpp +5 -7
- package/ReactCommon/react/renderer/components/image/BUCK +1 -4
- package/ReactCommon/react/renderer/components/image/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/image/ImageEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/image/ImageProps.cpp +82 -41
- package/ReactCommon/react/renderer/components/image/ImageProps.h +13 -7
- package/ReactCommon/react/renderer/components/image/ImageShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/image/ImageState.cpp +2 -4
- package/ReactCommon/react/renderer/components/inputaccessory/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +3 -3
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +0 -3
- package/ReactCommon/react/renderer/components/modal/BUCK +2 -4
- package/ReactCommon/react/renderer/components/modal/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/modal/ModalHostViewShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/modal/ModalHostViewState.cpp +2 -4
- package/ReactCommon/react/renderer/components/progressbar/BUCK +2 -5
- package/ReactCommon/react/renderer/components/progressbar/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarMeasurementsManager.cpp +2 -4
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarShadowNode.cpp +3 -5
- package/ReactCommon/react/renderer/components/root/BUCK +1 -5
- package/ReactCommon/react/renderer/components/root/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/root/RootProps.cpp +4 -6
- package/ReactCommon/react/renderer/components/root/RootShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/safeareaview/BUCK +1 -1
- package/ReactCommon/react/renderer/components/scrollview/BUCK +2 -5
- package/ReactCommon/react/renderer/components/scrollview/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.cpp +342 -202
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h +6 -0
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewState.cpp +2 -4
- package/ReactCommon/react/renderer/components/slider/BUCK +2 -4
- package/ReactCommon/react/renderer/components/slider/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/slider/SliderShadowNode.cpp +3 -5
- package/ReactCommon/react/renderer/components/slider/SliderState.cpp +2 -4
- package/ReactCommon/react/renderer/components/slider/platform/android/react/renderer/components/slider/SliderMeasurementsManager.cpp +2 -4
- package/ReactCommon/react/renderer/components/switch/BUCK +1 -9
- package/ReactCommon/react/renderer/components/switch/CMakeLists.txt +2 -0
- package/ReactCommon/react/renderer/components/switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchMeasurementsManager.cpp +2 -4
- package/ReactCommon/react/renderer/components/switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchShadowNode.cpp +3 -5
- package/ReactCommon/react/renderer/components/text/BUCK +1 -6
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +135 -22
- package/ReactCommon/react/renderer/components/text/BaseTextProps.h +6 -0
- package/ReactCommon/react/renderer/components/text/BaseTextShadowNode.cpp +4 -6
- package/ReactCommon/react/renderer/components/text/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/text/ParagraphEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/ParagraphProps.cpp +103 -21
- package/ReactCommon/react/renderer/components/text/ParagraphProps.h +9 -3
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.cpp +5 -6
- package/ReactCommon/react/renderer/components/text/ParagraphState.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/ParagraphState.h +9 -0
- package/ReactCommon/react/renderer/components/text/RawTextProps.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/RawTextShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/TextProps.cpp +11 -4
- package/ReactCommon/react/renderer/components/text/TextProps.h +6 -0
- package/ReactCommon/react/renderer/components/text/TextShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/conversions.h +1 -9
- package/ReactCommon/react/renderer/components/textinput/BUCK +2 -6
- package/ReactCommon/react/renderer/components/textinput/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +223 -66
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +65 -59
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.cpp +9 -11
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputState.cpp +24 -4
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputState.h +1 -3
- package/ReactCommon/react/renderer/components/textinput/iostextinput/BUCK +4 -10
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputEventEmitter.h +2 -2
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +11 -4
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +6 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputState.cpp +4 -6
- package/ReactCommon/react/renderer/components/textinput/iostextinput/conversions.h +20 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +10 -2
- package/ReactCommon/react/renderer/components/textinput/iostextinput/propsConversions.h +4 -4
- package/ReactCommon/react/renderer/components/unimplementedview/BUCK +1 -9
- package/ReactCommon/react/renderer/components/unimplementedview/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +2 -4
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewProps.cpp +2 -4
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.cpp +223 -119
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.h +12 -1
- package/ReactCommon/react/renderer/components/view/AccessibilityPropsMapBuffer.cpp +168 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityPropsMapBuffer.h +33 -0
- package/ReactCommon/react/renderer/components/view/BUCK +3 -4
- package/ReactCommon/react/renderer/components/view/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/view/PointerEvent.cpp +20 -7
- package/ReactCommon/react/renderer/components/view/PointerEvent.h +72 -6
- package/ReactCommon/react/renderer/components/view/Touch.cpp +3 -5
- package/ReactCommon/react/renderer/components/view/Touch.h +1 -1
- package/ReactCommon/react/renderer/components/view/TouchEvent.cpp +3 -5
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp +49 -12
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.h +5 -3
- package/ReactCommon/react/renderer/components/view/ViewEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +338 -161
- package/ReactCommon/react/renderer/components/view/ViewProps.h +12 -0
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
- package/ReactCommon/react/renderer/components/view/ViewPropsMapBuffer.cpp +202 -0
- package/ReactCommon/react/renderer/components/view/ViewPropsMapBuffer.h +56 -0
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +9 -28
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +8 -9
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp +120 -5
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.h +12 -1
- package/ReactCommon/react/renderer/components/view/YogaStylablePropsMapBuffer.cpp +87 -0
- package/ReactCommon/{hermes/inspector/chrome/AutoAttachUtils.h → react/renderer/components/view/YogaStylablePropsMapBuffer.h} +11 -11
- package/ReactCommon/react/renderer/components/view/conversions.h +23 -2
- package/ReactCommon/react/renderer/components/view/primitives.h +17 -0
- package/ReactCommon/react/renderer/components/view/propsConversions.h +73 -18
- package/ReactCommon/react/renderer/components/view/tests/LayoutTest.cpp +2 -4
- package/ReactCommon/react/renderer/components/view/tests/ViewTest.cpp +2 -4
- package/ReactCommon/react/renderer/components/view/viewPropConversions.h +198 -0
- package/ReactCommon/react/renderer/core/BUCK +8 -9
- package/ReactCommon/react/renderer/core/BatchedEventQueue.cpp +2 -4
- package/ReactCommon/react/renderer/core/CMakeLists.txt +9 -1
- package/ReactCommon/react/renderer/core/ComponentDescriptor.cpp +2 -4
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +23 -8
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +4 -3
- package/ReactCommon/react/renderer/core/CoreFeatures.cpp +17 -0
- package/ReactCommon/react/renderer/core/CoreFeatures.h +31 -0
- package/ReactCommon/react/renderer/core/DynamicPropsUtilities.cpp +2 -4
- package/ReactCommon/react/renderer/core/EventBeat.cpp +2 -4
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +2 -4
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +3 -5
- package/ReactCommon/react/renderer/core/EventQueue.cpp +3 -5
- package/ReactCommon/react/renderer/core/EventQueueProcessor.cpp +2 -4
- package/ReactCommon/react/renderer/core/EventTarget.cpp +3 -5
- package/ReactCommon/react/renderer/core/LayoutConstraints.cpp +2 -4
- package/ReactCommon/react/renderer/core/LayoutMetrics.cpp +3 -5
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.cpp +96 -18
- package/ReactCommon/react/renderer/core/Props.cpp +26 -12
- package/ReactCommon/react/renderer/core/Props.h +25 -13
- package/ReactCommon/react/renderer/core/PropsMacros.h +108 -0
- package/ReactCommon/react/renderer/core/PropsMapBuffer.cpp +37 -0
- package/ReactCommon/react/renderer/core/PropsMapBuffer.h +23 -0
- package/ReactCommon/react/renderer/core/RawEvent.cpp +2 -4
- package/ReactCommon/react/renderer/core/RawProps.cpp +12 -6
- package/ReactCommon/react/renderer/core/RawProps.h +10 -1
- package/ReactCommon/react/renderer/core/RawPropsKey.cpp +4 -6
- package/ReactCommon/react/renderer/core/RawPropsKeyMap.cpp +2 -4
- package/ReactCommon/react/renderer/core/RawPropsParser.cpp +65 -4
- package/ReactCommon/react/renderer/core/RawPropsParser.h +9 -0
- package/ReactCommon/react/renderer/core/RawPropsPrimitives.h +2 -0
- package/ReactCommon/react/renderer/core/RawValue.h +12 -14
- package/ReactCommon/react/renderer/core/Sealable.cpp +4 -6
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +14 -12
- package/ReactCommon/react/renderer/core/ShadowNode.h +17 -21
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.cpp +3 -5
- package/ReactCommon/react/renderer/core/ShadowNodeFamilyFragment.cpp +2 -4
- package/ReactCommon/react/renderer/core/ShadowNodeFragment.cpp +2 -4
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.cpp +1 -3
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.h +18 -13
- package/ReactCommon/react/renderer/core/State.cpp +2 -4
- package/ReactCommon/react/renderer/core/UnbatchedEventQueue.cpp +2 -4
- package/ReactCommon/react/renderer/core/propsConversions.h +40 -29
- package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +9 -9
- package/ReactCommon/react/renderer/core/tests/EventQueueProcessorTest.cpp +3 -3
- package/ReactCommon/react/renderer/core/tests/LayoutableShadowNodeTest.cpp +372 -0
- package/ReactCommon/react/renderer/core/tests/RawPropsTest.cpp +2 -2
- package/ReactCommon/react/renderer/core/tests/ShadowNodeTest.cpp +4 -4
- package/ReactCommon/react/renderer/core/tests/TestComponent.h +4 -2
- package/ReactCommon/react/renderer/core/tests/benchmarks/RawPropsBenchmark.cpp +2 -4
- package/ReactCommon/react/renderer/debug/BUCK +1 -4
- package/ReactCommon/react/renderer/debug/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/debug/DebugStringConvertible.cpp +6 -8
- package/ReactCommon/react/renderer/debug/DebugStringConvertibleItem.cpp +2 -4
- package/ReactCommon/react/renderer/element/BUCK +1 -1
- package/ReactCommon/react/renderer/element/ComponentBuilder.cpp +2 -4
- package/ReactCommon/react/renderer/graphics/BUCK +2 -5
- package/ReactCommon/react/renderer/graphics/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
- package/ReactCommon/react/renderer/graphics/RectangleEdges.h +5 -0
- package/ReactCommon/react/renderer/graphics/Transform.cpp +43 -17
- package/ReactCommon/react/renderer/graphics/Transform.h +20 -5
- package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/PlatformColorParser.h +11 -23
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.cpp +4 -6
- package/ReactCommon/react/renderer/graphics/tests/TransformTest.cpp +7 -0
- package/ReactCommon/react/renderer/imagemanager/BUCK +12 -31
- package/ReactCommon/react/renderer/imagemanager/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/imagemanager/ImageManager.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/ImageResponse.cpp +2 -4
- package/ReactCommon/react/renderer/imagemanager/ImageResponseObserverCoordinator.cpp +2 -4
- package/ReactCommon/react/renderer/imagemanager/ImageTelemetry.cpp +2 -4
- package/ReactCommon/react/renderer/imagemanager/platform/cxx/react/renderer/imagemanager/ImageManager.cpp +6 -7
- package/ReactCommon/react/renderer/imagemanager/platform/cxx/react/renderer/imagemanager/ImageRequest.cpp +2 -4
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +14 -16
- package/ReactCommon/react/renderer/leakchecker/BUCK +1 -1
- package/ReactCommon/react/renderer/leakchecker/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/leakchecker/LeakChecker.cpp +4 -6
- package/ReactCommon/react/renderer/leakchecker/LeakChecker.h +1 -1
- package/ReactCommon/react/renderer/leakchecker/WeakFamilyRegistry.cpp +3 -6
- package/ReactCommon/react/renderer/mapbuffer/BUCK +5 -6
- package/ReactCommon/react/renderer/mapbuffer/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +28 -5
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +2 -0
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +35 -4
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +5 -0
- package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +25 -0
- package/ReactCommon/react/renderer/mounting/BUCK +2 -5
- package/ReactCommon/react/renderer/mounting/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/mounting/Differentiator.cpp +50 -97
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +4 -6
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +1 -1
- package/ReactCommon/react/renderer/mounting/MountingTransaction.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +8 -10
- package/ReactCommon/react/renderer/mounting/ShadowTree.h +4 -4
- package/ReactCommon/react/renderer/mounting/ShadowTreeRegistry.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/ShadowView.cpp +5 -6
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +40 -13
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +39 -6
- package/ReactCommon/react/renderer/mounting/StubView.cpp +4 -6
- package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
- package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +7 -4
- package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/stubs.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/tests/MountingTest.cpp +131 -123
- package/ReactCommon/react/renderer/mounting/tests/ShadowTreeLifeCycleTest.cpp +6 -8
- package/ReactCommon/react/renderer/mounting/tests/StackingContextTest.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp +6 -6
- package/ReactCommon/react/renderer/runtimescheduler/BUCK +2 -1
- package/ReactCommon/react/renderer/runtimescheduler/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +12 -23
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +0 -10
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +22 -9
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +2 -4
- package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +6 -8
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +45 -64
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.cpp +1 -1
- package/ReactCommon/react/renderer/scheduler/BUCK +1 -5
- package/ReactCommon/react/renderer/scheduler/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +18 -38
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +1 -4
- package/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h +0 -8
- package/ReactCommon/react/renderer/scheduler/SchedulerToolbox.h +7 -0
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +10 -9
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +1 -1
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +2 -4
- package/ReactCommon/react/renderer/scheduler/SynchronousEventBeat.cpp +3 -5
- package/ReactCommon/react/renderer/telemetry/BUCK +1 -5
- package/ReactCommon/react/renderer/telemetry/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/telemetry/SurfaceTelemetry.cpp +2 -4
- package/ReactCommon/react/renderer/telemetry/TransactionTelemetry.cpp +2 -4
- package/ReactCommon/react/renderer/templateprocessor/BUCK +3 -5
- package/ReactCommon/react/renderer/templateprocessor/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/templateprocessor/UITemplateProcessor.cpp +8 -10
- package/ReactCommon/react/renderer/templateprocessor/UITemplateProcessor.h +3 -3
- package/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp +8 -9
- package/ReactCommon/react/renderer/textlayoutmanager/BUCK +1 -5
- package/ReactCommon/react/renderer/textlayoutmanager/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.cpp +2 -4
- package/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h +4 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.cpp +8 -72
- package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.h +1 -2
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +133 -9
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +46 -23
- package/ReactCommon/react/renderer/timeline/BUCK +2 -5
- package/ReactCommon/react/renderer/timeline/Timeline.cpp +7 -8
- package/ReactCommon/react/renderer/timeline/TimelineController.cpp +3 -5
- package/ReactCommon/react/renderer/timeline/TimelineFrame.cpp +2 -4
- package/ReactCommon/react/renderer/timeline/TimelineHandler.cpp +3 -5
- package/ReactCommon/react/renderer/timeline/TimelineHandler.h +2 -2
- package/ReactCommon/react/renderer/timeline/TimelineSnapshot.cpp +2 -4
- package/ReactCommon/react/renderer/uimanager/BUCK +2 -5
- package/ReactCommon/react/renderer/uimanager/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/uimanager/LayoutAnimationStatusDelegate.h +2 -0
- package/ReactCommon/react/renderer/uimanager/SurfaceRegistryBinding.cpp +66 -24
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +17 -20
- package/ReactCommon/react/renderer/uimanager/UIManager.h +3 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +52 -56
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +1 -7
- package/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h +0 -9
- package/ReactCommon/react/renderer/uimanager/primitives.h +7 -7
- package/ReactCommon/react/test_utils/BUCK +1 -1
- package/ReactCommon/react/test_utils/shadowTreeGeneration.h +7 -1
- package/ReactCommon/react/utils/BUCK +2 -6
- package/ReactCommon/react/utils/CMakeLists.txt +2 -0
- package/ReactCommon/react/utils/ManagedObjectWrapper.h +1 -1
- package/ReactCommon/react/utils/ManagedObjectWrapper.mm +1 -3
- package/ReactCommon/reactperflogger/BUCK +3 -3
- package/ReactCommon/reactperflogger/CMakeLists.txt +7 -1
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/BUCK +1 -1
- package/ReactCommon/runtimeexecutor/CMakeLists.txt +7 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/yoga/CMakeLists.txt +7 -1
- package/ReactCommon/yoga/yoga/CompactValue.h +49 -29
- package/ReactCommon/yoga/yoga/Utils.cpp +4 -0
- package/ReactCommon/yoga/yoga/YGEnums.cpp +14 -0
- package/ReactCommon/yoga/yoga/YGEnums.h +31 -52
- package/ReactCommon/yoga/yoga/YGMacros.h +43 -0
- package/ReactCommon/yoga/yoga/YGNode.cpp +33 -0
- package/ReactCommon/yoga/yoga/YGNode.h +11 -0
- package/ReactCommon/yoga/yoga/YGNodePrint.cpp +14 -0
- package/ReactCommon/yoga/yoga/YGStyle.cpp +1 -1
- package/ReactCommon/yoga/yoga/YGStyle.h +5 -0
- package/ReactCommon/yoga/yoga/Yoga.cpp +81 -29
- package/ReactCommon/yoga/yoga/Yoga.h +7 -0
- package/ReactCommon/yoga/yoga/event/event.h +3 -0
- package/android/README.md +21 -0
- package/build.gradle.kts +133 -0
- package/flow/JSITimerInternalType.js +30 -0
- package/flow/jest.js +2 -2
- package/flow-typed/npm/{react-dom_v16.x.x.js → react-dom_v17.x.x.js} +58 -31
- package/flow-typed/npm/yargs_v17.x.x.js +341 -0
- package/gradle.properties +12 -0
- package/index.js +89 -61
- package/interface.js +8 -0
- package/jest/react-native-env.js +18 -0
- package/jest/renderer.js +2 -2
- package/jest/setup.js +11 -9
- package/jest-preset.js +1 -1
- package/package.json +75 -56
- package/react.gradle +27 -7
- package/scripts/cocoapods/__tests__/codegen-test.rb +244 -0
- package/scripts/cocoapods/__tests__/codegen_utils-test.rb +548 -0
- package/scripts/cocoapods/__tests__/fabric-test.rb +55 -0
- package/scripts/cocoapods/__tests__/flipper-test.rb +155 -0
- package/scripts/cocoapods/__tests__/jsengine-test.rb +154 -0
- package/scripts/cocoapods/__tests__/local_podspec_patch-test.rb +171 -0
- package/scripts/cocoapods/__tests__/new_architecture-test.rb +290 -0
- package/scripts/cocoapods/__tests__/test_utils/CodegenScriptPhaseExtractorMock.rb +21 -0
- package/scripts/cocoapods/__tests__/test_utils/CodegenUtilsMock.rb +108 -0
- package/scripts/cocoapods/__tests__/test_utils/DirMock.rb +84 -0
- package/scripts/cocoapods/__tests__/test_utils/EnvironmentMock.rb +21 -0
- package/scripts/cocoapods/__tests__/test_utils/FileMock.rb +132 -0
- package/scripts/cocoapods/__tests__/test_utils/FileUtilsMock.rb +40 -0
- package/scripts/cocoapods/__tests__/test_utils/FinderMock.rb +28 -0
- package/scripts/cocoapods/__tests__/test_utils/InstallerMock.rb +213 -0
- package/scripts/cocoapods/__tests__/test_utils/LocalPodspecPatchMock.rb +14 -0
- package/scripts/cocoapods/__tests__/test_utils/Open3Mock.rb +43 -0
- package/scripts/cocoapods/__tests__/test_utils/PathnameMock.rb +42 -0
- package/scripts/cocoapods/__tests__/test_utils/PodMock.rb +144 -0
- package/scripts/cocoapods/__tests__/test_utils/SpecMock.rb +30 -0
- package/scripts/cocoapods/__tests__/test_utils/SysctlCheckerMock.rb +21 -0
- package/scripts/cocoapods/__tests__/test_utils/TargetDefinitionMock.rb +12 -0
- package/scripts/cocoapods/__tests__/test_utils/podSpy.rb +38 -0
- package/scripts/cocoapods/__tests__/test_utils/systemUtils.rb +14 -0
- package/scripts/cocoapods/__tests__/utils-test.rb +565 -0
- package/scripts/cocoapods/codegen.rb +106 -0
- package/scripts/cocoapods/codegen_script_phase_extractor.rb +13 -0
- package/scripts/cocoapods/codegen_utils.rb +331 -0
- package/scripts/cocoapods/fabric.rb +16 -0
- package/scripts/cocoapods/flipper.rb +118 -0
- package/scripts/cocoapods/helpers.rb +28 -0
- package/scripts/cocoapods/jsengine.rb +81 -0
- package/scripts/cocoapods/local_podspec_patch.rb +51 -0
- package/scripts/cocoapods/new_architecture.rb +101 -0
- package/scripts/cocoapods/utils.rb +188 -0
- package/scripts/codegen/codegen-utils.js +37 -0
- package/scripts/codegen/generate-artifacts-executor.js +560 -0
- package/scripts/codegen/generate-specs-cli-executor.js +127 -0
- package/scripts/generate-codegen-artifacts.js +72 -0
- package/scripts/generate-specs-cli.js +3 -88
- package/scripts/hermes/hermes-utils.js +144 -76
- package/scripts/hermes/prepare-hermes-for-build.js +9 -10
- package/scripts/ios-configure-glog.sh +3 -2
- package/scripts/launchPackager.command +4 -0
- package/scripts/native_modules.rb +6 -0
- package/scripts/packager.sh +1 -1
- package/scripts/react-native-xcode.sh +25 -19
- package/scripts/react_native_pods.rb +148 -554
- package/scripts/react_native_pods_utils/script_phases.sh +15 -17
- package/sdks/.hermesversion +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +104 -43
- package/sdks/hermes-engine/hermes-utils.rb +26 -0
- package/sdks/hermes-engine/utils/build-apple-framework.sh +84 -39
- package/sdks/hermes-engine/utils/build-hermes-xcode.sh +65 -0
- package/sdks/hermes-engine/utils/build-hermesc-xcode.sh +22 -0
- package/sdks/hermes-engine/utils/build-ios-framework.sh +2 -1
- package/sdks/hermes-engine/utils/build-mac-framework.sh +2 -1
- package/sdks/hermes-engine/utils/copy-hermes-xcode.sh +22 -0
- package/sdks/hermesc/linux64-bin/hermesc +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/settings.gradle.kts +34 -0
- package/template/{App.js → App.tsx} +14 -8
- package/template/Gemfile +2 -2
- package/template/_gitignore +6 -6
- package/template/_node-version +1 -0
- package/template/android/app/build.gradle +68 -222
- package/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java +4 -2
- package/template/android/app/src/main/AndroidManifest.xml +1 -2
- package/template/android/app/src/main/java/com/helloworld/MainActivity.java +13 -26
- package/template/android/app/src/main/java/com/helloworld/MainApplication.java +16 -47
- package/template/android/app/src/release/java/com/helloworld/ReactNativeFlipper.java +20 -0
- package/template/android/build.gradle +6 -38
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +8 -0
- package/template/android/settings.gradle +0 -7
- package/template/ios/HelloWorld/AppDelegate.h +2 -4
- package/template/ios/HelloWorld/AppDelegate.mm +12 -112
- package/template/ios/HelloWorld/Info.plist +2 -2
- package/template/ios/Podfile +19 -8
- package/template/package.json +19 -12
- package/template/tsconfig.json +3 -0
- package/third-party-podspecs/RCT-Folly.podspec +6 -5
- package/third-party-podspecs/boost.podspec +1 -1
- package/types/index.d.ts +213 -0
- package/types/modules/BatchedBridge.d.ts +32 -0
- package/types/modules/Codegen.d.ts +74 -0
- package/types/modules/Devtools.d.ts +31 -0
- package/types/modules/LaunchScreen.d.ts +18 -0
- package/types/modules/globals.d.ts +577 -0
- package/types/private/TimerMixin.d.ts +19 -0
- package/{React/Views/RCTMaskedView.h → types/private/Utilities.d.ts} +4 -8
- package/types/public/DeprecatedPropertiesAlias.d.ts +205 -0
- package/types/public/Insets.d.ts +15 -0
- package/types/public/ReactNativeRenderer.d.ts +149 -0
- package/types/public/ReactNativeTypes.d.ts +143 -0
- package/types/tsconfig.json +15 -0
- package/types/tslint.json +23 -0
- package/Libraries/Components/MaskedView/MaskedViewIOS.ios.js +0 -93
- package/Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js +0 -21
- package/Libraries/Core/setUpSystrace.js +0 -21
- package/Libraries/Image/ImagePickerIOS.js +0 -103
- package/Libraries/Image/NativeImagePickerIOS.js +0 -38
- package/Libraries/Storage/AsyncStorage.js +0 -379
- package/Libraries/Storage/NativeAsyncLocalStorage.js +0 -44
- package/Libraries/Storage/NativeAsyncSQLiteDBStorage.js +0 -44
- package/Libraries/Utilities/JSDevSupportModule.js +0 -37
- package/Libraries/Utilities/NativeJSDevSupport.js +0 -23
- package/Libraries/vendor/emitter/EventSubscription.js +0 -19
- package/Libraries/vendor/emitter/_EmitterSubscription.js +0 -62
- package/Libraries/vendor/emitter/_EventEmitter.js +0 -184
- package/Libraries/vendor/emitter/_EventSubscription.js +0 -45
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +0 -108
- package/React/CoreModules/RCTAsyncLocalStorage.h +0 -41
- package/React/CoreModules/RCTAsyncLocalStorage.mm +0 -474
- package/React/Views/RCTMaskedView.m +0 -34
- package/React/Views/RCTMaskedViewManager.m +0 -22
- package/ReactAndroid/src/androidTest/AndroidManifest.xml +0 -20
- package/ReactAndroid/src/androidTest/assets/BUCK +0 -7
- package/ReactAndroid/src/androidTest/buck-runner/AndroidManifest.xml +0 -28
- package/ReactAndroid/src/androidTest/buck-runner/BUCK +0 -24
- package/ReactAndroid/src/androidTest/java/com/facebook/react/bridge/ArgumentsTest.java +0 -93
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AbstractScrollViewTestCase.java +0 -108
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AssertModule.java +0 -53
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/BUCK +0 -46
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FabricUIManagerFactory.java +0 -19
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeAsyncLocalStorage.java +0 -56
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeWebSocketModule.java +0 -44
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/InstanceSpecForTestPackage.java +0 -38
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/IntRecordingModule.java +0 -54
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/JSIntegrationTestChecker.java +0 -55
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/MultipleFailureException.java +0 -46
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java +0 -152
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java +0 -378
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstanceSpecForTest.java +0 -127
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstrumentationTest.java +0 -125
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactIntegrationTestCase.java +0 -209
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactSettingsForTests.java +0 -59
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestAppShell.java +0 -38
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestApplicationImpl.java +0 -22
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestFactory.java +0 -27
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestHelper.java +0 -217
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ScreenshotingFrameLayout.java +0 -77
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/SingleTouchGestureGenerator.java +0 -150
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/StringRecordingModule.java +0 -42
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/BUCK +0 -16
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/IdleWaiter.java +0 -14
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactBridgeIdleSignaler.java +0 -65
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactIdleDetectionUtil.java +0 -121
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/BUCK +0 -25
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java +0 -147
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/BUCK +0 -43
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/ReactNativeTestRule.java +0 -184
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/AnimatedTransformTest.java +0 -49
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -43
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMeasureLayoutTest.java +0 -138
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMultitouchHandlingTestCase.java +0 -681
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJSToJavaParametersTestCase.java +0 -837
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSArgumentsTestCase.java +0 -385
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSReturnValuesTestCase.java +0 -162
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystSubviewsClippingTestCase.java +0 -301
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystTouchBubblingTestCase.java +0 -155
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystUIManagerTestCase.java +0 -256
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ImageErrorTestCase.java +0 -47
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ImageOverlayColorTestCase.java +0 -25
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/InitialPropsTestCase.java +0 -120
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSLocaleTest.java +0 -102
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSResponderTestCase.java +0 -62
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/LayoutEventsTestCase.java +0 -37
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/NativeIdTestCase.java +0 -89
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ProgressBarTestCase.java +0 -123
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactHorizontalScrollViewTestCase.java +0 -125
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactScrollViewTestCase.java +0 -127
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactSwipeRefreshLayoutTestCase.java +0 -97
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ShareTestCase.java +0 -92
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TestIdTestCase.java +0 -46
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TextInputTestCase.java +0 -327
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ViewRenderingTestCase.java +0 -154
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/BUCK +0 -33
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/ReactInstanceManagerTest.java +0 -96
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/ReactRootViewTest.java +0 -203
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/WritableNativeMapTest.java +0 -130
- package/ReactAndroid/src/androidTest/js/AnimatedTransformTestModule.js +0 -85
- package/ReactAndroid/src/androidTest/js/Asserts.js +0 -38
- package/ReactAndroid/src/androidTest/js/BUCK +0 -29
- package/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js +0 -62
- package/ReactAndroid/src/androidTest/js/ImageErrorTestApp.js +0 -56
- package/ReactAndroid/src/androidTest/js/ImageOverlayColorTestApp.js +0 -29
- package/ReactAndroid/src/androidTest/js/InitialPropsTestApp.js +0 -25
- package/ReactAndroid/src/androidTest/js/JSResponderTestApp.js +0 -66
- package/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js +0 -89
- package/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js +0 -214
- package/ReactAndroid/src/androidTest/js/MultitouchHandlingTestAppModule.js +0 -78
- package/ReactAndroid/src/androidTest/js/NativeIdTestModule.js +0 -76
- package/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js +0 -59
- package/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js +0 -183
- package/ReactAndroid/src/androidTest/js/ShareTestModule.js +0 -36
- package/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js +0 -369
- package/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js +0 -101
- package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -113
- package/ReactAndroid/src/androidTest/js/TestIdTestModule.js +0 -86
- package/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js +0 -28
- package/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js +0 -125
- package/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js +0 -114
- package/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js +0 -39
- package/ReactAndroid/src/androidTest/js/TextInputTestModule.js +0 -185
- package/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js +0 -84
- package/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +0 -268
- package/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js +0 -109
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/Android.mk +0 -31
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/Android.mk +0 -55
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/Android.mk +0 -49
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDevSupport.java +0 -103
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +0 -105
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/JBackgroundExecutor.cpp +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +0 -527
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/CMakeLists.txt +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/Android.mk +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncLocalStorageUtil.java +0 -125
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageErrorUtil.java +0 -38
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageModule.java +0 -433
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/BUCK +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/ReactDatabaseSupplier.java +0 -163
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/Android.mk +0 -32
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/Android.mk +0 -63
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementationProvider.java +0 -72
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +0 -242
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/Android.mk +0 -45
- package/ReactAndroid/src/main/jni/Application.mk +0 -34
- package/ReactAndroid/src/main/jni/first-party/fb/Android.mk +0 -30
- package/ReactAndroid/src/main/jni/first-party/fbgloginit/Android.mk +0 -23
- package/ReactAndroid/src/main/jni/first-party/fbjni/Android.mk +0 -14
- package/ReactAndroid/src/main/jni/first-party/fbjni/CMakeLists.txt +0 -15
- package/ReactAndroid/src/main/jni/first-party/yogajni/Android.mk +0 -27
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +0 -176
- package/ReactAndroid/src/main/jni/react/jni/JNativeRunnable.h +0 -52
- package/ReactAndroid/src/main/jni/third-party/boost/Android.mk +0 -15
- package/ReactAndroid/src/main/jni/third-party/double-conversion/Android.mk +0 -22
- package/ReactAndroid/src/main/jni/third-party/fmt/Android.mk +0 -15
- package/ReactAndroid/src/main/jni/third-party/folly/Android.mk +0 -128
- package/ReactAndroid/src/main/jni/third-party/glog/Android.mk +0 -32
- package/ReactAndroid/src/main/jni/third-party/jsc/Android.mk +0 -6
- package/ReactAndroid/src/main/jni/third-party/libevent/Android.mk +0 -36
- package/ReactAndroid/src/test/java/com/facebook/common/logging/BUCK +0 -17
- package/ReactAndroid/src/test/java/com/facebook/common/logging/FakeLoggingDelegate.java +0 -138
- package/ReactAndroid/src/test/java/com/facebook/react/BUCK +0 -28
- package/ReactAndroid/src/test/java/com/facebook/react/CompositeReactPackageTest.java +0 -156
- package/ReactAndroid/src/test/java/com/facebook/react/ReactActivityDelegateTest.kt +0 -62
- package/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java +0 -255
- package/ReactAndroid/src/test/java/com/facebook/react/animated/BUCK +0 -22
- package/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedInterpolationTest.java +0 -123
- package/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java +0 -1294
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/BUCK +0 -44
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/BaseJavaModuleTest.java +0 -103
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/FallbackJSBundleLoaderTest.java +0 -176
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/InstanceHandleHelper.java +0 -19
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaOnlyArrayTest.java +0 -37
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaScriptModuleRegistryTest.java +0 -35
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java +0 -59
- package/ReactAndroid/src/test/java/com/facebook/react/devsupport/BUCK +0 -23
- package/ReactAndroid/src/test/java/com/facebook/react/devsupport/JSDebuggerWebSocketClientTest.java +0 -139
- package/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java +0 -151
- package/ReactAndroid/src/test/java/com/facebook/react/devsupport/StackTraceHelperTest.java +0 -65
- package/ReactAndroid/src/test/java/com/facebook/react/fabric/events/BUCK +0 -16
- package/ReactAndroid/src/test/java/com/facebook/react/fabric/events/TouchEventDispatchTest.java +0 -616
- package/ReactAndroid/src/test/java/com/facebook/react/modules/BUCK +0 -45
- package/ReactAndroid/src/test/java/com/facebook/react/modules/blob/BlobModuleTest.java +0 -156
- package/ReactAndroid/src/test/java/com/facebook/react/modules/camera/ImageStoreManagerTest.java +0 -81
- package/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java +0 -57
- package/ReactAndroid/src/test/java/com/facebook/react/modules/deviceinfo/DeviceInfoModuleTest.java +0 -168
- package/ReactAndroid/src/test/java/com/facebook/react/modules/dialog/DialogModuleTest.java +0 -165
- package/ReactAndroid/src/test/java/com/facebook/react/modules/network/HeaderUtilTest.java +0 -73
- package/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java +0 -647
- package/ReactAndroid/src/test/java/com/facebook/react/modules/network/ProgressiveStringDecoderTest.java +0 -138
- package/ReactAndroid/src/test/java/com/facebook/react/modules/network/ReactCookieJarContainerTest.java +0 -71
- package/ReactAndroid/src/test/java/com/facebook/react/modules/share/ShareModuleTest.java +0 -230
- package/ReactAndroid/src/test/java/com/facebook/react/modules/storage/AsyncStorageModuleTest.java +0 -345
- package/ReactAndroid/src/test/java/com/facebook/react/modules/timing/TimingModuleTest.java +0 -306
- package/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/BUCK +0 -18
- package/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/JSPackagerClientTest.java +0 -144
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/BUCK +0 -40
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/BaseViewManagerTest.java +0 -79
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/LayoutPropertyApplicatorTest.java +0 -470
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/MatrixMathHelperTest.java +0 -173
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterSpecTest.java +0 -125
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterTest.java +0 -499
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropConstantsTest.java +0 -163
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSetterTest.java +0 -160
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSpecTest.java +0 -122
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/SimpleViewPropertyTest.java +0 -116
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleConstantsTest.java +0 -173
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleTest.java +0 -721
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/BUCK +0 -16
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/InterpolatorTypeTest.java +0 -49
- package/ReactAndroid/src/test/java/com/facebook/react/util/BUCK +0 -17
- package/ReactAndroid/src/test/java/com/facebook/react/util/JSStackTraceTest.java +0 -96
- package/ReactAndroid/src/test/java/com/facebook/react/views/BUCK +0 -41
- package/ReactAndroid/src/test/java/com/facebook/react/views/image/ImageResizeModeTest.java +0 -42
- package/ReactAndroid/src/test/java/com/facebook/react/views/image/ReactImagePropertyTest.java +0 -143
- package/ReactAndroid/src/test/java/com/facebook/react/views/slider/ReactSliderPropertyTest.java +0 -100
- package/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java +0 -113
- package/ReactAndroid/src/test/java/com/facebook/react/views/text/ReactTextTest.java +0 -516
- package/ReactAndroid/src/test/java/com/facebook/react/views/textinput/ReactTextInputPropertyTest.java +0 -400
- package/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java +0 -174
- package/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java +0 -56
- package/ReactAndroid/src/test/java/org/mockito/configuration/BUCK +0 -13
- package/ReactAndroid/src/test/java/org/mockito/configuration/MockitoConfiguration.java +0 -24
- package/ReactAndroid/src/test/resources/BUCK +0 -18
- package/ReactAndroid/src/test/resources/robolectric.properties +0 -2
- package/ReactCommon/butter/Android.mk +0 -27
- package/ReactCommon/callinvoker/Android.mk +0 -25
- package/ReactCommon/cxxreact/Android.mk +0 -51
- package/ReactCommon/hermes/executor/Android.mk +0 -41
- package/ReactCommon/hermes/inspector/Android.mk +0 -36
- package/ReactCommon/hermes/inspector/chrome/AutoAttachUtils.cpp +0 -151
- package/ReactCommon/hermes/inspector/tools/msggen/.babelrc +0 -8
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/CommandTest.js +0 -62
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/EventTest.js +0 -47
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/GraphTest.js +0 -78
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/HeaderWriterTest.js +0 -128
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/ImplementationWriterTest.js +0 -171
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/PropertyTest.js +0 -131
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/TypeTest.js +0 -50
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +0 -41
- package/ReactCommon/hermes/inspector/tools/msggen/src/Command.js +0 -79
- package/ReactCommon/hermes/inspector/tools/msggen/src/Converters.js +0 -39
- package/ReactCommon/hermes/inspector/tools/msggen/src/Event.js +0 -57
- package/ReactCommon/hermes/inspector/tools/msggen/src/GeneratedHeader.js +0 -16
- package/ReactCommon/hermes/inspector/tools/msggen/src/Graph.js +0 -90
- package/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js +0 -323
- package/ReactCommon/hermes/inspector/tools/msggen/src/ImplementationWriter.js +0 -421
- package/ReactCommon/hermes/inspector/tools/msggen/src/Property.js +0 -219
- package/ReactCommon/hermes/inspector/tools/msggen/src/TestHelpers.js +0 -40
- package/ReactCommon/hermes/inspector/tools/msggen/src/Type.js +0 -98
- package/ReactCommon/hermes/inspector/tools/msggen/src/custom.json +0 -26
- package/ReactCommon/hermes/inspector/tools/msggen/src/index.js +0 -251
- package/ReactCommon/jsi/Android.mk +0 -41
- package/ReactCommon/jsiexecutor/Android.mk +0 -23
- package/ReactCommon/jsinspector/Android.mk +0 -20
- package/ReactCommon/logger/Android.mk +0 -24
- package/ReactCommon/microprofiler/BUCK +0 -30
- package/ReactCommon/microprofiler/MicroProfiler.cpp +0 -252
- package/ReactCommon/microprofiler/MicroProfiler.h +0 -89
- package/ReactCommon/react/bridging/Android.mk +0 -27
- package/ReactCommon/react/config/Android.mk +0 -26
- package/ReactCommon/react/debug/Android.mk +0 -30
- package/ReactCommon/react/nativemodule/core/Android.mk +0 -40
- package/ReactCommon/react/nativemodule/samples/platform/android/Android.mk +0 -23
- package/ReactCommon/react/renderer/animations/Android.mk +0 -58
- package/ReactCommon/react/renderer/attributedstring/Android.mk +0 -53
- package/ReactCommon/react/renderer/componentregistry/Android.mk +0 -42
- package/ReactCommon/react/renderer/componentregistry/native/Android.mk +0 -37
- package/ReactCommon/react/renderer/components/image/Android.mk +0 -51
- package/ReactCommon/react/renderer/components/modal/Android.mk +0 -55
- package/ReactCommon/react/renderer/components/progressbar/Android.mk +0 -53
- package/ReactCommon/react/renderer/components/root/Android.mk +0 -46
- package/ReactCommon/react/renderer/components/scrollview/Android.mk +0 -49
- package/ReactCommon/react/renderer/components/slider/Android.mk +0 -59
- package/ReactCommon/react/renderer/components/switch/Android.mk +0 -53
- package/ReactCommon/react/renderer/components/text/Android.mk +0 -59
- package/ReactCommon/react/renderer/components/textinput/Android.mk +0 -67
- package/ReactCommon/react/renderer/components/unimplementedview/Android.mk +0 -47
- package/ReactCommon/react/renderer/components/view/Android.mk +0 -47
- package/ReactCommon/react/renderer/core/Android.mk +0 -41
- package/ReactCommon/react/renderer/debug/Android.mk +0 -28
- package/ReactCommon/react/renderer/graphics/Android.mk +0 -39
- package/ReactCommon/react/renderer/imagemanager/Android.mk +0 -44
- package/ReactCommon/react/renderer/leakchecker/Android.mk +0 -33
- package/ReactCommon/react/renderer/mapbuffer/Android.mk +0 -34
- package/ReactCommon/react/renderer/mounting/Android.mk +0 -55
- package/ReactCommon/react/renderer/runtimescheduler/Android.mk +0 -34
- package/ReactCommon/react/renderer/scheduler/Android.mk +0 -62
- package/ReactCommon/react/renderer/telemetry/Android.mk +0 -43
- package/ReactCommon/react/renderer/templateprocessor/Android.mk +0 -46
- package/ReactCommon/react/renderer/textlayoutmanager/Android.mk +0 -63
- package/ReactCommon/react/renderer/uimanager/Android.mk +0 -58
- package/ReactCommon/react/utils/Android.mk +0 -33
- package/ReactCommon/reactperflogger/Android.mk +0 -26
- package/ReactCommon/runtimeexecutor/Android.mk +0 -19
- package/ReactCommon/yoga/Android.mk +0 -21
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module +0 -246
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom +0 -44
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml +0 -13
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module +0 -670
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom +0 -156
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom.sha512 +0 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml +0 -13
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +0 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +0 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +0 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +0 -1
- package/jest/preprocessor.js +0 -40
- package/jest/preprocessor_DO_NOT_USE.js +0 -122
- package/scripts/generate-artifacts.js +0 -318
- package/template/_buckconfig +0 -6
- package/template/_flowconfig +0 -66
- package/template/_ruby-version +0 -1
- package/template/android/app/_BUCK +0 -55
- package/template/android/app/build_defs.bzl +0 -19
- package/template/android/app/src/main/java/com/helloworld/newarchitecture/MainApplicationReactNativeHost.java +0 -116
- package/template/android/app/src/main/java/com/helloworld/newarchitecture/components/MainComponentsRegistry.java +0 -36
- package/template/android/app/src/main/java/com/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
- package/template/android/app/src/main/jni/Android.mk +0 -48
- package/template/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -24
- package/template/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
- package/template/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
- package/template/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
- package/template/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
- package/template/android/app/src/main/jni/OnLoad.cpp +0 -11
- package/tvos-types.d.ts +0 -192
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/AsyncEventBeat.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/AsyncEventBeat.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/ComponentFactory.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/ComponentFactory.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/CoreComponentsRegistry.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/CoreComponentsRegistry.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/EventBeatManager.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/EventBeatManager.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/EventEmitterWrapper.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/EventEmitterWrapper.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/JFabricUIManager.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/JFabricUIManager.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/ReactNativeConfigHolder.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/ReactNativeConfigHolder.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/StateWrapperImpl.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/StateWrapperImpl.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/SurfaceHandlerBinding.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/SurfaceHandlerBinding.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/HermesMemoryDumper.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/HermesSamplingProfiler.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/HermesSamplingProfiler.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/OnLoad.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/.clang-tidy +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/JReadableMapBuffer.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/JReadableMapBuffer.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/JWritableMapBuffer.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/JWritableMapBuffer.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/OnLoad.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/BlobCollector.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/BlobCollector.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/OnLoad.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/reactperflogger/JNativeModulePerfLogger.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/reactperflogger/OnLoad.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/CallInvokerHolder.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/CallInvokerHolder.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/TurboModuleManager.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/ComponentNameResolverManager.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/ComponentNameResolverManager.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/OnLoad.cpp +0 -0
- /package/ReactCommon/{jsi → jsc}/JSCRuntime.h +0 -0
- /package/template/__tests__/{App-test.js → App-test.tsx} +0 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @nolint
|
|
9
9
|
* @providesModule ReactNativeRenderer-prod
|
|
10
10
|
* @preventMunge
|
|
11
|
-
* @generated SignedSource<<
|
|
11
|
+
* @generated SignedSource<<07cf699c0d1c149943b7a02432aa1550>>
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
"use strict";
|
|
@@ -1017,7 +1017,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
1017
1017
|
"ReactNativeBridgeEventPlugin"
|
|
1018
1018
|
]);
|
|
1019
1019
|
recomputePluginOrdering();
|
|
1020
|
-
var injectedNamesToPlugins$jscomp$
|
|
1020
|
+
var injectedNamesToPlugins$jscomp$inline_229 = {
|
|
1021
1021
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
1022
1022
|
ReactNativeBridgeEventPlugin: {
|
|
1023
1023
|
eventTypes: {},
|
|
@@ -1063,33 +1063,33 @@ var injectedNamesToPlugins$jscomp$inline_220 = {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
1065
|
},
|
|
1066
|
-
isOrderingDirty$jscomp$
|
|
1067
|
-
pluginName$jscomp$
|
|
1068
|
-
for (pluginName$jscomp$
|
|
1066
|
+
isOrderingDirty$jscomp$inline_230 = !1,
|
|
1067
|
+
pluginName$jscomp$inline_231;
|
|
1068
|
+
for (pluginName$jscomp$inline_231 in injectedNamesToPlugins$jscomp$inline_229)
|
|
1069
1069
|
if (
|
|
1070
|
-
injectedNamesToPlugins$jscomp$
|
|
1071
|
-
pluginName$jscomp$
|
|
1070
|
+
injectedNamesToPlugins$jscomp$inline_229.hasOwnProperty(
|
|
1071
|
+
pluginName$jscomp$inline_231
|
|
1072
1072
|
)
|
|
1073
1073
|
) {
|
|
1074
|
-
var pluginModule$jscomp$
|
|
1075
|
-
injectedNamesToPlugins$jscomp$
|
|
1074
|
+
var pluginModule$jscomp$inline_232 =
|
|
1075
|
+
injectedNamesToPlugins$jscomp$inline_229[pluginName$jscomp$inline_231];
|
|
1076
1076
|
if (
|
|
1077
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
1078
|
-
namesToPlugins[pluginName$jscomp$
|
|
1079
|
-
pluginModule$jscomp$
|
|
1077
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_231) ||
|
|
1078
|
+
namesToPlugins[pluginName$jscomp$inline_231] !==
|
|
1079
|
+
pluginModule$jscomp$inline_232
|
|
1080
1080
|
) {
|
|
1081
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
1081
|
+
if (namesToPlugins[pluginName$jscomp$inline_231])
|
|
1082
1082
|
throw Error(
|
|
1083
1083
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
1084
|
-
(pluginName$jscomp$
|
|
1084
|
+
(pluginName$jscomp$inline_231 + "`.")
|
|
1085
1085
|
);
|
|
1086
1086
|
namesToPlugins[
|
|
1087
|
-
pluginName$jscomp$
|
|
1088
|
-
] = pluginModule$jscomp$
|
|
1089
|
-
isOrderingDirty$jscomp$
|
|
1087
|
+
pluginName$jscomp$inline_231
|
|
1088
|
+
] = pluginModule$jscomp$inline_232;
|
|
1089
|
+
isOrderingDirty$jscomp$inline_230 = !0;
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
|
-
isOrderingDirty$jscomp$
|
|
1092
|
+
isOrderingDirty$jscomp$inline_230 && recomputePluginOrdering();
|
|
1093
1093
|
var instanceCache = new Map(),
|
|
1094
1094
|
instanceProps = new Map();
|
|
1095
1095
|
function getInstanceFromTag(tag) {
|
|
@@ -1923,6 +1923,12 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1923
1923
|
root = root.pendingLanes & -1073741825;
|
|
1924
1924
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1925
1925
|
}
|
|
1926
|
+
function claimNextTransitionLane() {
|
|
1927
|
+
var lane = nextTransitionLane;
|
|
1928
|
+
nextTransitionLane <<= 1;
|
|
1929
|
+
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
|
1930
|
+
return lane;
|
|
1931
|
+
}
|
|
1926
1932
|
function createLaneMap(initial) {
|
|
1927
1933
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1928
1934
|
return laneMap;
|
|
@@ -2152,7 +2158,28 @@ function flushSyncCallbacks() {
|
|
|
2152
2158
|
}
|
|
2153
2159
|
return null;
|
|
2154
2160
|
}
|
|
2155
|
-
var
|
|
2161
|
+
var forkStack = [],
|
|
2162
|
+
forkStackIndex = 0,
|
|
2163
|
+
treeForkProvider = null,
|
|
2164
|
+
idStack = [],
|
|
2165
|
+
idStackIndex = 0,
|
|
2166
|
+
treeContextProvider = null;
|
|
2167
|
+
function popTreeContext(workInProgress) {
|
|
2168
|
+
for (; workInProgress === treeForkProvider; )
|
|
2169
|
+
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2170
|
+
(forkStack[forkStackIndex] = null),
|
|
2171
|
+
--forkStackIndex,
|
|
2172
|
+
(forkStack[forkStackIndex] = null);
|
|
2173
|
+
for (; workInProgress === treeContextProvider; )
|
|
2174
|
+
(treeContextProvider = idStack[--idStackIndex]),
|
|
2175
|
+
(idStack[idStackIndex] = null),
|
|
2176
|
+
--idStackIndex,
|
|
2177
|
+
(idStack[idStackIndex] = null),
|
|
2178
|
+
--idStackIndex,
|
|
2179
|
+
(idStack[idStackIndex] = null);
|
|
2180
|
+
}
|
|
2181
|
+
var hydrationErrors = null,
|
|
2182
|
+
ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2156
2183
|
function shallowEqual(objA, objB) {
|
|
2157
2184
|
if (objectIs(objA, objB)) return !0;
|
|
2158
2185
|
if (
|
|
@@ -2273,8 +2300,34 @@ function readContext(context) {
|
|
|
2273
2300
|
} else lastContextDependency = lastContextDependency.next = context;
|
|
2274
2301
|
return value;
|
|
2275
2302
|
}
|
|
2276
|
-
var
|
|
2277
|
-
|
|
2303
|
+
var concurrentQueues = null;
|
|
2304
|
+
function pushConcurrentUpdateQueue(queue) {
|
|
2305
|
+
null === concurrentQueues
|
|
2306
|
+
? (concurrentQueues = [queue])
|
|
2307
|
+
: concurrentQueues.push(queue);
|
|
2308
|
+
}
|
|
2309
|
+
function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
|
|
2310
|
+
var interleaved = queue.interleaved;
|
|
2311
|
+
null === interleaved
|
|
2312
|
+
? ((update.next = update), pushConcurrentUpdateQueue(queue))
|
|
2313
|
+
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
2314
|
+
queue.interleaved = update;
|
|
2315
|
+
return markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
2316
|
+
}
|
|
2317
|
+
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
2318
|
+
sourceFiber.lanes |= lane;
|
|
2319
|
+
var alternate = sourceFiber.alternate;
|
|
2320
|
+
null !== alternate && (alternate.lanes |= lane);
|
|
2321
|
+
alternate = sourceFiber;
|
|
2322
|
+
for (sourceFiber = sourceFiber.return; null !== sourceFiber; )
|
|
2323
|
+
(sourceFiber.childLanes |= lane),
|
|
2324
|
+
(alternate = sourceFiber.alternate),
|
|
2325
|
+
null !== alternate && (alternate.childLanes |= lane),
|
|
2326
|
+
(alternate = sourceFiber),
|
|
2327
|
+
(sourceFiber = sourceFiber.return);
|
|
2328
|
+
return 3 === alternate.tag ? alternate.stateNode : null;
|
|
2329
|
+
}
|
|
2330
|
+
var hasForceUpdate = !1;
|
|
2278
2331
|
function initializeUpdateQueue(fiber) {
|
|
2279
2332
|
fiber.updateQueue = {
|
|
2280
2333
|
baseState: fiber.memoizedState,
|
|
@@ -2305,26 +2358,24 @@ function createUpdate(eventTime, lane) {
|
|
|
2305
2358
|
next: null
|
|
2306
2359
|
};
|
|
2307
2360
|
}
|
|
2308
|
-
function enqueueUpdate(fiber, update) {
|
|
2361
|
+
function enqueueUpdate(fiber, update, lane) {
|
|
2309
2362
|
var updateQueue = fiber.updateQueue;
|
|
2310
|
-
null
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
? (
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
: ((update.next = fiber.next), (fiber.next = update)),
|
|
2327
|
-
(updateQueue.pending = update)));
|
|
2363
|
+
if (null === updateQueue) return null;
|
|
2364
|
+
updateQueue = updateQueue.shared;
|
|
2365
|
+
if (0 !== (executionContext & 2)) {
|
|
2366
|
+
var pending = updateQueue.pending;
|
|
2367
|
+
null === pending
|
|
2368
|
+
? (update.next = update)
|
|
2369
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
2370
|
+
updateQueue.pending = update;
|
|
2371
|
+
return markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
2372
|
+
}
|
|
2373
|
+
pending = updateQueue.interleaved;
|
|
2374
|
+
null === pending
|
|
2375
|
+
? ((update.next = update), pushConcurrentUpdateQueue(updateQueue))
|
|
2376
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
2377
|
+
updateQueue.interleaved = update;
|
|
2378
|
+
return markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
2328
2379
|
}
|
|
2329
2380
|
function entangleTransitions(root, fiber, lane) {
|
|
2330
2381
|
fiber = fiber.updateQueue;
|
|
@@ -2561,9 +2612,10 @@ var classComponentUpdater = {
|
|
|
2561
2612
|
update = createUpdate(eventTime, lane);
|
|
2562
2613
|
update.payload = payload;
|
|
2563
2614
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2564
|
-
enqueueUpdate(inst, update);
|
|
2565
|
-
|
|
2566
|
-
|
|
2615
|
+
payload = enqueueUpdate(inst, update, lane);
|
|
2616
|
+
null !== payload &&
|
|
2617
|
+
(scheduleUpdateOnFiber(payload, inst, lane, eventTime),
|
|
2618
|
+
entangleTransitions(payload, inst, lane));
|
|
2567
2619
|
},
|
|
2568
2620
|
enqueueReplaceState: function(inst, payload, callback) {
|
|
2569
2621
|
inst = inst._reactInternals;
|
|
@@ -2573,9 +2625,10 @@ var classComponentUpdater = {
|
|
|
2573
2625
|
update.tag = 1;
|
|
2574
2626
|
update.payload = payload;
|
|
2575
2627
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2576
|
-
enqueueUpdate(inst, update);
|
|
2577
|
-
|
|
2578
|
-
|
|
2628
|
+
payload = enqueueUpdate(inst, update, lane);
|
|
2629
|
+
null !== payload &&
|
|
2630
|
+
(scheduleUpdateOnFiber(payload, inst, lane, eventTime),
|
|
2631
|
+
entangleTransitions(payload, inst, lane));
|
|
2579
2632
|
},
|
|
2580
2633
|
enqueueForceUpdate: function(inst, callback) {
|
|
2581
2634
|
inst = inst._reactInternals;
|
|
@@ -2584,9 +2637,10 @@ var classComponentUpdater = {
|
|
|
2584
2637
|
update = createUpdate(eventTime, lane);
|
|
2585
2638
|
update.tag = 2;
|
|
2586
2639
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2587
|
-
enqueueUpdate(inst, update);
|
|
2588
|
-
|
|
2589
|
-
|
|
2640
|
+
callback = enqueueUpdate(inst, update, lane);
|
|
2641
|
+
null !== callback &&
|
|
2642
|
+
(scheduleUpdateOnFiber(callback, inst, lane, eventTime),
|
|
2643
|
+
entangleTransitions(callback, inst, lane));
|
|
2590
2644
|
}
|
|
2591
2645
|
};
|
|
2592
2646
|
function checkShouldComponentUpdate(
|
|
@@ -2679,26 +2733,6 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2679
2733
|
"function" === typeof instance.componentDidMount &&
|
|
2680
2734
|
(workInProgress.flags |= 4);
|
|
2681
2735
|
}
|
|
2682
|
-
var forkStack = [],
|
|
2683
|
-
forkStackIndex = 0,
|
|
2684
|
-
treeForkProvider = null,
|
|
2685
|
-
idStack = [],
|
|
2686
|
-
idStackIndex = 0,
|
|
2687
|
-
treeContextProvider = null;
|
|
2688
|
-
function popTreeContext(workInProgress) {
|
|
2689
|
-
for (; workInProgress === treeForkProvider; )
|
|
2690
|
-
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2691
|
-
(forkStack[forkStackIndex] = null),
|
|
2692
|
-
--forkStackIndex,
|
|
2693
|
-
(forkStack[forkStackIndex] = null);
|
|
2694
|
-
for (; workInProgress === treeContextProvider; )
|
|
2695
|
-
(treeContextProvider = idStack[--idStackIndex]),
|
|
2696
|
-
(idStack[idStackIndex] = null),
|
|
2697
|
-
--idStackIndex,
|
|
2698
|
-
(idStack[idStackIndex] = null),
|
|
2699
|
-
--idStackIndex,
|
|
2700
|
-
(idStack[idStackIndex] = null);
|
|
2701
|
-
}
|
|
2702
2736
|
function coerceRef(returnFiber, current, element) {
|
|
2703
2737
|
returnFiber = element.ref;
|
|
2704
2738
|
if (
|
|
@@ -2761,6 +2795,10 @@ function throwOnInvalidObjectType(returnFiber, newChild) {
|
|
|
2761
2795
|
"). If you meant to render a collection of children, use an array instead."
|
|
2762
2796
|
);
|
|
2763
2797
|
}
|
|
2798
|
+
function resolveLazy(lazyType) {
|
|
2799
|
+
var init = lazyType._init;
|
|
2800
|
+
return init(lazyType._payload);
|
|
2801
|
+
}
|
|
2764
2802
|
function ChildReconciler(shouldTrackSideEffects) {
|
|
2765
2803
|
function deleteChild(returnFiber, childToDelete) {
|
|
2766
2804
|
if (shouldTrackSideEffects) {
|
|
@@ -2833,7 +2871,14 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2833
2871
|
lanes,
|
|
2834
2872
|
element.key
|
|
2835
2873
|
);
|
|
2836
|
-
if (
|
|
2874
|
+
if (
|
|
2875
|
+
null !== current &&
|
|
2876
|
+
(current.elementType === elementType ||
|
|
2877
|
+
("object" === typeof elementType &&
|
|
2878
|
+
null !== elementType &&
|
|
2879
|
+
elementType.$$typeof === REACT_LAZY_TYPE &&
|
|
2880
|
+
resolveLazy(elementType) === current.type))
|
|
2881
|
+
)
|
|
2837
2882
|
return (
|
|
2838
2883
|
(lanes = useFiber(current, element.props)),
|
|
2839
2884
|
(lanes.ref = coerceRef(returnFiber, current, element)),
|
|
@@ -2924,6 +2969,9 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2924
2969
|
(newChild.return = returnFiber),
|
|
2925
2970
|
newChild
|
|
2926
2971
|
);
|
|
2972
|
+
case REACT_LAZY_TYPE:
|
|
2973
|
+
var init = newChild._init;
|
|
2974
|
+
return createChild(returnFiber, init(newChild._payload), lanes);
|
|
2927
2975
|
}
|
|
2928
2976
|
if (isArrayImpl(newChild) || getIteratorFn(newChild))
|
|
2929
2977
|
return (
|
|
@@ -2959,6 +3007,11 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2959
3007
|
return newChild.key === key
|
|
2960
3008
|
? updatePortal(returnFiber, oldFiber, newChild, lanes)
|
|
2961
3009
|
: null;
|
|
3010
|
+
case REACT_LAZY_TYPE:
|
|
3011
|
+
return (
|
|
3012
|
+
(key = newChild._init),
|
|
3013
|
+
updateSlot(returnFiber, oldFiber, key(newChild._payload), lanes)
|
|
3014
|
+
);
|
|
2962
3015
|
}
|
|
2963
3016
|
if (isArrayImpl(newChild) || getIteratorFn(newChild))
|
|
2964
3017
|
return null !== key
|
|
@@ -3001,6 +3054,15 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3001
3054
|
) || null),
|
|
3002
3055
|
updatePortal(returnFiber, existingChildren, newChild, lanes)
|
|
3003
3056
|
);
|
|
3057
|
+
case REACT_LAZY_TYPE:
|
|
3058
|
+
var init = newChild._init;
|
|
3059
|
+
return updateFromMap(
|
|
3060
|
+
existingChildren,
|
|
3061
|
+
returnFiber,
|
|
3062
|
+
newIdx,
|
|
3063
|
+
init(newChild._payload),
|
|
3064
|
+
lanes
|
|
3065
|
+
);
|
|
3004
3066
|
}
|
|
3005
3067
|
if (isArrayImpl(newChild) || getIteratorFn(newChild))
|
|
3006
3068
|
return (
|
|
@@ -3178,7 +3240,12 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3178
3240
|
});
|
|
3179
3241
|
return iteratorFn;
|
|
3180
3242
|
}
|
|
3181
|
-
|
|
3243
|
+
function reconcileChildFibers(
|
|
3244
|
+
returnFiber,
|
|
3245
|
+
currentFirstChild,
|
|
3246
|
+
newChild,
|
|
3247
|
+
lanes
|
|
3248
|
+
) {
|
|
3182
3249
|
"object" === typeof newChild &&
|
|
3183
3250
|
null !== newChild &&
|
|
3184
3251
|
newChild.type === REACT_FRAGMENT_TYPE &&
|
|
@@ -3206,7 +3273,13 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3206
3273
|
returnFiber = currentFirstChild;
|
|
3207
3274
|
break a;
|
|
3208
3275
|
}
|
|
3209
|
-
} else if (
|
|
3276
|
+
} else if (
|
|
3277
|
+
child.elementType === key ||
|
|
3278
|
+
("object" === typeof key &&
|
|
3279
|
+
null !== key &&
|
|
3280
|
+
key.$$typeof === REACT_LAZY_TYPE &&
|
|
3281
|
+
resolveLazy(key) === child.type)
|
|
3282
|
+
) {
|
|
3210
3283
|
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3211
3284
|
currentFirstChild = useFiber(child, newChild.props);
|
|
3212
3285
|
currentFirstChild.ref = coerceRef(
|
|
@@ -3287,6 +3360,16 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3287
3360
|
returnFiber = currentFirstChild;
|
|
3288
3361
|
}
|
|
3289
3362
|
return placeSingleChild(returnFiber);
|
|
3363
|
+
case REACT_LAZY_TYPE:
|
|
3364
|
+
return (
|
|
3365
|
+
(child = newChild._init),
|
|
3366
|
+
reconcileChildFibers(
|
|
3367
|
+
returnFiber,
|
|
3368
|
+
currentFirstChild,
|
|
3369
|
+
child(newChild._payload),
|
|
3370
|
+
lanes
|
|
3371
|
+
)
|
|
3372
|
+
);
|
|
3290
3373
|
}
|
|
3291
3374
|
if (isArrayImpl(newChild))
|
|
3292
3375
|
return reconcileChildrenArray(
|
|
@@ -3322,7 +3405,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3322
3405
|
(returnFiber = currentFirstChild)),
|
|
3323
3406
|
placeSingleChild(returnFiber))
|
|
3324
3407
|
: deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3325
|
-
}
|
|
3408
|
+
}
|
|
3409
|
+
return reconcileChildFibers;
|
|
3326
3410
|
}
|
|
3327
3411
|
var reconcileChildFibers = ChildReconciler(!0),
|
|
3328
3412
|
mountChildFibers = ChildReconciler(!1),
|
|
@@ -3661,11 +3745,11 @@ function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
|
3661
3745
|
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3662
3746
|
inst.value = nextSnapshot;
|
|
3663
3747
|
inst.getSnapshot = getSnapshot;
|
|
3664
|
-
checkIfSnapshotChanged(inst) &&
|
|
3748
|
+
checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
|
|
3665
3749
|
}
|
|
3666
3750
|
function subscribeToStore(fiber, inst, subscribe) {
|
|
3667
3751
|
return subscribe(function() {
|
|
3668
|
-
checkIfSnapshotChanged(inst) &&
|
|
3752
|
+
checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
|
|
3669
3753
|
});
|
|
3670
3754
|
}
|
|
3671
3755
|
function checkIfSnapshotChanged(inst) {
|
|
@@ -3678,6 +3762,10 @@ function checkIfSnapshotChanged(inst) {
|
|
|
3678
3762
|
return !0;
|
|
3679
3763
|
}
|
|
3680
3764
|
}
|
|
3765
|
+
function forceStoreRerender(fiber) {
|
|
3766
|
+
var root = markUpdateLaneFromFiberToRoot(fiber, 1);
|
|
3767
|
+
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
|
3768
|
+
}
|
|
3681
3769
|
function mountState(initialState) {
|
|
3682
3770
|
var hook = mountWorkInProgressHook();
|
|
3683
3771
|
"function" === typeof initialState && (initialState = initialState());
|
|
@@ -3809,6 +3897,19 @@ function updateMemo(nextCreate, deps) {
|
|
|
3809
3897
|
hook.memoizedState = [nextCreate, deps];
|
|
3810
3898
|
return nextCreate;
|
|
3811
3899
|
}
|
|
3900
|
+
function updateDeferredValueImpl(hook, prevValue, value) {
|
|
3901
|
+
if (0 === (renderLanes & 21))
|
|
3902
|
+
return (
|
|
3903
|
+
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
|
3904
|
+
(hook.memoizedState = value)
|
|
3905
|
+
);
|
|
3906
|
+
objectIs(value, prevValue) ||
|
|
3907
|
+
((value = claimNextTransitionLane()),
|
|
3908
|
+
(currentlyRenderingFiber$1.lanes |= value),
|
|
3909
|
+
(workInProgressRootSkippedLanes |= value),
|
|
3910
|
+
(hook.baseState = !0));
|
|
3911
|
+
return prevValue;
|
|
3912
|
+
}
|
|
3812
3913
|
function startTransition(setPending, callback) {
|
|
3813
3914
|
var previousPriority = currentUpdatePriority;
|
|
3814
3915
|
currentUpdatePriority =
|
|
@@ -3835,12 +3936,15 @@ function dispatchReducerAction(fiber, queue, action) {
|
|
|
3835
3936
|
eagerState: null,
|
|
3836
3937
|
next: null
|
|
3837
3938
|
};
|
|
3838
|
-
isRenderPhaseUpdate(fiber)
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3939
|
+
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action);
|
|
3940
|
+
else if (
|
|
3941
|
+
((action = enqueueConcurrentHookUpdate(fiber, queue, action, lane)),
|
|
3942
|
+
null !== action)
|
|
3943
|
+
) {
|
|
3944
|
+
var eventTime = requestEventTime();
|
|
3945
|
+
scheduleUpdateOnFiber(action, fiber, lane, eventTime);
|
|
3946
|
+
entangleTransitionUpdate(action, queue, lane);
|
|
3947
|
+
}
|
|
3844
3948
|
}
|
|
3845
3949
|
function dispatchSetState(fiber, queue, action) {
|
|
3846
3950
|
var lane = requestUpdateLane(fiber),
|
|
@@ -3853,7 +3957,6 @@ function dispatchSetState(fiber, queue, action) {
|
|
|
3853
3957
|
};
|
|
3854
3958
|
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
|
|
3855
3959
|
else {
|
|
3856
|
-
enqueueUpdate$1(fiber, queue, update);
|
|
3857
3960
|
var alternate = fiber.alternate;
|
|
3858
3961
|
if (
|
|
3859
3962
|
0 === fiber.lanes &&
|
|
@@ -3865,13 +3968,22 @@ function dispatchSetState(fiber, queue, action) {
|
|
|
3865
3968
|
eagerState = alternate(currentState, action);
|
|
3866
3969
|
update.hasEagerState = !0;
|
|
3867
3970
|
update.eagerState = eagerState;
|
|
3868
|
-
if (objectIs(eagerState, currentState))
|
|
3971
|
+
if (objectIs(eagerState, currentState)) {
|
|
3972
|
+
var interleaved = queue.interleaved;
|
|
3973
|
+
null === interleaved
|
|
3974
|
+
? ((update.next = update), pushConcurrentUpdateQueue(queue))
|
|
3975
|
+
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
3976
|
+
queue.interleaved = update;
|
|
3977
|
+
return;
|
|
3978
|
+
}
|
|
3869
3979
|
} catch (error) {
|
|
3870
3980
|
} finally {
|
|
3871
3981
|
}
|
|
3872
|
-
action =
|
|
3873
|
-
|
|
3874
|
-
|
|
3982
|
+
action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
|
|
3983
|
+
null !== action &&
|
|
3984
|
+
((update = requestEventTime()),
|
|
3985
|
+
scheduleUpdateOnFiber(action, fiber, lane, update),
|
|
3986
|
+
entangleTransitionUpdate(action, queue, lane));
|
|
3875
3987
|
}
|
|
3876
3988
|
}
|
|
3877
3989
|
function isRenderPhaseUpdate(fiber) {
|
|
@@ -3889,24 +4001,6 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
|
|
3889
4001
|
: ((update.next = pending.next), (pending.next = update));
|
|
3890
4002
|
queue.pending = update;
|
|
3891
4003
|
}
|
|
3892
|
-
function enqueueUpdate$1(fiber, queue, update) {
|
|
3893
|
-
null !== workInProgressRoot &&
|
|
3894
|
-
0 !== (fiber.mode & 1) &&
|
|
3895
|
-
0 === (executionContext & 2)
|
|
3896
|
-
? ((fiber = queue.interleaved),
|
|
3897
|
-
null === fiber
|
|
3898
|
-
? ((update.next = update),
|
|
3899
|
-
null === interleavedQueues
|
|
3900
|
-
? (interleavedQueues = [queue])
|
|
3901
|
-
: interleavedQueues.push(queue))
|
|
3902
|
-
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3903
|
-
(queue.interleaved = update))
|
|
3904
|
-
: ((fiber = queue.pending),
|
|
3905
|
-
null === fiber
|
|
3906
|
-
? (update.next = update)
|
|
3907
|
-
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3908
|
-
(queue.pending = update));
|
|
3909
|
-
}
|
|
3910
4004
|
function entangleTransitionUpdate(root, queue, lane) {
|
|
3911
4005
|
if (0 !== (lane & 4194240)) {
|
|
3912
4006
|
var queueLanes = queue.lanes;
|
|
@@ -3997,29 +4091,14 @@ var ContextOnlyDispatcher = {
|
|
|
3997
4091
|
useState: mountState,
|
|
3998
4092
|
useDebugValue: mountDebugValue,
|
|
3999
4093
|
useDeferredValue: function(value) {
|
|
4000
|
-
|
|
4001
|
-
prevValue = _mountState[0],
|
|
4002
|
-
setValue = _mountState[1];
|
|
4003
|
-
mountEffect(
|
|
4004
|
-
function() {
|
|
4005
|
-
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
|
4006
|
-
ReactCurrentBatchConfig$1.transition = {};
|
|
4007
|
-
try {
|
|
4008
|
-
setValue(value);
|
|
4009
|
-
} finally {
|
|
4010
|
-
ReactCurrentBatchConfig$1.transition = prevTransition;
|
|
4011
|
-
}
|
|
4012
|
-
},
|
|
4013
|
-
[value]
|
|
4014
|
-
);
|
|
4015
|
-
return prevValue;
|
|
4094
|
+
return (mountWorkInProgressHook().memoizedState = value);
|
|
4016
4095
|
},
|
|
4017
4096
|
useTransition: function() {
|
|
4018
|
-
var
|
|
4019
|
-
isPending =
|
|
4020
|
-
|
|
4021
|
-
mountWorkInProgressHook().memoizedState =
|
|
4022
|
-
return [isPending,
|
|
4097
|
+
var _mountState = mountState(!1),
|
|
4098
|
+
isPending = _mountState[0];
|
|
4099
|
+
_mountState = startTransition.bind(null, _mountState[1]);
|
|
4100
|
+
mountWorkInProgressHook().memoizedState = _mountState;
|
|
4101
|
+
return [isPending, _mountState];
|
|
4023
4102
|
},
|
|
4024
4103
|
useMutableSource: function() {},
|
|
4025
4104
|
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
@@ -4073,22 +4152,8 @@ var ContextOnlyDispatcher = {
|
|
|
4073
4152
|
},
|
|
4074
4153
|
useDebugValue: mountDebugValue,
|
|
4075
4154
|
useDeferredValue: function(value) {
|
|
4076
|
-
var
|
|
4077
|
-
|
|
4078
|
-
setValue = _updateState[1];
|
|
4079
|
-
updateEffect(
|
|
4080
|
-
function() {
|
|
4081
|
-
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
|
4082
|
-
ReactCurrentBatchConfig$1.transition = {};
|
|
4083
|
-
try {
|
|
4084
|
-
setValue(value);
|
|
4085
|
-
} finally {
|
|
4086
|
-
ReactCurrentBatchConfig$1.transition = prevTransition;
|
|
4087
|
-
}
|
|
4088
|
-
},
|
|
4089
|
-
[value]
|
|
4090
|
-
);
|
|
4091
|
-
return prevValue;
|
|
4155
|
+
var hook = updateWorkInProgressHook();
|
|
4156
|
+
return updateDeferredValueImpl(hook, currentHook.memoizedState, value);
|
|
4092
4157
|
},
|
|
4093
4158
|
useTransition: function() {
|
|
4094
4159
|
var isPending = updateReducer(basicStateReducer)[0],
|
|
@@ -4116,22 +4181,10 @@ var ContextOnlyDispatcher = {
|
|
|
4116
4181
|
},
|
|
4117
4182
|
useDebugValue: mountDebugValue,
|
|
4118
4183
|
useDeferredValue: function(value) {
|
|
4119
|
-
var
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
function() {
|
|
4124
|
-
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
|
4125
|
-
ReactCurrentBatchConfig$1.transition = {};
|
|
4126
|
-
try {
|
|
4127
|
-
setValue(value);
|
|
4128
|
-
} finally {
|
|
4129
|
-
ReactCurrentBatchConfig$1.transition = prevTransition;
|
|
4130
|
-
}
|
|
4131
|
-
},
|
|
4132
|
-
[value]
|
|
4133
|
-
);
|
|
4134
|
-
return prevValue;
|
|
4184
|
+
var hook = updateWorkInProgressHook();
|
|
4185
|
+
return null === currentHook
|
|
4186
|
+
? (hook.memoizedState = value)
|
|
4187
|
+
: updateDeferredValueImpl(hook, currentHook.memoizedState, value);
|
|
4135
4188
|
},
|
|
4136
4189
|
useTransition: function() {
|
|
4137
4190
|
var isPending = rerenderReducer(basicStateReducer)[0],
|
|
@@ -4143,11 +4196,20 @@ var ContextOnlyDispatcher = {
|
|
|
4143
4196
|
useId: updateId,
|
|
4144
4197
|
unstable_isNewReconciler: !1
|
|
4145
4198
|
};
|
|
4146
|
-
function
|
|
4199
|
+
function createCapturedValueAtFiber(value, source) {
|
|
4147
4200
|
return {
|
|
4148
4201
|
value: value,
|
|
4149
4202
|
source: source,
|
|
4150
|
-
stack: getStackByFiberInDevAndProd(source)
|
|
4203
|
+
stack: getStackByFiberInDevAndProd(source),
|
|
4204
|
+
digest: null
|
|
4205
|
+
};
|
|
4206
|
+
}
|
|
4207
|
+
function createCapturedValue(value, digest, stack) {
|
|
4208
|
+
return {
|
|
4209
|
+
value: value,
|
|
4210
|
+
source: null,
|
|
4211
|
+
stack: null != stack ? stack : null,
|
|
4212
|
+
digest: null != digest ? digest : null
|
|
4151
4213
|
};
|
|
4152
4214
|
}
|
|
4153
4215
|
if (
|
|
@@ -4228,456 +4290,74 @@ function attachPingListener(root, wakeable, lanes) {
|
|
|
4228
4290
|
(root = pingSuspendedRoot.bind(null, root, wakeable, lanes)),
|
|
4229
4291
|
wakeable.then(root, root));
|
|
4230
4292
|
}
|
|
4231
|
-
var
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
node = node.return;
|
|
4244
|
-
}
|
|
4245
|
-
node.sibling.return = node.return;
|
|
4246
|
-
node = node.sibling;
|
|
4247
|
-
}
|
|
4248
|
-
};
|
|
4249
|
-
updateHostContainer = function() {};
|
|
4250
|
-
updateHostComponent = function(current, workInProgress, type, newProps) {
|
|
4251
|
-
current.memoizedProps !== newProps &&
|
|
4252
|
-
(requiredContext(contextStackCursor$1.current),
|
|
4253
|
-
(workInProgress.updateQueue = UPDATE_SIGNAL)) &&
|
|
4254
|
-
(workInProgress.flags |= 4);
|
|
4255
|
-
};
|
|
4256
|
-
updateHostText = function(current, workInProgress, oldText, newText) {
|
|
4257
|
-
oldText !== newText && (workInProgress.flags |= 4);
|
|
4258
|
-
};
|
|
4259
|
-
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
4260
|
-
switch (renderState.tailMode) {
|
|
4261
|
-
case "hidden":
|
|
4262
|
-
hasRenderedATailFallback = renderState.tail;
|
|
4263
|
-
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
4264
|
-
null !== hasRenderedATailFallback.alternate &&
|
|
4265
|
-
(lastTailNode = hasRenderedATailFallback),
|
|
4266
|
-
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
4267
|
-
null === lastTailNode
|
|
4268
|
-
? (renderState.tail = null)
|
|
4269
|
-
: (lastTailNode.sibling = null);
|
|
4270
|
-
break;
|
|
4271
|
-
case "collapsed":
|
|
4272
|
-
lastTailNode = renderState.tail;
|
|
4273
|
-
for (var lastTailNode$35 = null; null !== lastTailNode; )
|
|
4274
|
-
null !== lastTailNode.alternate && (lastTailNode$35 = lastTailNode),
|
|
4275
|
-
(lastTailNode = lastTailNode.sibling);
|
|
4276
|
-
null === lastTailNode$35
|
|
4277
|
-
? hasRenderedATailFallback || null === renderState.tail
|
|
4278
|
-
? (renderState.tail = null)
|
|
4279
|
-
: (renderState.tail.sibling = null)
|
|
4280
|
-
: (lastTailNode$35.sibling = null);
|
|
4281
|
-
}
|
|
4293
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
|
4294
|
+
didReceiveUpdate = !1;
|
|
4295
|
+
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
|
4296
|
+
workInProgress.child =
|
|
4297
|
+
null === current
|
|
4298
|
+
? mountChildFibers(workInProgress, null, nextChildren, renderLanes)
|
|
4299
|
+
: reconcileChildFibers(
|
|
4300
|
+
workInProgress,
|
|
4301
|
+
current.child,
|
|
4302
|
+
nextChildren,
|
|
4303
|
+
renderLanes
|
|
4304
|
+
);
|
|
4282
4305
|
}
|
|
4283
|
-
function
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
+
function updateForwardRef(
|
|
4307
|
+
current,
|
|
4308
|
+
workInProgress,
|
|
4309
|
+
Component,
|
|
4310
|
+
nextProps,
|
|
4311
|
+
renderLanes
|
|
4312
|
+
) {
|
|
4313
|
+
Component = Component.render;
|
|
4314
|
+
var ref = workInProgress.ref;
|
|
4315
|
+
prepareToReadContext(workInProgress, renderLanes);
|
|
4316
|
+
nextProps = renderWithHooks(
|
|
4317
|
+
current,
|
|
4318
|
+
workInProgress,
|
|
4319
|
+
Component,
|
|
4320
|
+
nextProps,
|
|
4321
|
+
ref,
|
|
4322
|
+
renderLanes
|
|
4323
|
+
);
|
|
4324
|
+
if (null !== current && !didReceiveUpdate)
|
|
4325
|
+
return (
|
|
4326
|
+
(workInProgress.updateQueue = current.updateQueue),
|
|
4327
|
+
(workInProgress.flags &= -2053),
|
|
4328
|
+
(current.lanes &= ~renderLanes),
|
|
4329
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4330
|
+
);
|
|
4331
|
+
workInProgress.flags |= 1;
|
|
4332
|
+
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
4333
|
+
return workInProgress.child;
|
|
4306
4334
|
}
|
|
4307
|
-
function
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4335
|
+
function updateMemoComponent(
|
|
4336
|
+
current,
|
|
4337
|
+
workInProgress,
|
|
4338
|
+
Component,
|
|
4339
|
+
nextProps,
|
|
4340
|
+
renderLanes
|
|
4341
|
+
) {
|
|
4342
|
+
if (null === current) {
|
|
4343
|
+
var type = Component.type;
|
|
4344
|
+
if (
|
|
4345
|
+
"function" === typeof type &&
|
|
4346
|
+
!shouldConstruct(type) &&
|
|
4347
|
+
void 0 === type.defaultProps &&
|
|
4348
|
+
null === Component.compare &&
|
|
4349
|
+
void 0 === Component.defaultProps
|
|
4350
|
+
)
|
|
4323
4351
|
return (
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
pop(contextStackCursor),
|
|
4334
|
-
resetWorkInProgressVersions(),
|
|
4335
|
-
newProps.pendingContext &&
|
|
4336
|
-
((newProps.context = newProps.pendingContext),
|
|
4337
|
-
(newProps.pendingContext = null)),
|
|
4338
|
-
(null !== current && null !== current.child) ||
|
|
4339
|
-
null === current ||
|
|
4340
|
-
(current.memoizedState.isDehydrated &&
|
|
4341
|
-
0 === (workInProgress.flags & 256)) ||
|
|
4342
|
-
(workInProgress.flags |= 1024),
|
|
4343
|
-
updateHostContainer(current, workInProgress),
|
|
4344
|
-
bubbleProperties(workInProgress),
|
|
4345
|
-
null
|
|
4346
|
-
);
|
|
4347
|
-
case 5:
|
|
4348
|
-
popHostContext(workInProgress);
|
|
4349
|
-
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
4350
|
-
var type = workInProgress.type;
|
|
4351
|
-
if (null !== current && null != workInProgress.stateNode)
|
|
4352
|
-
updateHostComponent(
|
|
4353
|
-
current,
|
|
4354
|
-
workInProgress,
|
|
4355
|
-
type,
|
|
4356
|
-
newProps,
|
|
4357
|
-
renderLanes
|
|
4358
|
-
),
|
|
4359
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4360
|
-
else {
|
|
4361
|
-
if (!newProps) {
|
|
4362
|
-
if (null === workInProgress.stateNode)
|
|
4363
|
-
throw Error(
|
|
4364
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4365
|
-
);
|
|
4366
|
-
bubbleProperties(workInProgress);
|
|
4367
|
-
return null;
|
|
4368
|
-
}
|
|
4369
|
-
requiredContext(contextStackCursor$1.current);
|
|
4370
|
-
current = allocateTag();
|
|
4371
|
-
type = getViewConfigForType(type);
|
|
4372
|
-
var updatePayload = diffProperties(
|
|
4373
|
-
null,
|
|
4374
|
-
emptyObject,
|
|
4375
|
-
newProps,
|
|
4376
|
-
type.validAttributes
|
|
4377
|
-
);
|
|
4378
|
-
ReactNativePrivateInterface.UIManager.createView(
|
|
4379
|
-
current,
|
|
4380
|
-
type.uiViewClassName,
|
|
4381
|
-
renderLanes,
|
|
4382
|
-
updatePayload
|
|
4383
|
-
);
|
|
4384
|
-
renderLanes = new ReactNativeFiberHostComponent(
|
|
4385
|
-
current,
|
|
4386
|
-
type,
|
|
4387
|
-
workInProgress
|
|
4388
|
-
);
|
|
4389
|
-
instanceCache.set(current, workInProgress);
|
|
4390
|
-
instanceProps.set(current, newProps);
|
|
4391
|
-
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
4392
|
-
workInProgress.stateNode = renderLanes;
|
|
4393
|
-
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
4394
|
-
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4395
|
-
}
|
|
4396
|
-
bubbleProperties(workInProgress);
|
|
4397
|
-
return null;
|
|
4398
|
-
case 6:
|
|
4399
|
-
if (current && null != workInProgress.stateNode)
|
|
4400
|
-
updateHostText(
|
|
4401
|
-
current,
|
|
4402
|
-
workInProgress,
|
|
4403
|
-
current.memoizedProps,
|
|
4404
|
-
newProps
|
|
4405
|
-
);
|
|
4406
|
-
else {
|
|
4407
|
-
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
4408
|
-
throw Error(
|
|
4409
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4410
|
-
);
|
|
4411
|
-
current = requiredContext(rootInstanceStackCursor.current);
|
|
4412
|
-
if (!requiredContext(contextStackCursor$1.current).isInAParentText)
|
|
4413
|
-
throw Error(
|
|
4414
|
-
"Text strings must be rendered within a <Text> component."
|
|
4415
|
-
);
|
|
4416
|
-
renderLanes = allocateTag();
|
|
4417
|
-
ReactNativePrivateInterface.UIManager.createView(
|
|
4418
|
-
renderLanes,
|
|
4419
|
-
"RCTRawText",
|
|
4420
|
-
current,
|
|
4421
|
-
{ text: newProps }
|
|
4422
|
-
);
|
|
4423
|
-
instanceCache.set(renderLanes, workInProgress);
|
|
4424
|
-
workInProgress.stateNode = renderLanes;
|
|
4425
|
-
}
|
|
4426
|
-
bubbleProperties(workInProgress);
|
|
4427
|
-
return null;
|
|
4428
|
-
case 13:
|
|
4429
|
-
pop(suspenseStackCursor);
|
|
4430
|
-
newProps = workInProgress.memoizedState;
|
|
4431
|
-
if (0 !== (workInProgress.flags & 128))
|
|
4432
|
-
return (workInProgress.lanes = renderLanes), workInProgress;
|
|
4433
|
-
renderLanes = !1;
|
|
4434
|
-
null !== current && (renderLanes = null !== current.memoizedState);
|
|
4435
|
-
null === newProps ||
|
|
4436
|
-
renderLanes ||
|
|
4437
|
-
((workInProgress.child.flags |= 8192),
|
|
4438
|
-
0 !== (workInProgress.mode & 1) &&
|
|
4439
|
-
(null === current || 0 !== (suspenseStackCursor.current & 1)
|
|
4440
|
-
? 0 === workInProgressRootExitStatus &&
|
|
4441
|
-
(workInProgressRootExitStatus = 3)
|
|
4442
|
-
: renderDidSuspendDelayIfPossible()));
|
|
4443
|
-
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
|
|
4444
|
-
bubbleProperties(workInProgress);
|
|
4445
|
-
return null;
|
|
4446
|
-
case 4:
|
|
4447
|
-
return (
|
|
4448
|
-
popHostContainer(),
|
|
4449
|
-
updateHostContainer(current, workInProgress),
|
|
4450
|
-
bubbleProperties(workInProgress),
|
|
4451
|
-
null
|
|
4452
|
-
);
|
|
4453
|
-
case 10:
|
|
4454
|
-
return (
|
|
4455
|
-
popProvider(workInProgress.type._context),
|
|
4456
|
-
bubbleProperties(workInProgress),
|
|
4457
|
-
null
|
|
4458
|
-
);
|
|
4459
|
-
case 17:
|
|
4460
|
-
return (
|
|
4461
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
4462
|
-
bubbleProperties(workInProgress),
|
|
4463
|
-
null
|
|
4464
|
-
);
|
|
4465
|
-
case 19:
|
|
4466
|
-
pop(suspenseStackCursor);
|
|
4467
|
-
type = workInProgress.memoizedState;
|
|
4468
|
-
if (null === type) return bubbleProperties(workInProgress), null;
|
|
4469
|
-
newProps = 0 !== (workInProgress.flags & 128);
|
|
4470
|
-
updatePayload = type.rendering;
|
|
4471
|
-
if (null === updatePayload)
|
|
4472
|
-
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
4473
|
-
else {
|
|
4474
|
-
if (
|
|
4475
|
-
0 !== workInProgressRootExitStatus ||
|
|
4476
|
-
(null !== current && 0 !== (current.flags & 128))
|
|
4477
|
-
)
|
|
4478
|
-
for (current = workInProgress.child; null !== current; ) {
|
|
4479
|
-
updatePayload = findFirstSuspended(current);
|
|
4480
|
-
if (null !== updatePayload) {
|
|
4481
|
-
workInProgress.flags |= 128;
|
|
4482
|
-
cutOffTailIfNeeded(type, !1);
|
|
4483
|
-
current = updatePayload.updateQueue;
|
|
4484
|
-
null !== current &&
|
|
4485
|
-
((workInProgress.updateQueue = current),
|
|
4486
|
-
(workInProgress.flags |= 4));
|
|
4487
|
-
workInProgress.subtreeFlags = 0;
|
|
4488
|
-
current = renderLanes;
|
|
4489
|
-
for (newProps = workInProgress.child; null !== newProps; )
|
|
4490
|
-
(renderLanes = newProps),
|
|
4491
|
-
(type = current),
|
|
4492
|
-
(renderLanes.flags &= 14680066),
|
|
4493
|
-
(updatePayload = renderLanes.alternate),
|
|
4494
|
-
null === updatePayload
|
|
4495
|
-
? ((renderLanes.childLanes = 0),
|
|
4496
|
-
(renderLanes.lanes = type),
|
|
4497
|
-
(renderLanes.child = null),
|
|
4498
|
-
(renderLanes.subtreeFlags = 0),
|
|
4499
|
-
(renderLanes.memoizedProps = null),
|
|
4500
|
-
(renderLanes.memoizedState = null),
|
|
4501
|
-
(renderLanes.updateQueue = null),
|
|
4502
|
-
(renderLanes.dependencies = null),
|
|
4503
|
-
(renderLanes.stateNode = null))
|
|
4504
|
-
: ((renderLanes.childLanes = updatePayload.childLanes),
|
|
4505
|
-
(renderLanes.lanes = updatePayload.lanes),
|
|
4506
|
-
(renderLanes.child = updatePayload.child),
|
|
4507
|
-
(renderLanes.subtreeFlags = 0),
|
|
4508
|
-
(renderLanes.deletions = null),
|
|
4509
|
-
(renderLanes.memoizedProps =
|
|
4510
|
-
updatePayload.memoizedProps),
|
|
4511
|
-
(renderLanes.memoizedState =
|
|
4512
|
-
updatePayload.memoizedState),
|
|
4513
|
-
(renderLanes.updateQueue = updatePayload.updateQueue),
|
|
4514
|
-
(renderLanes.type = updatePayload.type),
|
|
4515
|
-
(type = updatePayload.dependencies),
|
|
4516
|
-
(renderLanes.dependencies =
|
|
4517
|
-
null === type
|
|
4518
|
-
? null
|
|
4519
|
-
: {
|
|
4520
|
-
lanes: type.lanes,
|
|
4521
|
-
firstContext: type.firstContext
|
|
4522
|
-
})),
|
|
4523
|
-
(newProps = newProps.sibling);
|
|
4524
|
-
push(
|
|
4525
|
-
suspenseStackCursor,
|
|
4526
|
-
(suspenseStackCursor.current & 1) | 2
|
|
4527
|
-
);
|
|
4528
|
-
return workInProgress.child;
|
|
4529
|
-
}
|
|
4530
|
-
current = current.sibling;
|
|
4531
|
-
}
|
|
4532
|
-
null !== type.tail &&
|
|
4533
|
-
now() > workInProgressRootRenderTargetTime &&
|
|
4534
|
-
((workInProgress.flags |= 128),
|
|
4535
|
-
(newProps = !0),
|
|
4536
|
-
cutOffTailIfNeeded(type, !1),
|
|
4537
|
-
(workInProgress.lanes = 4194304));
|
|
4538
|
-
}
|
|
4539
|
-
else {
|
|
4540
|
-
if (!newProps)
|
|
4541
|
-
if (
|
|
4542
|
-
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
4543
|
-
) {
|
|
4544
|
-
if (
|
|
4545
|
-
((workInProgress.flags |= 128),
|
|
4546
|
-
(newProps = !0),
|
|
4547
|
-
(current = current.updateQueue),
|
|
4548
|
-
null !== current &&
|
|
4549
|
-
((workInProgress.updateQueue = current),
|
|
4550
|
-
(workInProgress.flags |= 4)),
|
|
4551
|
-
cutOffTailIfNeeded(type, !0),
|
|
4552
|
-
null === type.tail &&
|
|
4553
|
-
"hidden" === type.tailMode &&
|
|
4554
|
-
!updatePayload.alternate)
|
|
4555
|
-
)
|
|
4556
|
-
return bubbleProperties(workInProgress), null;
|
|
4557
|
-
} else
|
|
4558
|
-
2 * now() - type.renderingStartTime >
|
|
4559
|
-
workInProgressRootRenderTargetTime &&
|
|
4560
|
-
1073741824 !== renderLanes &&
|
|
4561
|
-
((workInProgress.flags |= 128),
|
|
4562
|
-
(newProps = !0),
|
|
4563
|
-
cutOffTailIfNeeded(type, !1),
|
|
4564
|
-
(workInProgress.lanes = 4194304));
|
|
4565
|
-
type.isBackwards
|
|
4566
|
-
? ((updatePayload.sibling = workInProgress.child),
|
|
4567
|
-
(workInProgress.child = updatePayload))
|
|
4568
|
-
: ((current = type.last),
|
|
4569
|
-
null !== current
|
|
4570
|
-
? (current.sibling = updatePayload)
|
|
4571
|
-
: (workInProgress.child = updatePayload),
|
|
4572
|
-
(type.last = updatePayload));
|
|
4573
|
-
}
|
|
4574
|
-
if (null !== type.tail)
|
|
4575
|
-
return (
|
|
4576
|
-
(workInProgress = type.tail),
|
|
4577
|
-
(type.rendering = workInProgress),
|
|
4578
|
-
(type.tail = workInProgress.sibling),
|
|
4579
|
-
(type.renderingStartTime = now()),
|
|
4580
|
-
(workInProgress.sibling = null),
|
|
4581
|
-
(current = suspenseStackCursor.current),
|
|
4582
|
-
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
4583
|
-
workInProgress
|
|
4584
|
-
);
|
|
4585
|
-
bubbleProperties(workInProgress);
|
|
4586
|
-
return null;
|
|
4587
|
-
case 22:
|
|
4588
|
-
case 23:
|
|
4589
|
-
return (
|
|
4590
|
-
popRenderLanes(),
|
|
4591
|
-
(newProps = null !== workInProgress.memoizedState),
|
|
4592
|
-
null !== current &&
|
|
4593
|
-
(null !== current.memoizedState) !== newProps &&
|
|
4594
|
-
(workInProgress.flags |= 8192),
|
|
4595
|
-
newProps && 0 !== (workInProgress.mode & 1)
|
|
4596
|
-
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4597
|
-
(bubbleProperties(workInProgress),
|
|
4598
|
-
workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192))
|
|
4599
|
-
: bubbleProperties(workInProgress),
|
|
4600
|
-
null
|
|
4601
|
-
);
|
|
4602
|
-
case 24:
|
|
4603
|
-
return null;
|
|
4604
|
-
case 25:
|
|
4605
|
-
return null;
|
|
4606
|
-
}
|
|
4607
|
-
throw Error(
|
|
4608
|
-
"Unknown unit of work tag (" +
|
|
4609
|
-
workInProgress.tag +
|
|
4610
|
-
"). This error is likely caused by a bug in React. Please file an issue."
|
|
4611
|
-
);
|
|
4612
|
-
}
|
|
4613
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
|
4614
|
-
didReceiveUpdate = !1;
|
|
4615
|
-
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
|
4616
|
-
workInProgress.child =
|
|
4617
|
-
null === current
|
|
4618
|
-
? mountChildFibers(workInProgress, null, nextChildren, renderLanes)
|
|
4619
|
-
: reconcileChildFibers(
|
|
4620
|
-
workInProgress,
|
|
4621
|
-
current.child,
|
|
4622
|
-
nextChildren,
|
|
4623
|
-
renderLanes
|
|
4624
|
-
);
|
|
4625
|
-
}
|
|
4626
|
-
function updateForwardRef(
|
|
4627
|
-
current,
|
|
4628
|
-
workInProgress,
|
|
4629
|
-
Component,
|
|
4630
|
-
nextProps,
|
|
4631
|
-
renderLanes
|
|
4632
|
-
) {
|
|
4633
|
-
Component = Component.render;
|
|
4634
|
-
var ref = workInProgress.ref;
|
|
4635
|
-
prepareToReadContext(workInProgress, renderLanes);
|
|
4636
|
-
nextProps = renderWithHooks(
|
|
4637
|
-
current,
|
|
4638
|
-
workInProgress,
|
|
4639
|
-
Component,
|
|
4640
|
-
nextProps,
|
|
4641
|
-
ref,
|
|
4642
|
-
renderLanes
|
|
4643
|
-
);
|
|
4644
|
-
if (null !== current && !didReceiveUpdate)
|
|
4645
|
-
return (
|
|
4646
|
-
(workInProgress.updateQueue = current.updateQueue),
|
|
4647
|
-
(workInProgress.flags &= -2053),
|
|
4648
|
-
(current.lanes &= ~renderLanes),
|
|
4649
|
-
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4650
|
-
);
|
|
4651
|
-
workInProgress.flags |= 1;
|
|
4652
|
-
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
4653
|
-
return workInProgress.child;
|
|
4654
|
-
}
|
|
4655
|
-
function updateMemoComponent(
|
|
4656
|
-
current,
|
|
4657
|
-
workInProgress,
|
|
4658
|
-
Component,
|
|
4659
|
-
nextProps,
|
|
4660
|
-
renderLanes
|
|
4661
|
-
) {
|
|
4662
|
-
if (null === current) {
|
|
4663
|
-
var type = Component.type;
|
|
4664
|
-
if (
|
|
4665
|
-
"function" === typeof type &&
|
|
4666
|
-
!shouldConstruct(type) &&
|
|
4667
|
-
void 0 === type.defaultProps &&
|
|
4668
|
-
null === Component.compare &&
|
|
4669
|
-
void 0 === Component.defaultProps
|
|
4670
|
-
)
|
|
4671
|
-
return (
|
|
4672
|
-
(workInProgress.tag = 15),
|
|
4673
|
-
(workInProgress.type = type),
|
|
4674
|
-
updateSimpleMemoComponent(
|
|
4675
|
-
current,
|
|
4676
|
-
workInProgress,
|
|
4677
|
-
type,
|
|
4678
|
-
nextProps,
|
|
4679
|
-
renderLanes
|
|
4680
|
-
)
|
|
4352
|
+
(workInProgress.tag = 15),
|
|
4353
|
+
(workInProgress.type = type),
|
|
4354
|
+
updateSimpleMemoComponent(
|
|
4355
|
+
current,
|
|
4356
|
+
workInProgress,
|
|
4357
|
+
type,
|
|
4358
|
+
nextProps,
|
|
4359
|
+
renderLanes
|
|
4360
|
+
)
|
|
4681
4361
|
);
|
|
4682
4362
|
current = createFiberFromTypeAndProps(
|
|
4683
4363
|
Component.type,
|
|
@@ -4712,18 +4392,24 @@ function updateSimpleMemoComponent(
|
|
|
4712
4392
|
nextProps,
|
|
4713
4393
|
renderLanes
|
|
4714
4394
|
) {
|
|
4715
|
-
if (
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
(
|
|
4725
|
-
|
|
4726
|
-
|
|
4395
|
+
if (null !== current) {
|
|
4396
|
+
var prevProps = current.memoizedProps;
|
|
4397
|
+
if (
|
|
4398
|
+
shallowEqual(prevProps, nextProps) &&
|
|
4399
|
+
current.ref === workInProgress.ref
|
|
4400
|
+
)
|
|
4401
|
+
if (
|
|
4402
|
+
((didReceiveUpdate = !1),
|
|
4403
|
+
(workInProgress.pendingProps = nextProps = prevProps),
|
|
4404
|
+
0 !== (current.lanes & renderLanes))
|
|
4405
|
+
)
|
|
4406
|
+
0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
|
|
4407
|
+
else
|
|
4408
|
+
return (
|
|
4409
|
+
(workInProgress.lanes = current.lanes),
|
|
4410
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4411
|
+
);
|
|
4412
|
+
}
|
|
4727
4413
|
return updateFunctionComponent(
|
|
4728
4414
|
current,
|
|
4729
4415
|
workInProgress,
|
|
@@ -4738,7 +4424,11 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
|
4738
4424
|
prevState = null !== current ? current.memoizedState : null;
|
|
4739
4425
|
if ("hidden" === nextProps.mode)
|
|
4740
4426
|
if (0 === (workInProgress.mode & 1))
|
|
4741
|
-
(workInProgress.memoizedState = {
|
|
4427
|
+
(workInProgress.memoizedState = {
|
|
4428
|
+
baseLanes: 0,
|
|
4429
|
+
cachePool: null,
|
|
4430
|
+
transitions: null
|
|
4431
|
+
}),
|
|
4742
4432
|
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
4743
4433
|
(subtreeRenderLanes |= renderLanes);
|
|
4744
4434
|
else {
|
|
@@ -4751,14 +4441,19 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
|
4751
4441
|
(workInProgress.lanes = workInProgress.childLanes = 1073741824),
|
|
4752
4442
|
(workInProgress.memoizedState = {
|
|
4753
4443
|
baseLanes: current,
|
|
4754
|
-
cachePool: null
|
|
4444
|
+
cachePool: null,
|
|
4445
|
+
transitions: null
|
|
4755
4446
|
}),
|
|
4756
4447
|
(workInProgress.updateQueue = null),
|
|
4757
4448
|
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
4758
4449
|
(subtreeRenderLanes |= current),
|
|
4759
4450
|
null
|
|
4760
4451
|
);
|
|
4761
|
-
workInProgress.memoizedState = {
|
|
4452
|
+
workInProgress.memoizedState = {
|
|
4453
|
+
baseLanes: 0,
|
|
4454
|
+
cachePool: null,
|
|
4455
|
+
transitions: null
|
|
4456
|
+
};
|
|
4762
4457
|
nextProps = null !== prevState ? prevState.baseLanes : renderLanes;
|
|
4763
4458
|
push(subtreeRenderLanesCursor, subtreeRenderLanes);
|
|
4764
4459
|
subtreeRenderLanes |= nextProps;
|
|
@@ -4773,7 +4468,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
|
4773
4468
|
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
4774
4469
|
return workInProgress.child;
|
|
4775
4470
|
}
|
|
4776
|
-
function markRef
|
|
4471
|
+
function markRef(current, workInProgress) {
|
|
4777
4472
|
var ref = workInProgress.ref;
|
|
4778
4473
|
if (
|
|
4779
4474
|
(null === current && null !== ref) ||
|
|
@@ -4825,10 +4520,7 @@ function updateClassComponent(
|
|
|
4825
4520
|
} else hasContext = !1;
|
|
4826
4521
|
prepareToReadContext(workInProgress, renderLanes);
|
|
4827
4522
|
if (null === workInProgress.stateNode)
|
|
4828
|
-
|
|
4829
|
-
((current.alternate = null),
|
|
4830
|
-
(workInProgress.alternate = null),
|
|
4831
|
-
(workInProgress.flags |= 2)),
|
|
4523
|
+
resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress),
|
|
4832
4524
|
constructClassInstance(workInProgress, Component, nextProps),
|
|
4833
4525
|
mountClassInstance(workInProgress, Component, nextProps, renderLanes),
|
|
4834
4526
|
(nextProps = !0);
|
|
@@ -5022,7 +4714,7 @@ function finishClassComponent(
|
|
|
5022
4714
|
hasContext,
|
|
5023
4715
|
renderLanes
|
|
5024
4716
|
) {
|
|
5025
|
-
markRef
|
|
4717
|
+
markRef(current, workInProgress);
|
|
5026
4718
|
var didCaptureError = 0 !== (workInProgress.flags & 128);
|
|
5027
4719
|
if (!shouldUpdate && !didCaptureError)
|
|
5028
4720
|
return (
|
|
@@ -5068,14 +4760,15 @@ function pushHostRootContext(workInProgress) {
|
|
|
5068
4760
|
}
|
|
5069
4761
|
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
|
|
5070
4762
|
function mountSuspenseOffscreenState(renderLanes) {
|
|
5071
|
-
return { baseLanes: renderLanes, cachePool: null };
|
|
4763
|
+
return { baseLanes: renderLanes, cachePool: null, transitions: null };
|
|
5072
4764
|
}
|
|
5073
4765
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
5074
4766
|
var nextProps = workInProgress.pendingProps,
|
|
5075
4767
|
suspenseContext = suspenseStackCursor.current,
|
|
5076
4768
|
showFallback = !1,
|
|
4769
|
+
didSuspend = 0 !== (workInProgress.flags & 128),
|
|
5077
4770
|
JSCompiler_temp;
|
|
5078
|
-
(JSCompiler_temp =
|
|
4771
|
+
(JSCompiler_temp = didSuspend) ||
|
|
5079
4772
|
(JSCompiler_temp =
|
|
5080
4773
|
null !== current && null === current.memoizedState
|
|
5081
4774
|
? !1
|
|
@@ -5085,167 +4778,307 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
5085
4778
|
suspenseContext |= 1;
|
|
5086
4779
|
push(suspenseStackCursor, suspenseContext & 1);
|
|
5087
4780
|
if (null === current) {
|
|
5088
|
-
|
|
5089
|
-
current
|
|
5090
|
-
if (showFallback)
|
|
4781
|
+
current = workInProgress.memoizedState;
|
|
4782
|
+
if (null !== current && null !== current.dehydrated)
|
|
5091
4783
|
return (
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
4784
|
+
0 === (workInProgress.mode & 1)
|
|
4785
|
+
? (workInProgress.lanes = 1)
|
|
4786
|
+
: shim()
|
|
4787
|
+
? (workInProgress.lanes = 8)
|
|
4788
|
+
: (workInProgress.lanes = 1073741824),
|
|
4789
|
+
null
|
|
4790
|
+
);
|
|
4791
|
+
didSuspend = nextProps.children;
|
|
4792
|
+
current = nextProps.fallback;
|
|
4793
|
+
return showFallback
|
|
4794
|
+
? ((nextProps = workInProgress.mode),
|
|
4795
|
+
(showFallback = workInProgress.child),
|
|
4796
|
+
(didSuspend = { mode: "hidden", children: didSuspend }),
|
|
4797
|
+
0 === (nextProps & 1) && null !== showFallback
|
|
4798
|
+
? ((showFallback.childLanes = 0),
|
|
4799
|
+
(showFallback.pendingProps = didSuspend))
|
|
4800
|
+
: (showFallback = createFiberFromOffscreen(
|
|
4801
|
+
didSuspend,
|
|
4802
|
+
nextProps,
|
|
5101
4803
|
0,
|
|
5102
4804
|
null
|
|
5103
4805
|
)),
|
|
5104
4806
|
(current = createFiberFromFragment(
|
|
5105
4807
|
current,
|
|
5106
|
-
|
|
4808
|
+
nextProps,
|
|
5107
4809
|
renderLanes,
|
|
5108
4810
|
null
|
|
5109
4811
|
)),
|
|
5110
|
-
(
|
|
4812
|
+
(showFallback.return = workInProgress),
|
|
5111
4813
|
(current.return = workInProgress),
|
|
5112
|
-
(
|
|
5113
|
-
(workInProgress.child =
|
|
4814
|
+
(showFallback.sibling = current),
|
|
4815
|
+
(workInProgress.child = showFallback),
|
|
5114
4816
|
(workInProgress.child.memoizedState = mountSuspenseOffscreenState(
|
|
5115
4817
|
renderLanes
|
|
5116
4818
|
)),
|
|
5117
4819
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5118
|
-
current
|
|
5119
|
-
);
|
|
5120
|
-
renderLanes = createFiberFromOffscreen(
|
|
5121
|
-
{ mode: "visible", children: suspenseContext },
|
|
5122
|
-
workInProgress.mode,
|
|
5123
|
-
0,
|
|
5124
|
-
null
|
|
5125
|
-
);
|
|
5126
|
-
renderLanes.return = workInProgress;
|
|
5127
|
-
return (workInProgress.child = renderLanes);
|
|
4820
|
+
current)
|
|
4821
|
+
: mountSuspensePrimaryChildren(workInProgress, didSuspend);
|
|
5128
4822
|
}
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
nextProps.children,
|
|
5136
|
-
nextProps.fallback,
|
|
5137
|
-
renderLanes
|
|
5138
|
-
)),
|
|
5139
|
-
(nextProps = workInProgress.child),
|
|
5140
|
-
(suspenseContext = current.child.memoizedState),
|
|
5141
|
-
(nextProps.memoizedState =
|
|
5142
|
-
null === suspenseContext
|
|
5143
|
-
? mountSuspenseOffscreenState(renderLanes)
|
|
5144
|
-
: {
|
|
5145
|
-
baseLanes: suspenseContext.baseLanes | renderLanes,
|
|
5146
|
-
cachePool: null
|
|
5147
|
-
}),
|
|
5148
|
-
(nextProps.childLanes = current.childLanes & ~renderLanes),
|
|
5149
|
-
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5150
|
-
showFallback
|
|
5151
|
-
);
|
|
5152
|
-
renderLanes = updateSuspensePrimaryChildren(
|
|
4823
|
+
suspenseContext = current.memoizedState;
|
|
4824
|
+
if (
|
|
4825
|
+
null !== suspenseContext &&
|
|
4826
|
+
((JSCompiler_temp = suspenseContext.dehydrated), null !== JSCompiler_temp)
|
|
4827
|
+
)
|
|
4828
|
+
return updateDehydratedSuspenseComponent(
|
|
5153
4829
|
current,
|
|
5154
4830
|
workInProgress,
|
|
5155
|
-
|
|
4831
|
+
didSuspend,
|
|
4832
|
+
nextProps,
|
|
4833
|
+
JSCompiler_temp,
|
|
4834
|
+
suspenseContext,
|
|
5156
4835
|
renderLanes
|
|
5157
4836
|
);
|
|
5158
|
-
|
|
5159
|
-
|
|
4837
|
+
if (showFallback) {
|
|
4838
|
+
showFallback = nextProps.fallback;
|
|
4839
|
+
didSuspend = workInProgress.mode;
|
|
4840
|
+
suspenseContext = current.child;
|
|
4841
|
+
JSCompiler_temp = suspenseContext.sibling;
|
|
4842
|
+
var primaryChildProps = { mode: "hidden", children: nextProps.children };
|
|
4843
|
+
0 === (didSuspend & 1) && workInProgress.child !== suspenseContext
|
|
4844
|
+
? ((nextProps = workInProgress.child),
|
|
4845
|
+
(nextProps.childLanes = 0),
|
|
4846
|
+
(nextProps.pendingProps = primaryChildProps),
|
|
4847
|
+
(workInProgress.deletions = null))
|
|
4848
|
+
: ((nextProps = createWorkInProgress(suspenseContext, primaryChildProps)),
|
|
4849
|
+
(nextProps.subtreeFlags = suspenseContext.subtreeFlags & 14680064));
|
|
4850
|
+
null !== JSCompiler_temp
|
|
4851
|
+
? (showFallback = createWorkInProgress(JSCompiler_temp, showFallback))
|
|
4852
|
+
: ((showFallback = createFiberFromFragment(
|
|
4853
|
+
showFallback,
|
|
4854
|
+
didSuspend,
|
|
4855
|
+
renderLanes,
|
|
4856
|
+
null
|
|
4857
|
+
)),
|
|
4858
|
+
(showFallback.flags |= 2));
|
|
4859
|
+
showFallback.return = workInProgress;
|
|
4860
|
+
nextProps.return = workInProgress;
|
|
4861
|
+
nextProps.sibling = showFallback;
|
|
4862
|
+
workInProgress.child = nextProps;
|
|
4863
|
+
nextProps = showFallback;
|
|
4864
|
+
showFallback = workInProgress.child;
|
|
4865
|
+
didSuspend = current.child.memoizedState;
|
|
4866
|
+
didSuspend =
|
|
4867
|
+
null === didSuspend
|
|
4868
|
+
? mountSuspenseOffscreenState(renderLanes)
|
|
4869
|
+
: {
|
|
4870
|
+
baseLanes: didSuspend.baseLanes | renderLanes,
|
|
4871
|
+
cachePool: null,
|
|
4872
|
+
transitions: didSuspend.transitions
|
|
4873
|
+
};
|
|
4874
|
+
showFallback.memoizedState = didSuspend;
|
|
4875
|
+
showFallback.childLanes = current.childLanes & ~renderLanes;
|
|
4876
|
+
workInProgress.memoizedState = SUSPENDED_MARKER;
|
|
4877
|
+
return nextProps;
|
|
5160
4878
|
}
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
current,
|
|
5165
|
-
workInProgress,
|
|
5166
|
-
nextProps.children,
|
|
5167
|
-
nextProps.fallback,
|
|
5168
|
-
renderLanes
|
|
5169
|
-
)),
|
|
5170
|
-
(nextProps = workInProgress.child),
|
|
5171
|
-
(suspenseContext = current.child.memoizedState),
|
|
5172
|
-
(nextProps.memoizedState =
|
|
5173
|
-
null === suspenseContext
|
|
5174
|
-
? mountSuspenseOffscreenState(renderLanes)
|
|
5175
|
-
: {
|
|
5176
|
-
baseLanes: suspenseContext.baseLanes | renderLanes,
|
|
5177
|
-
cachePool: null
|
|
5178
|
-
}),
|
|
5179
|
-
(nextProps.childLanes = current.childLanes & ~renderLanes),
|
|
5180
|
-
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5181
|
-
showFallback
|
|
5182
|
-
);
|
|
5183
|
-
renderLanes = updateSuspensePrimaryChildren(
|
|
5184
|
-
current,
|
|
5185
|
-
workInProgress,
|
|
5186
|
-
nextProps.children,
|
|
5187
|
-
renderLanes
|
|
5188
|
-
);
|
|
5189
|
-
workInProgress.memoizedState = null;
|
|
5190
|
-
return renderLanes;
|
|
5191
|
-
}
|
|
5192
|
-
function updateSuspensePrimaryChildren(
|
|
5193
|
-
current,
|
|
5194
|
-
workInProgress,
|
|
5195
|
-
primaryChildren,
|
|
5196
|
-
renderLanes
|
|
5197
|
-
) {
|
|
5198
|
-
var currentPrimaryChildFragment = current.child;
|
|
5199
|
-
current = currentPrimaryChildFragment.sibling;
|
|
5200
|
-
primaryChildren = createWorkInProgress(currentPrimaryChildFragment, {
|
|
4879
|
+
showFallback = current.child;
|
|
4880
|
+
current = showFallback.sibling;
|
|
4881
|
+
nextProps = createWorkInProgress(showFallback, {
|
|
5201
4882
|
mode: "visible",
|
|
5202
|
-
children:
|
|
4883
|
+
children: nextProps.children
|
|
5203
4884
|
});
|
|
5204
|
-
0 === (workInProgress.mode & 1) && (
|
|
5205
|
-
|
|
5206
|
-
|
|
4885
|
+
0 === (workInProgress.mode & 1) && (nextProps.lanes = renderLanes);
|
|
4886
|
+
nextProps.return = workInProgress;
|
|
4887
|
+
nextProps.sibling = null;
|
|
5207
4888
|
null !== current &&
|
|
5208
4889
|
((renderLanes = workInProgress.deletions),
|
|
5209
4890
|
null === renderLanes
|
|
5210
4891
|
? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16))
|
|
5211
4892
|
: renderLanes.push(current));
|
|
4893
|
+
workInProgress.child = nextProps;
|
|
4894
|
+
workInProgress.memoizedState = null;
|
|
4895
|
+
return nextProps;
|
|
4896
|
+
}
|
|
4897
|
+
function mountSuspensePrimaryChildren(workInProgress, primaryChildren) {
|
|
4898
|
+
primaryChildren = createFiberFromOffscreen(
|
|
4899
|
+
{ mode: "visible", children: primaryChildren },
|
|
4900
|
+
workInProgress.mode,
|
|
4901
|
+
0,
|
|
4902
|
+
null
|
|
4903
|
+
);
|
|
4904
|
+
primaryChildren.return = workInProgress;
|
|
5212
4905
|
return (workInProgress.child = primaryChildren);
|
|
5213
4906
|
}
|
|
5214
|
-
function
|
|
4907
|
+
function retrySuspenseComponentWithoutHydrating(
|
|
4908
|
+
current,
|
|
4909
|
+
workInProgress,
|
|
4910
|
+
renderLanes,
|
|
4911
|
+
recoverableError
|
|
4912
|
+
) {
|
|
4913
|
+
null !== recoverableError &&
|
|
4914
|
+
(null === hydrationErrors
|
|
4915
|
+
? (hydrationErrors = [recoverableError])
|
|
4916
|
+
: hydrationErrors.push(recoverableError));
|
|
4917
|
+
reconcileChildFibers(workInProgress, current.child, null, renderLanes);
|
|
4918
|
+
current = mountSuspensePrimaryChildren(
|
|
4919
|
+
workInProgress,
|
|
4920
|
+
workInProgress.pendingProps.children
|
|
4921
|
+
);
|
|
4922
|
+
current.flags |= 2;
|
|
4923
|
+
workInProgress.memoizedState = null;
|
|
4924
|
+
return current;
|
|
4925
|
+
}
|
|
4926
|
+
function updateDehydratedSuspenseComponent(
|
|
5215
4927
|
current,
|
|
5216
4928
|
workInProgress,
|
|
5217
|
-
|
|
5218
|
-
|
|
4929
|
+
didSuspend,
|
|
4930
|
+
nextProps,
|
|
4931
|
+
suspenseInstance,
|
|
4932
|
+
suspenseState,
|
|
5219
4933
|
renderLanes
|
|
5220
4934
|
) {
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
)
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
4935
|
+
if (didSuspend) {
|
|
4936
|
+
if (workInProgress.flags & 256)
|
|
4937
|
+
return (
|
|
4938
|
+
(workInProgress.flags &= -257),
|
|
4939
|
+
(suspenseState = createCapturedValue(
|
|
4940
|
+
Error(
|
|
4941
|
+
"There was an error while hydrating this Suspense boundary. Switched to client rendering."
|
|
4942
|
+
)
|
|
4943
|
+
)),
|
|
4944
|
+
retrySuspenseComponentWithoutHydrating(
|
|
4945
|
+
current,
|
|
4946
|
+
workInProgress,
|
|
4947
|
+
renderLanes,
|
|
4948
|
+
suspenseState
|
|
4949
|
+
)
|
|
4950
|
+
);
|
|
4951
|
+
if (null !== workInProgress.memoizedState)
|
|
4952
|
+
return (
|
|
4953
|
+
(workInProgress.child = current.child),
|
|
4954
|
+
(workInProgress.flags |= 128),
|
|
5241
4955
|
null
|
|
4956
|
+
);
|
|
4957
|
+
suspenseState = nextProps.fallback;
|
|
4958
|
+
didSuspend = workInProgress.mode;
|
|
4959
|
+
nextProps = createFiberFromOffscreen(
|
|
4960
|
+
{ mode: "visible", children: nextProps.children },
|
|
4961
|
+
didSuspend,
|
|
4962
|
+
0,
|
|
4963
|
+
null
|
|
4964
|
+
);
|
|
4965
|
+
suspenseState = createFiberFromFragment(
|
|
4966
|
+
suspenseState,
|
|
4967
|
+
didSuspend,
|
|
4968
|
+
renderLanes,
|
|
4969
|
+
null
|
|
4970
|
+
);
|
|
4971
|
+
suspenseState.flags |= 2;
|
|
4972
|
+
nextProps.return = workInProgress;
|
|
4973
|
+
suspenseState.return = workInProgress;
|
|
4974
|
+
nextProps.sibling = suspenseState;
|
|
4975
|
+
workInProgress.child = nextProps;
|
|
4976
|
+
0 !== (workInProgress.mode & 1) &&
|
|
4977
|
+
reconcileChildFibers(workInProgress, current.child, null, renderLanes);
|
|
4978
|
+
workInProgress.child.memoizedState = mountSuspenseOffscreenState(
|
|
4979
|
+
renderLanes
|
|
4980
|
+
);
|
|
4981
|
+
workInProgress.memoizedState = SUSPENDED_MARKER;
|
|
4982
|
+
return suspenseState;
|
|
4983
|
+
}
|
|
4984
|
+
if (0 === (workInProgress.mode & 1))
|
|
4985
|
+
return retrySuspenseComponentWithoutHydrating(
|
|
4986
|
+
current,
|
|
4987
|
+
workInProgress,
|
|
4988
|
+
renderLanes,
|
|
4989
|
+
null
|
|
4990
|
+
);
|
|
4991
|
+
if (shim())
|
|
4992
|
+
return (
|
|
4993
|
+
(suspenseState = shim().digest),
|
|
4994
|
+
(suspenseState = createCapturedValue(
|
|
4995
|
+
Error(
|
|
4996
|
+
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
|
4997
|
+
),
|
|
4998
|
+
suspenseState,
|
|
4999
|
+
void 0
|
|
5242
5000
|
)),
|
|
5243
|
-
(
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5001
|
+
retrySuspenseComponentWithoutHydrating(
|
|
5002
|
+
current,
|
|
5003
|
+
workInProgress,
|
|
5004
|
+
renderLanes,
|
|
5005
|
+
suspenseState
|
|
5006
|
+
)
|
|
5007
|
+
);
|
|
5008
|
+
didSuspend = 0 !== (renderLanes & current.childLanes);
|
|
5009
|
+
if (didReceiveUpdate || didSuspend) {
|
|
5010
|
+
nextProps = workInProgressRoot;
|
|
5011
|
+
if (null !== nextProps) {
|
|
5012
|
+
switch (renderLanes & -renderLanes) {
|
|
5013
|
+
case 4:
|
|
5014
|
+
didSuspend = 2;
|
|
5015
|
+
break;
|
|
5016
|
+
case 16:
|
|
5017
|
+
didSuspend = 8;
|
|
5018
|
+
break;
|
|
5019
|
+
case 64:
|
|
5020
|
+
case 128:
|
|
5021
|
+
case 256:
|
|
5022
|
+
case 512:
|
|
5023
|
+
case 1024:
|
|
5024
|
+
case 2048:
|
|
5025
|
+
case 4096:
|
|
5026
|
+
case 8192:
|
|
5027
|
+
case 16384:
|
|
5028
|
+
case 32768:
|
|
5029
|
+
case 65536:
|
|
5030
|
+
case 131072:
|
|
5031
|
+
case 262144:
|
|
5032
|
+
case 524288:
|
|
5033
|
+
case 1048576:
|
|
5034
|
+
case 2097152:
|
|
5035
|
+
case 4194304:
|
|
5036
|
+
case 8388608:
|
|
5037
|
+
case 16777216:
|
|
5038
|
+
case 33554432:
|
|
5039
|
+
case 67108864:
|
|
5040
|
+
didSuspend = 32;
|
|
5041
|
+
break;
|
|
5042
|
+
case 536870912:
|
|
5043
|
+
didSuspend = 268435456;
|
|
5044
|
+
break;
|
|
5045
|
+
default:
|
|
5046
|
+
didSuspend = 0;
|
|
5047
|
+
}
|
|
5048
|
+
didSuspend =
|
|
5049
|
+
0 !== (didSuspend & (nextProps.suspendedLanes | renderLanes))
|
|
5050
|
+
? 0
|
|
5051
|
+
: didSuspend;
|
|
5052
|
+
0 !== didSuspend &&
|
|
5053
|
+
didSuspend !== suspenseState.retryLane &&
|
|
5054
|
+
((suspenseState.retryLane = didSuspend),
|
|
5055
|
+
markUpdateLaneFromFiberToRoot(current, didSuspend),
|
|
5056
|
+
scheduleUpdateOnFiber(nextProps, current, didSuspend, -1));
|
|
5057
|
+
}
|
|
5058
|
+
renderDidSuspendDelayIfPossible();
|
|
5059
|
+
suspenseState = createCapturedValue(
|
|
5060
|
+
Error(
|
|
5061
|
+
"This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."
|
|
5062
|
+
)
|
|
5063
|
+
);
|
|
5064
|
+
return retrySuspenseComponentWithoutHydrating(
|
|
5065
|
+
current,
|
|
5066
|
+
workInProgress,
|
|
5067
|
+
renderLanes,
|
|
5068
|
+
suspenseState
|
|
5069
|
+
);
|
|
5070
|
+
}
|
|
5071
|
+
if (shim())
|
|
5072
|
+
return (
|
|
5073
|
+
(workInProgress.flags |= 128),
|
|
5074
|
+
(workInProgress.child = current.child),
|
|
5075
|
+
retryDehydratedSuspenseBoundary.bind(null, current),
|
|
5076
|
+
shim(),
|
|
5077
|
+
null
|
|
5078
|
+
);
|
|
5079
|
+
current = mountSuspensePrimaryChildren(workInProgress, nextProps.children);
|
|
5080
|
+
current.flags |= 4096;
|
|
5081
|
+
return current;
|
|
5249
5082
|
}
|
|
5250
5083
|
function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {
|
|
5251
5084
|
fiber.lanes |= renderLanes;
|
|
@@ -5364,6 +5197,13 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
|
5364
5197
|
}
|
|
5365
5198
|
return workInProgress.child;
|
|
5366
5199
|
}
|
|
5200
|
+
function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) {
|
|
5201
|
+
0 === (workInProgress.mode & 1) &&
|
|
5202
|
+
null !== current &&
|
|
5203
|
+
((current.alternate = null),
|
|
5204
|
+
(workInProgress.alternate = null),
|
|
5205
|
+
(workInProgress.flags |= 2));
|
|
5206
|
+
}
|
|
5367
5207
|
function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
|
|
5368
5208
|
null !== current && (workInProgress.dependencies = current.dependencies);
|
|
5369
5209
|
workInProgressRootSkippedLanes |= workInProgress.lanes;
|
|
@@ -5411,7 +5251,14 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
5411
5251
|
context._currentValue = nextValue;
|
|
5412
5252
|
break;
|
|
5413
5253
|
case 13:
|
|
5414
|
-
|
|
5254
|
+
context = workInProgress.memoizedState;
|
|
5255
|
+
if (null !== context) {
|
|
5256
|
+
if (null !== context.dehydrated)
|
|
5257
|
+
return (
|
|
5258
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1),
|
|
5259
|
+
(workInProgress.flags |= 128),
|
|
5260
|
+
null
|
|
5261
|
+
);
|
|
5415
5262
|
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
5416
5263
|
return updateSuspenseComponent(current, workInProgress, renderLanes);
|
|
5417
5264
|
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
@@ -5425,32 +5272,442 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
5425
5272
|
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5426
5273
|
break;
|
|
5427
5274
|
case 19:
|
|
5428
|
-
context = 0 !== (renderLanes & workInProgress.childLanes);
|
|
5429
|
-
if (0 !== (current.flags & 128)) {
|
|
5430
|
-
if (context)
|
|
5431
|
-
return updateSuspenseListComponent(
|
|
5432
|
-
current,
|
|
5433
|
-
workInProgress,
|
|
5434
|
-
renderLanes
|
|
5435
|
-
);
|
|
5436
|
-
workInProgress.flags |= 128;
|
|
5275
|
+
context = 0 !== (renderLanes & workInProgress.childLanes);
|
|
5276
|
+
if (0 !== (current.flags & 128)) {
|
|
5277
|
+
if (context)
|
|
5278
|
+
return updateSuspenseListComponent(
|
|
5279
|
+
current,
|
|
5280
|
+
workInProgress,
|
|
5281
|
+
renderLanes
|
|
5282
|
+
);
|
|
5283
|
+
workInProgress.flags |= 128;
|
|
5284
|
+
}
|
|
5285
|
+
nextValue = workInProgress.memoizedState;
|
|
5286
|
+
null !== nextValue &&
|
|
5287
|
+
((nextValue.rendering = null),
|
|
5288
|
+
(nextValue.tail = null),
|
|
5289
|
+
(nextValue.lastEffect = null));
|
|
5290
|
+
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
5291
|
+
if (context) break;
|
|
5292
|
+
else return null;
|
|
5293
|
+
case 22:
|
|
5294
|
+
case 23:
|
|
5295
|
+
return (
|
|
5296
|
+
(workInProgress.lanes = 0),
|
|
5297
|
+
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
5298
|
+
);
|
|
5299
|
+
}
|
|
5300
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5301
|
+
}
|
|
5302
|
+
var appendAllChildren,
|
|
5303
|
+
updateHostContainer,
|
|
5304
|
+
updateHostComponent$1,
|
|
5305
|
+
updateHostText$1;
|
|
5306
|
+
appendAllChildren = function(parent, workInProgress) {
|
|
5307
|
+
for (var node = workInProgress.child; null !== node; ) {
|
|
5308
|
+
if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);
|
|
5309
|
+
else if (4 !== node.tag && null !== node.child) {
|
|
5310
|
+
node.child.return = node;
|
|
5311
|
+
node = node.child;
|
|
5312
|
+
continue;
|
|
5313
|
+
}
|
|
5314
|
+
if (node === workInProgress) break;
|
|
5315
|
+
for (; null === node.sibling; ) {
|
|
5316
|
+
if (null === node.return || node.return === workInProgress) return;
|
|
5317
|
+
node = node.return;
|
|
5318
|
+
}
|
|
5319
|
+
node.sibling.return = node.return;
|
|
5320
|
+
node = node.sibling;
|
|
5321
|
+
}
|
|
5322
|
+
};
|
|
5323
|
+
updateHostContainer = function() {};
|
|
5324
|
+
updateHostComponent$1 = function(current, workInProgress, type, newProps) {
|
|
5325
|
+
current.memoizedProps !== newProps &&
|
|
5326
|
+
(requiredContext(contextStackCursor$1.current),
|
|
5327
|
+
(workInProgress.updateQueue = UPDATE_SIGNAL)) &&
|
|
5328
|
+
(workInProgress.flags |= 4);
|
|
5329
|
+
};
|
|
5330
|
+
updateHostText$1 = function(current, workInProgress, oldText, newText) {
|
|
5331
|
+
oldText !== newText && (workInProgress.flags |= 4);
|
|
5332
|
+
};
|
|
5333
|
+
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
5334
|
+
switch (renderState.tailMode) {
|
|
5335
|
+
case "hidden":
|
|
5336
|
+
hasRenderedATailFallback = renderState.tail;
|
|
5337
|
+
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
5338
|
+
null !== hasRenderedATailFallback.alternate &&
|
|
5339
|
+
(lastTailNode = hasRenderedATailFallback),
|
|
5340
|
+
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
5341
|
+
null === lastTailNode
|
|
5342
|
+
? (renderState.tail = null)
|
|
5343
|
+
: (lastTailNode.sibling = null);
|
|
5344
|
+
break;
|
|
5345
|
+
case "collapsed":
|
|
5346
|
+
lastTailNode = renderState.tail;
|
|
5347
|
+
for (var lastTailNode$62 = null; null !== lastTailNode; )
|
|
5348
|
+
null !== lastTailNode.alternate && (lastTailNode$62 = lastTailNode),
|
|
5349
|
+
(lastTailNode = lastTailNode.sibling);
|
|
5350
|
+
null === lastTailNode$62
|
|
5351
|
+
? hasRenderedATailFallback || null === renderState.tail
|
|
5352
|
+
? (renderState.tail = null)
|
|
5353
|
+
: (renderState.tail.sibling = null)
|
|
5354
|
+
: (lastTailNode$62.sibling = null);
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5357
|
+
function bubbleProperties(completedWork) {
|
|
5358
|
+
var didBailout =
|
|
5359
|
+
null !== completedWork.alternate &&
|
|
5360
|
+
completedWork.alternate.child === completedWork.child,
|
|
5361
|
+
newChildLanes = 0,
|
|
5362
|
+
subtreeFlags = 0;
|
|
5363
|
+
if (didBailout)
|
|
5364
|
+
for (var child$63 = completedWork.child; null !== child$63; )
|
|
5365
|
+
(newChildLanes |= child$63.lanes | child$63.childLanes),
|
|
5366
|
+
(subtreeFlags |= child$63.subtreeFlags & 14680064),
|
|
5367
|
+
(subtreeFlags |= child$63.flags & 14680064),
|
|
5368
|
+
(child$63.return = completedWork),
|
|
5369
|
+
(child$63 = child$63.sibling);
|
|
5370
|
+
else
|
|
5371
|
+
for (child$63 = completedWork.child; null !== child$63; )
|
|
5372
|
+
(newChildLanes |= child$63.lanes | child$63.childLanes),
|
|
5373
|
+
(subtreeFlags |= child$63.subtreeFlags),
|
|
5374
|
+
(subtreeFlags |= child$63.flags),
|
|
5375
|
+
(child$63.return = completedWork),
|
|
5376
|
+
(child$63 = child$63.sibling);
|
|
5377
|
+
completedWork.subtreeFlags |= subtreeFlags;
|
|
5378
|
+
completedWork.childLanes = newChildLanes;
|
|
5379
|
+
return didBailout;
|
|
5380
|
+
}
|
|
5381
|
+
function completeWork(current, workInProgress, renderLanes) {
|
|
5382
|
+
var newProps = workInProgress.pendingProps;
|
|
5383
|
+
popTreeContext(workInProgress);
|
|
5384
|
+
switch (workInProgress.tag) {
|
|
5385
|
+
case 2:
|
|
5386
|
+
case 16:
|
|
5387
|
+
case 15:
|
|
5388
|
+
case 0:
|
|
5389
|
+
case 11:
|
|
5390
|
+
case 7:
|
|
5391
|
+
case 8:
|
|
5392
|
+
case 12:
|
|
5393
|
+
case 9:
|
|
5394
|
+
case 14:
|
|
5395
|
+
return bubbleProperties(workInProgress), null;
|
|
5396
|
+
case 1:
|
|
5397
|
+
return (
|
|
5398
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
5399
|
+
bubbleProperties(workInProgress),
|
|
5400
|
+
null
|
|
5401
|
+
);
|
|
5402
|
+
case 3:
|
|
5403
|
+
return (
|
|
5404
|
+
(renderLanes = workInProgress.stateNode),
|
|
5405
|
+
popHostContainer(),
|
|
5406
|
+
pop(didPerformWorkStackCursor),
|
|
5407
|
+
pop(contextStackCursor),
|
|
5408
|
+
resetWorkInProgressVersions(),
|
|
5409
|
+
renderLanes.pendingContext &&
|
|
5410
|
+
((renderLanes.context = renderLanes.pendingContext),
|
|
5411
|
+
(renderLanes.pendingContext = null)),
|
|
5412
|
+
(null !== current && null !== current.child) ||
|
|
5413
|
+
null === current ||
|
|
5414
|
+
(current.memoizedState.isDehydrated &&
|
|
5415
|
+
0 === (workInProgress.flags & 256)) ||
|
|
5416
|
+
((workInProgress.flags |= 1024),
|
|
5417
|
+
null !== hydrationErrors &&
|
|
5418
|
+
(queueRecoverableErrors(hydrationErrors),
|
|
5419
|
+
(hydrationErrors = null))),
|
|
5420
|
+
updateHostContainer(current, workInProgress),
|
|
5421
|
+
bubbleProperties(workInProgress),
|
|
5422
|
+
null
|
|
5423
|
+
);
|
|
5424
|
+
case 5:
|
|
5425
|
+
popHostContext(workInProgress);
|
|
5426
|
+
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
5427
|
+
var type = workInProgress.type;
|
|
5428
|
+
if (null !== current && null != workInProgress.stateNode)
|
|
5429
|
+
updateHostComponent$1(
|
|
5430
|
+
current,
|
|
5431
|
+
workInProgress,
|
|
5432
|
+
type,
|
|
5433
|
+
newProps,
|
|
5434
|
+
renderLanes
|
|
5435
|
+
),
|
|
5436
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
5437
|
+
else {
|
|
5438
|
+
if (!newProps) {
|
|
5439
|
+
if (null === workInProgress.stateNode)
|
|
5440
|
+
throw Error(
|
|
5441
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
5442
|
+
);
|
|
5443
|
+
bubbleProperties(workInProgress);
|
|
5444
|
+
return null;
|
|
5445
|
+
}
|
|
5446
|
+
requiredContext(contextStackCursor$1.current);
|
|
5447
|
+
current = allocateTag();
|
|
5448
|
+
type = getViewConfigForType(type);
|
|
5449
|
+
var updatePayload = diffProperties(
|
|
5450
|
+
null,
|
|
5451
|
+
emptyObject,
|
|
5452
|
+
newProps,
|
|
5453
|
+
type.validAttributes
|
|
5454
|
+
);
|
|
5455
|
+
ReactNativePrivateInterface.UIManager.createView(
|
|
5456
|
+
current,
|
|
5457
|
+
type.uiViewClassName,
|
|
5458
|
+
renderLanes,
|
|
5459
|
+
updatePayload
|
|
5460
|
+
);
|
|
5461
|
+
renderLanes = new ReactNativeFiberHostComponent(
|
|
5462
|
+
current,
|
|
5463
|
+
type,
|
|
5464
|
+
workInProgress
|
|
5465
|
+
);
|
|
5466
|
+
instanceCache.set(current, workInProgress);
|
|
5467
|
+
instanceProps.set(current, newProps);
|
|
5468
|
+
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
5469
|
+
workInProgress.stateNode = renderLanes;
|
|
5470
|
+
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
5471
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
5472
|
+
}
|
|
5473
|
+
bubbleProperties(workInProgress);
|
|
5474
|
+
return null;
|
|
5475
|
+
case 6:
|
|
5476
|
+
if (current && null != workInProgress.stateNode)
|
|
5477
|
+
updateHostText$1(
|
|
5478
|
+
current,
|
|
5479
|
+
workInProgress,
|
|
5480
|
+
current.memoizedProps,
|
|
5481
|
+
newProps
|
|
5482
|
+
);
|
|
5483
|
+
else {
|
|
5484
|
+
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
5485
|
+
throw Error(
|
|
5486
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
5487
|
+
);
|
|
5488
|
+
current = requiredContext(rootInstanceStackCursor.current);
|
|
5489
|
+
if (!requiredContext(contextStackCursor$1.current).isInAParentText)
|
|
5490
|
+
throw Error(
|
|
5491
|
+
"Text strings must be rendered within a <Text> component."
|
|
5492
|
+
);
|
|
5493
|
+
renderLanes = allocateTag();
|
|
5494
|
+
ReactNativePrivateInterface.UIManager.createView(
|
|
5495
|
+
renderLanes,
|
|
5496
|
+
"RCTRawText",
|
|
5497
|
+
current,
|
|
5498
|
+
{ text: newProps }
|
|
5499
|
+
);
|
|
5500
|
+
instanceCache.set(renderLanes, workInProgress);
|
|
5501
|
+
workInProgress.stateNode = renderLanes;
|
|
5502
|
+
}
|
|
5503
|
+
bubbleProperties(workInProgress);
|
|
5504
|
+
return null;
|
|
5505
|
+
case 13:
|
|
5506
|
+
pop(suspenseStackCursor);
|
|
5507
|
+
newProps = workInProgress.memoizedState;
|
|
5508
|
+
if (
|
|
5509
|
+
null === current ||
|
|
5510
|
+
(null !== current.memoizedState &&
|
|
5511
|
+
null !== current.memoizedState.dehydrated)
|
|
5512
|
+
) {
|
|
5513
|
+
if (null !== newProps && null !== newProps.dehydrated) {
|
|
5514
|
+
if (null === current) {
|
|
5515
|
+
throw Error(
|
|
5516
|
+
"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."
|
|
5517
|
+
);
|
|
5518
|
+
throw Error(
|
|
5519
|
+
"Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."
|
|
5520
|
+
);
|
|
5521
|
+
}
|
|
5522
|
+
0 === (workInProgress.flags & 128) &&
|
|
5523
|
+
(workInProgress.memoizedState = null);
|
|
5524
|
+
workInProgress.flags |= 4;
|
|
5525
|
+
bubbleProperties(workInProgress);
|
|
5526
|
+
type = !1;
|
|
5527
|
+
} else
|
|
5528
|
+
null !== hydrationErrors &&
|
|
5529
|
+
(queueRecoverableErrors(hydrationErrors), (hydrationErrors = null)),
|
|
5530
|
+
(type = !0);
|
|
5531
|
+
if (!type) return workInProgress.flags & 65536 ? workInProgress : null;
|
|
5532
|
+
}
|
|
5533
|
+
if (0 !== (workInProgress.flags & 128))
|
|
5534
|
+
return (workInProgress.lanes = renderLanes), workInProgress;
|
|
5535
|
+
renderLanes = null !== newProps;
|
|
5536
|
+
renderLanes !== (null !== current && null !== current.memoizedState) &&
|
|
5537
|
+
renderLanes &&
|
|
5538
|
+
((workInProgress.child.flags |= 8192),
|
|
5539
|
+
0 !== (workInProgress.mode & 1) &&
|
|
5540
|
+
(null === current || 0 !== (suspenseStackCursor.current & 1)
|
|
5541
|
+
? 0 === workInProgressRootExitStatus &&
|
|
5542
|
+
(workInProgressRootExitStatus = 3)
|
|
5543
|
+
: renderDidSuspendDelayIfPossible()));
|
|
5544
|
+
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
|
|
5545
|
+
bubbleProperties(workInProgress);
|
|
5546
|
+
return null;
|
|
5547
|
+
case 4:
|
|
5548
|
+
return (
|
|
5549
|
+
popHostContainer(),
|
|
5550
|
+
updateHostContainer(current, workInProgress),
|
|
5551
|
+
bubbleProperties(workInProgress),
|
|
5552
|
+
null
|
|
5553
|
+
);
|
|
5554
|
+
case 10:
|
|
5555
|
+
return (
|
|
5556
|
+
popProvider(workInProgress.type._context),
|
|
5557
|
+
bubbleProperties(workInProgress),
|
|
5558
|
+
null
|
|
5559
|
+
);
|
|
5560
|
+
case 17:
|
|
5561
|
+
return (
|
|
5562
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
5563
|
+
bubbleProperties(workInProgress),
|
|
5564
|
+
null
|
|
5565
|
+
);
|
|
5566
|
+
case 19:
|
|
5567
|
+
pop(suspenseStackCursor);
|
|
5568
|
+
type = workInProgress.memoizedState;
|
|
5569
|
+
if (null === type) return bubbleProperties(workInProgress), null;
|
|
5570
|
+
newProps = 0 !== (workInProgress.flags & 128);
|
|
5571
|
+
updatePayload = type.rendering;
|
|
5572
|
+
if (null === updatePayload)
|
|
5573
|
+
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
5574
|
+
else {
|
|
5575
|
+
if (
|
|
5576
|
+
0 !== workInProgressRootExitStatus ||
|
|
5577
|
+
(null !== current && 0 !== (current.flags & 128))
|
|
5578
|
+
)
|
|
5579
|
+
for (current = workInProgress.child; null !== current; ) {
|
|
5580
|
+
updatePayload = findFirstSuspended(current);
|
|
5581
|
+
if (null !== updatePayload) {
|
|
5582
|
+
workInProgress.flags |= 128;
|
|
5583
|
+
cutOffTailIfNeeded(type, !1);
|
|
5584
|
+
current = updatePayload.updateQueue;
|
|
5585
|
+
null !== current &&
|
|
5586
|
+
((workInProgress.updateQueue = current),
|
|
5587
|
+
(workInProgress.flags |= 4));
|
|
5588
|
+
workInProgress.subtreeFlags = 0;
|
|
5589
|
+
current = renderLanes;
|
|
5590
|
+
for (renderLanes = workInProgress.child; null !== renderLanes; )
|
|
5591
|
+
(newProps = renderLanes),
|
|
5592
|
+
(type = current),
|
|
5593
|
+
(newProps.flags &= 14680066),
|
|
5594
|
+
(updatePayload = newProps.alternate),
|
|
5595
|
+
null === updatePayload
|
|
5596
|
+
? ((newProps.childLanes = 0),
|
|
5597
|
+
(newProps.lanes = type),
|
|
5598
|
+
(newProps.child = null),
|
|
5599
|
+
(newProps.subtreeFlags = 0),
|
|
5600
|
+
(newProps.memoizedProps = null),
|
|
5601
|
+
(newProps.memoizedState = null),
|
|
5602
|
+
(newProps.updateQueue = null),
|
|
5603
|
+
(newProps.dependencies = null),
|
|
5604
|
+
(newProps.stateNode = null))
|
|
5605
|
+
: ((newProps.childLanes = updatePayload.childLanes),
|
|
5606
|
+
(newProps.lanes = updatePayload.lanes),
|
|
5607
|
+
(newProps.child = updatePayload.child),
|
|
5608
|
+
(newProps.subtreeFlags = 0),
|
|
5609
|
+
(newProps.deletions = null),
|
|
5610
|
+
(newProps.memoizedProps = updatePayload.memoizedProps),
|
|
5611
|
+
(newProps.memoizedState = updatePayload.memoizedState),
|
|
5612
|
+
(newProps.updateQueue = updatePayload.updateQueue),
|
|
5613
|
+
(newProps.type = updatePayload.type),
|
|
5614
|
+
(type = updatePayload.dependencies),
|
|
5615
|
+
(newProps.dependencies =
|
|
5616
|
+
null === type
|
|
5617
|
+
? null
|
|
5618
|
+
: {
|
|
5619
|
+
lanes: type.lanes,
|
|
5620
|
+
firstContext: type.firstContext
|
|
5621
|
+
})),
|
|
5622
|
+
(renderLanes = renderLanes.sibling);
|
|
5623
|
+
push(
|
|
5624
|
+
suspenseStackCursor,
|
|
5625
|
+
(suspenseStackCursor.current & 1) | 2
|
|
5626
|
+
);
|
|
5627
|
+
return workInProgress.child;
|
|
5628
|
+
}
|
|
5629
|
+
current = current.sibling;
|
|
5630
|
+
}
|
|
5631
|
+
null !== type.tail &&
|
|
5632
|
+
now() > workInProgressRootRenderTargetTime &&
|
|
5633
|
+
((workInProgress.flags |= 128),
|
|
5634
|
+
(newProps = !0),
|
|
5635
|
+
cutOffTailIfNeeded(type, !1),
|
|
5636
|
+
(workInProgress.lanes = 4194304));
|
|
5637
|
+
}
|
|
5638
|
+
else {
|
|
5639
|
+
if (!newProps)
|
|
5640
|
+
if (
|
|
5641
|
+
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
5642
|
+
) {
|
|
5643
|
+
if (
|
|
5644
|
+
((workInProgress.flags |= 128),
|
|
5645
|
+
(newProps = !0),
|
|
5646
|
+
(current = current.updateQueue),
|
|
5647
|
+
null !== current &&
|
|
5648
|
+
((workInProgress.updateQueue = current),
|
|
5649
|
+
(workInProgress.flags |= 4)),
|
|
5650
|
+
cutOffTailIfNeeded(type, !0),
|
|
5651
|
+
null === type.tail &&
|
|
5652
|
+
"hidden" === type.tailMode &&
|
|
5653
|
+
!updatePayload.alternate)
|
|
5654
|
+
)
|
|
5655
|
+
return bubbleProperties(workInProgress), null;
|
|
5656
|
+
} else
|
|
5657
|
+
2 * now() - type.renderingStartTime >
|
|
5658
|
+
workInProgressRootRenderTargetTime &&
|
|
5659
|
+
1073741824 !== renderLanes &&
|
|
5660
|
+
((workInProgress.flags |= 128),
|
|
5661
|
+
(newProps = !0),
|
|
5662
|
+
cutOffTailIfNeeded(type, !1),
|
|
5663
|
+
(workInProgress.lanes = 4194304));
|
|
5664
|
+
type.isBackwards
|
|
5665
|
+
? ((updatePayload.sibling = workInProgress.child),
|
|
5666
|
+
(workInProgress.child = updatePayload))
|
|
5667
|
+
: ((current = type.last),
|
|
5668
|
+
null !== current
|
|
5669
|
+
? (current.sibling = updatePayload)
|
|
5670
|
+
: (workInProgress.child = updatePayload),
|
|
5671
|
+
(type.last = updatePayload));
|
|
5437
5672
|
}
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5673
|
+
if (null !== type.tail)
|
|
5674
|
+
return (
|
|
5675
|
+
(workInProgress = type.tail),
|
|
5676
|
+
(type.rendering = workInProgress),
|
|
5677
|
+
(type.tail = workInProgress.sibling),
|
|
5678
|
+
(type.renderingStartTime = now()),
|
|
5679
|
+
(workInProgress.sibling = null),
|
|
5680
|
+
(current = suspenseStackCursor.current),
|
|
5681
|
+
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
5682
|
+
workInProgress
|
|
5683
|
+
);
|
|
5684
|
+
bubbleProperties(workInProgress);
|
|
5685
|
+
return null;
|
|
5446
5686
|
case 22:
|
|
5447
5687
|
case 23:
|
|
5448
5688
|
return (
|
|
5449
|
-
(
|
|
5450
|
-
|
|
5689
|
+
popRenderLanes(),
|
|
5690
|
+
(renderLanes = null !== workInProgress.memoizedState),
|
|
5691
|
+
null !== current &&
|
|
5692
|
+
(null !== current.memoizedState) !== renderLanes &&
|
|
5693
|
+
(workInProgress.flags |= 8192),
|
|
5694
|
+
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
5695
|
+
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
5696
|
+
(bubbleProperties(workInProgress),
|
|
5697
|
+
workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192))
|
|
5698
|
+
: bubbleProperties(workInProgress),
|
|
5699
|
+
null
|
|
5451
5700
|
);
|
|
5701
|
+
case 24:
|
|
5702
|
+
return null;
|
|
5703
|
+
case 25:
|
|
5704
|
+
return null;
|
|
5452
5705
|
}
|
|
5453
|
-
|
|
5706
|
+
throw Error(
|
|
5707
|
+
"Unknown unit of work tag (" +
|
|
5708
|
+
workInProgress.tag +
|
|
5709
|
+
"). This error is likely caused by a bug in React. Please file an issue."
|
|
5710
|
+
);
|
|
5454
5711
|
}
|
|
5455
5712
|
function unwindWork(current, workInProgress) {
|
|
5456
5713
|
popTreeContext(workInProgress);
|
|
@@ -5477,13 +5734,20 @@ function unwindWork(current, workInProgress) {
|
|
|
5477
5734
|
case 5:
|
|
5478
5735
|
return popHostContext(workInProgress), null;
|
|
5479
5736
|
case 13:
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
current
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
)
|
|
5737
|
+
pop(suspenseStackCursor);
|
|
5738
|
+
current = workInProgress.memoizedState;
|
|
5739
|
+
if (
|
|
5740
|
+
null !== current &&
|
|
5741
|
+
null !== current.dehydrated &&
|
|
5742
|
+
null === workInProgress.alternate
|
|
5743
|
+
)
|
|
5744
|
+
throw Error(
|
|
5745
|
+
"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."
|
|
5746
|
+
);
|
|
5747
|
+
current = workInProgress.flags;
|
|
5748
|
+
return current & 65536
|
|
5749
|
+
? ((workInProgress.flags = (current & -65537) | 128), workInProgress)
|
|
5750
|
+
: null;
|
|
5487
5751
|
case 19:
|
|
5488
5752
|
return pop(suspenseStackCursor), null;
|
|
5489
5753
|
case 4:
|
|
@@ -5607,61 +5871,13 @@ function commitHookEffectListMount(flags, finishedWork) {
|
|
|
5607
5871
|
var effect = (finishedWork = finishedWork.next);
|
|
5608
5872
|
do {
|
|
5609
5873
|
if ((effect.tag & flags) === flags) {
|
|
5610
|
-
var create$
|
|
5611
|
-
effect.destroy = create$
|
|
5874
|
+
var create$75 = effect.create;
|
|
5875
|
+
effect.destroy = create$75();
|
|
5612
5876
|
}
|
|
5613
5877
|
effect = effect.next;
|
|
5614
5878
|
} while (effect !== finishedWork);
|
|
5615
5879
|
}
|
|
5616
5880
|
}
|
|
5617
|
-
function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
5618
|
-
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
|
|
5619
|
-
try {
|
|
5620
|
-
injectedHook.onCommitFiberUnmount(rendererID, current);
|
|
5621
|
-
} catch (err) {}
|
|
5622
|
-
switch (current.tag) {
|
|
5623
|
-
case 0:
|
|
5624
|
-
case 11:
|
|
5625
|
-
case 14:
|
|
5626
|
-
case 15:
|
|
5627
|
-
finishedRoot = current.updateQueue;
|
|
5628
|
-
if (
|
|
5629
|
-
null !== finishedRoot &&
|
|
5630
|
-
((finishedRoot = finishedRoot.lastEffect), null !== finishedRoot)
|
|
5631
|
-
) {
|
|
5632
|
-
var effect = (finishedRoot = finishedRoot.next);
|
|
5633
|
-
do {
|
|
5634
|
-
var _effect = effect,
|
|
5635
|
-
destroy = _effect.destroy;
|
|
5636
|
-
_effect = _effect.tag;
|
|
5637
|
-
void 0 !== destroy &&
|
|
5638
|
-
(0 !== (_effect & 2)
|
|
5639
|
-
? safelyCallDestroy(current, nearestMountedAncestor, destroy)
|
|
5640
|
-
: 0 !== (_effect & 4) &&
|
|
5641
|
-
safelyCallDestroy(current, nearestMountedAncestor, destroy));
|
|
5642
|
-
effect = effect.next;
|
|
5643
|
-
} while (effect !== finishedRoot);
|
|
5644
|
-
}
|
|
5645
|
-
break;
|
|
5646
|
-
case 1:
|
|
5647
|
-
safelyDetachRef(current, nearestMountedAncestor);
|
|
5648
|
-
finishedRoot = current.stateNode;
|
|
5649
|
-
if ("function" === typeof finishedRoot.componentWillUnmount)
|
|
5650
|
-
try {
|
|
5651
|
-
(finishedRoot.props = current.memoizedProps),
|
|
5652
|
-
(finishedRoot.state = current.memoizedState),
|
|
5653
|
-
finishedRoot.componentWillUnmount();
|
|
5654
|
-
} catch (error) {
|
|
5655
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5656
|
-
}
|
|
5657
|
-
break;
|
|
5658
|
-
case 5:
|
|
5659
|
-
safelyDetachRef(current, nearestMountedAncestor);
|
|
5660
|
-
break;
|
|
5661
|
-
case 4:
|
|
5662
|
-
unmountHostComponents(finishedRoot, current, nearestMountedAncestor);
|
|
5663
|
-
}
|
|
5664
|
-
}
|
|
5665
5881
|
function detachFiberAfterEffects(fiber) {
|
|
5666
5882
|
var alternate = fiber.alternate;
|
|
5667
5883
|
null !== alternate &&
|
|
@@ -5700,40 +5916,6 @@ function getHostSibling(fiber) {
|
|
|
5700
5916
|
if (!(fiber.flags & 2)) return fiber.stateNode;
|
|
5701
5917
|
}
|
|
5702
5918
|
}
|
|
5703
|
-
function commitPlacement(finishedWork) {
|
|
5704
|
-
a: {
|
|
5705
|
-
for (var parent = finishedWork.return; null !== parent; ) {
|
|
5706
|
-
if (isHostParent(parent)) break a;
|
|
5707
|
-
parent = parent.return;
|
|
5708
|
-
}
|
|
5709
|
-
throw Error(
|
|
5710
|
-
"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."
|
|
5711
|
-
);
|
|
5712
|
-
}
|
|
5713
|
-
var parentFiber = parent;
|
|
5714
|
-
switch (parentFiber.tag) {
|
|
5715
|
-
case 5:
|
|
5716
|
-
parent = parentFiber.stateNode;
|
|
5717
|
-
parentFiber.flags & 32 && (parentFiber.flags &= -33);
|
|
5718
|
-
parentFiber = getHostSibling(finishedWork);
|
|
5719
|
-
insertOrAppendPlacementNode(finishedWork, parentFiber, parent);
|
|
5720
|
-
break;
|
|
5721
|
-
case 3:
|
|
5722
|
-
case 4:
|
|
5723
|
-
parent = parentFiber.stateNode.containerInfo;
|
|
5724
|
-
parentFiber = getHostSibling(finishedWork);
|
|
5725
|
-
insertOrAppendPlacementNodeIntoContainer(
|
|
5726
|
-
finishedWork,
|
|
5727
|
-
parentFiber,
|
|
5728
|
-
parent
|
|
5729
|
-
);
|
|
5730
|
-
break;
|
|
5731
|
-
default:
|
|
5732
|
-
throw Error(
|
|
5733
|
-
"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."
|
|
5734
|
-
);
|
|
5735
|
-
}
|
|
5736
|
-
}
|
|
5737
5919
|
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
|
5738
5920
|
var tag = node.tag;
|
|
5739
5921
|
if (5 === tag || 6 === tag)
|
|
@@ -5797,204 +5979,172 @@ function insertOrAppendPlacementNode(node, before, parent) {
|
|
|
5797
5979
|
[],
|
|
5798
5980
|
[]
|
|
5799
5981
|
))
|
|
5800
|
-
: (tag.push(node),
|
|
5801
|
-
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
5802
|
-
parent._nativeTag,
|
|
5803
|
-
[],
|
|
5804
|
-
[],
|
|
5805
|
-
[before],
|
|
5806
|
-
[tag.length - 1],
|
|
5807
|
-
[]
|
|
5808
|
-
));
|
|
5809
|
-
else if (4 !== tag && ((node = node.child), null !== node))
|
|
5810
|
-
for (
|
|
5811
|
-
insertOrAppendPlacementNode(node, before, parent), node = node.sibling;
|
|
5812
|
-
null !== node;
|
|
5813
|
-
|
|
5814
|
-
)
|
|
5815
|
-
insertOrAppendPlacementNode(node, before, parent), (node = node.sibling);
|
|
5816
|
-
}
|
|
5817
|
-
function unmountHostComponents(
|
|
5818
|
-
finishedRoot$jscomp$0,
|
|
5819
|
-
current,
|
|
5820
|
-
nearestMountedAncestor$jscomp$0
|
|
5821
|
-
) {
|
|
5822
|
-
for (
|
|
5823
|
-
var node = current,
|
|
5824
|
-
currentParentIsValid = !1,
|
|
5825
|
-
currentParent,
|
|
5826
|
-
currentParentIsContainer;
|
|
5827
|
-
;
|
|
5828
|
-
|
|
5829
|
-
) {
|
|
5830
|
-
if (!currentParentIsValid) {
|
|
5831
|
-
currentParentIsValid = node.return;
|
|
5832
|
-
a: for (;;) {
|
|
5833
|
-
if (null === currentParentIsValid)
|
|
5834
|
-
throw Error(
|
|
5835
|
-
"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."
|
|
5836
|
-
);
|
|
5837
|
-
currentParent = currentParentIsValid.stateNode;
|
|
5838
|
-
switch (currentParentIsValid.tag) {
|
|
5839
|
-
case 5:
|
|
5840
|
-
currentParentIsContainer = !1;
|
|
5841
|
-
break a;
|
|
5842
|
-
case 3:
|
|
5843
|
-
currentParent = currentParent.containerInfo;
|
|
5844
|
-
currentParentIsContainer = !0;
|
|
5845
|
-
break a;
|
|
5846
|
-
case 4:
|
|
5847
|
-
currentParent = currentParent.containerInfo;
|
|
5848
|
-
currentParentIsContainer = !0;
|
|
5849
|
-
break a;
|
|
5850
|
-
}
|
|
5851
|
-
currentParentIsValid = currentParentIsValid.return;
|
|
5852
|
-
}
|
|
5853
|
-
currentParentIsValid = !0;
|
|
5854
|
-
}
|
|
5855
|
-
if (5 === node.tag || 6 === node.tag) {
|
|
5856
|
-
a: for (
|
|
5857
|
-
var finishedRoot = finishedRoot$jscomp$0,
|
|
5858
|
-
root = node,
|
|
5859
|
-
nearestMountedAncestor = nearestMountedAncestor$jscomp$0,
|
|
5860
|
-
node$jscomp$0 = root;
|
|
5861
|
-
;
|
|
5862
|
-
|
|
5863
|
-
)
|
|
5864
|
-
if (
|
|
5865
|
-
(commitUnmount(finishedRoot, node$jscomp$0, nearestMountedAncestor),
|
|
5866
|
-
null !== node$jscomp$0.child && 4 !== node$jscomp$0.tag)
|
|
5867
|
-
)
|
|
5868
|
-
(node$jscomp$0.child.return = node$jscomp$0),
|
|
5869
|
-
(node$jscomp$0 = node$jscomp$0.child);
|
|
5870
|
-
else {
|
|
5871
|
-
if (node$jscomp$0 === root) break a;
|
|
5872
|
-
for (; null === node$jscomp$0.sibling; ) {
|
|
5873
|
-
if (null === node$jscomp$0.return || node$jscomp$0.return === root)
|
|
5874
|
-
break a;
|
|
5875
|
-
node$jscomp$0 = node$jscomp$0.return;
|
|
5876
|
-
}
|
|
5877
|
-
node$jscomp$0.sibling.return = node$jscomp$0.return;
|
|
5878
|
-
node$jscomp$0 = node$jscomp$0.sibling;
|
|
5879
|
-
}
|
|
5880
|
-
currentParentIsContainer
|
|
5881
|
-
? ((finishedRoot = currentParent),
|
|
5882
|
-
recursivelyUncacheFiberNode(node.stateNode),
|
|
5883
|
-
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
5884
|
-
finishedRoot,
|
|
5885
|
-
[],
|
|
5886
|
-
[],
|
|
5887
|
-
[],
|
|
5888
|
-
[],
|
|
5889
|
-
[0]
|
|
5890
|
-
))
|
|
5891
|
-
: ((finishedRoot = currentParent),
|
|
5892
|
-
(nearestMountedAncestor = node.stateNode),
|
|
5893
|
-
recursivelyUncacheFiberNode(nearestMountedAncestor),
|
|
5894
|
-
(root = finishedRoot._children),
|
|
5895
|
-
(nearestMountedAncestor = root.indexOf(nearestMountedAncestor)),
|
|
5896
|
-
root.splice(nearestMountedAncestor, 1),
|
|
5897
|
-
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
5898
|
-
finishedRoot._nativeTag,
|
|
5899
|
-
[],
|
|
5900
|
-
[],
|
|
5901
|
-
[],
|
|
5902
|
-
[],
|
|
5903
|
-
[nearestMountedAncestor]
|
|
5904
|
-
));
|
|
5905
|
-
} else if (4 === node.tag) {
|
|
5906
|
-
if (null !== node.child) {
|
|
5907
|
-
currentParent = node.stateNode.containerInfo;
|
|
5908
|
-
currentParentIsContainer = !0;
|
|
5909
|
-
node.child.return = node;
|
|
5910
|
-
node = node.child;
|
|
5911
|
-
continue;
|
|
5912
|
-
}
|
|
5913
|
-
} else if (
|
|
5914
|
-
(commitUnmount(
|
|
5915
|
-
finishedRoot$jscomp$0,
|
|
5916
|
-
node,
|
|
5917
|
-
nearestMountedAncestor$jscomp$0
|
|
5918
|
-
),
|
|
5919
|
-
null !== node.child)
|
|
5920
|
-
) {
|
|
5921
|
-
node.child.return = node;
|
|
5922
|
-
node = node.child;
|
|
5923
|
-
continue;
|
|
5924
|
-
}
|
|
5925
|
-
if (node === current) break;
|
|
5926
|
-
for (; null === node.sibling; ) {
|
|
5927
|
-
if (null === node.return || node.return === current) return;
|
|
5928
|
-
node = node.return;
|
|
5929
|
-
4 === node.tag && (currentParentIsValid = !1);
|
|
5930
|
-
}
|
|
5931
|
-
node.sibling.return = node.return;
|
|
5932
|
-
node = node.sibling;
|
|
5933
|
-
}
|
|
5982
|
+
: (tag.push(node),
|
|
5983
|
+
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
5984
|
+
parent._nativeTag,
|
|
5985
|
+
[],
|
|
5986
|
+
[],
|
|
5987
|
+
[before],
|
|
5988
|
+
[tag.length - 1],
|
|
5989
|
+
[]
|
|
5990
|
+
));
|
|
5991
|
+
else if (4 !== tag && ((node = node.child), null !== node))
|
|
5992
|
+
for (
|
|
5993
|
+
insertOrAppendPlacementNode(node, before, parent), node = node.sibling;
|
|
5994
|
+
null !== node;
|
|
5995
|
+
|
|
5996
|
+
)
|
|
5997
|
+
insertOrAppendPlacementNode(node, before, parent), (node = node.sibling);
|
|
5934
5998
|
}
|
|
5935
|
-
|
|
5936
|
-
|
|
5999
|
+
var hostParent = null,
|
|
6000
|
+
hostParentIsContainer = !1;
|
|
6001
|
+
function recursivelyTraverseDeletionEffects(
|
|
6002
|
+
finishedRoot,
|
|
6003
|
+
nearestMountedAncestor,
|
|
6004
|
+
parent
|
|
6005
|
+
) {
|
|
6006
|
+
for (parent = parent.child; null !== parent; )
|
|
6007
|
+
commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent),
|
|
6008
|
+
(parent = parent.sibling);
|
|
6009
|
+
}
|
|
6010
|
+
function commitDeletionEffectsOnFiber(
|
|
6011
|
+
finishedRoot,
|
|
6012
|
+
nearestMountedAncestor,
|
|
6013
|
+
deletedFiber
|
|
6014
|
+
) {
|
|
6015
|
+
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
|
|
6016
|
+
try {
|
|
6017
|
+
injectedHook.onCommitFiberUnmount(rendererID, deletedFiber);
|
|
6018
|
+
} catch (err) {}
|
|
6019
|
+
switch (deletedFiber.tag) {
|
|
6020
|
+
case 5:
|
|
6021
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
6022
|
+
case 6:
|
|
6023
|
+
var prevHostParent = hostParent,
|
|
6024
|
+
prevHostParentIsContainer = hostParentIsContainer;
|
|
6025
|
+
hostParent = null;
|
|
6026
|
+
recursivelyTraverseDeletionEffects(
|
|
6027
|
+
finishedRoot,
|
|
6028
|
+
nearestMountedAncestor,
|
|
6029
|
+
deletedFiber
|
|
6030
|
+
);
|
|
6031
|
+
hostParent = prevHostParent;
|
|
6032
|
+
hostParentIsContainer = prevHostParentIsContainer;
|
|
6033
|
+
null !== hostParent &&
|
|
6034
|
+
(hostParentIsContainer
|
|
6035
|
+
? ((finishedRoot = hostParent),
|
|
6036
|
+
recursivelyUncacheFiberNode(deletedFiber.stateNode),
|
|
6037
|
+
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
6038
|
+
finishedRoot,
|
|
6039
|
+
[],
|
|
6040
|
+
[],
|
|
6041
|
+
[],
|
|
6042
|
+
[],
|
|
6043
|
+
[0]
|
|
6044
|
+
))
|
|
6045
|
+
: ((finishedRoot = hostParent),
|
|
6046
|
+
(nearestMountedAncestor = deletedFiber.stateNode),
|
|
6047
|
+
recursivelyUncacheFiberNode(nearestMountedAncestor),
|
|
6048
|
+
(deletedFiber = finishedRoot._children),
|
|
6049
|
+
(nearestMountedAncestor = deletedFiber.indexOf(
|
|
6050
|
+
nearestMountedAncestor
|
|
6051
|
+
)),
|
|
6052
|
+
deletedFiber.splice(nearestMountedAncestor, 1),
|
|
6053
|
+
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
6054
|
+
finishedRoot._nativeTag,
|
|
6055
|
+
[],
|
|
6056
|
+
[],
|
|
6057
|
+
[],
|
|
6058
|
+
[],
|
|
6059
|
+
[nearestMountedAncestor]
|
|
6060
|
+
)));
|
|
6061
|
+
break;
|
|
6062
|
+
case 18:
|
|
6063
|
+
null !== hostParent && shim(hostParent, deletedFiber.stateNode);
|
|
6064
|
+
break;
|
|
6065
|
+
case 4:
|
|
6066
|
+
prevHostParent = hostParent;
|
|
6067
|
+
prevHostParentIsContainer = hostParentIsContainer;
|
|
6068
|
+
hostParent = deletedFiber.stateNode.containerInfo;
|
|
6069
|
+
hostParentIsContainer = !0;
|
|
6070
|
+
recursivelyTraverseDeletionEffects(
|
|
6071
|
+
finishedRoot,
|
|
6072
|
+
nearestMountedAncestor,
|
|
6073
|
+
deletedFiber
|
|
6074
|
+
);
|
|
6075
|
+
hostParent = prevHostParent;
|
|
6076
|
+
hostParentIsContainer = prevHostParentIsContainer;
|
|
6077
|
+
break;
|
|
5937
6078
|
case 0:
|
|
5938
6079
|
case 11:
|
|
5939
6080
|
case 14:
|
|
5940
6081
|
case 15:
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
)),
|
|
5963
|
-
null != newProps &&
|
|
5964
|
-
ReactNativePrivateInterface.UIManager.updateView(
|
|
5965
|
-
instance._nativeTag,
|
|
5966
|
-
finishedWork.uiViewClassName,
|
|
5967
|
-
newProps
|
|
5968
|
-
));
|
|
6082
|
+
prevHostParent = deletedFiber.updateQueue;
|
|
6083
|
+
if (
|
|
6084
|
+
null !== prevHostParent &&
|
|
6085
|
+
((prevHostParent = prevHostParent.lastEffect), null !== prevHostParent)
|
|
6086
|
+
) {
|
|
6087
|
+
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
|
|
6088
|
+
do {
|
|
6089
|
+
var _effect = prevHostParentIsContainer,
|
|
6090
|
+
destroy = _effect.destroy;
|
|
6091
|
+
_effect = _effect.tag;
|
|
6092
|
+
void 0 !== destroy &&
|
|
6093
|
+
(0 !== (_effect & 2)
|
|
6094
|
+
? safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy)
|
|
6095
|
+
: 0 !== (_effect & 4) &&
|
|
6096
|
+
safelyCallDestroy(
|
|
6097
|
+
deletedFiber,
|
|
6098
|
+
nearestMountedAncestor,
|
|
6099
|
+
destroy
|
|
6100
|
+
));
|
|
6101
|
+
prevHostParentIsContainer = prevHostParentIsContainer.next;
|
|
6102
|
+
} while (prevHostParentIsContainer !== prevHostParent);
|
|
5969
6103
|
}
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
6104
|
+
recursivelyTraverseDeletionEffects(
|
|
6105
|
+
finishedRoot,
|
|
6106
|
+
nearestMountedAncestor,
|
|
6107
|
+
deletedFiber
|
|
6108
|
+
);
|
|
6109
|
+
break;
|
|
6110
|
+
case 1:
|
|
6111
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
6112
|
+
prevHostParent = deletedFiber.stateNode;
|
|
6113
|
+
if ("function" === typeof prevHostParent.componentWillUnmount)
|
|
6114
|
+
try {
|
|
6115
|
+
(prevHostParent.props = deletedFiber.memoizedProps),
|
|
6116
|
+
(prevHostParent.state = deletedFiber.memoizedState),
|
|
6117
|
+
prevHostParent.componentWillUnmount();
|
|
6118
|
+
} catch (error) {
|
|
6119
|
+
captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error);
|
|
6120
|
+
}
|
|
6121
|
+
recursivelyTraverseDeletionEffects(
|
|
6122
|
+
finishedRoot,
|
|
6123
|
+
nearestMountedAncestor,
|
|
6124
|
+
deletedFiber
|
|
6125
|
+
);
|
|
6126
|
+
break;
|
|
6127
|
+
case 21:
|
|
6128
|
+
recursivelyTraverseDeletionEffects(
|
|
6129
|
+
finishedRoot,
|
|
6130
|
+
nearestMountedAncestor,
|
|
6131
|
+
deletedFiber
|
|
6132
|
+
);
|
|
6133
|
+
break;
|
|
6134
|
+
case 22:
|
|
6135
|
+
recursivelyTraverseDeletionEffects(
|
|
6136
|
+
finishedRoot,
|
|
6137
|
+
nearestMountedAncestor,
|
|
6138
|
+
deletedFiber
|
|
6139
|
+
);
|
|
6140
|
+
break;
|
|
6141
|
+
default:
|
|
6142
|
+
recursivelyTraverseDeletionEffects(
|
|
6143
|
+
finishedRoot,
|
|
6144
|
+
nearestMountedAncestor,
|
|
6145
|
+
deletedFiber
|
|
5980
6146
|
);
|
|
5981
|
-
return;
|
|
5982
|
-
case 3:
|
|
5983
|
-
return;
|
|
5984
|
-
case 12:
|
|
5985
|
-
return;
|
|
5986
|
-
case 13:
|
|
5987
|
-
attachSuspenseRetryListeners(finishedWork);
|
|
5988
|
-
return;
|
|
5989
|
-
case 19:
|
|
5990
|
-
attachSuspenseRetryListeners(finishedWork);
|
|
5991
|
-
return;
|
|
5992
|
-
case 17:
|
|
5993
|
-
return;
|
|
5994
6147
|
}
|
|
5995
|
-
throw Error(
|
|
5996
|
-
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
5997
|
-
);
|
|
5998
6148
|
}
|
|
5999
6149
|
function attachSuspenseRetryListeners(finishedWork) {
|
|
6000
6150
|
var wakeables = finishedWork.updateQueue;
|
|
@@ -6010,153 +6160,310 @@ function attachSuspenseRetryListeners(finishedWork) {
|
|
|
6010
6160
|
});
|
|
6011
6161
|
}
|
|
6012
6162
|
}
|
|
6013
|
-
function
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
var
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
var
|
|
6163
|
+
function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
|
|
6164
|
+
var deletions = parentFiber.deletions;
|
|
6165
|
+
if (null !== deletions)
|
|
6166
|
+
for (var i = 0; i < deletions.length; i++) {
|
|
6167
|
+
var childToDelete = deletions[i];
|
|
6168
|
+
try {
|
|
6169
|
+
var root = root$jscomp$0,
|
|
6170
|
+
returnFiber = parentFiber,
|
|
6171
|
+
parent = returnFiber;
|
|
6172
|
+
a: for (; null !== parent; ) {
|
|
6173
|
+
switch (parent.tag) {
|
|
6174
|
+
case 5:
|
|
6175
|
+
hostParent = parent.stateNode;
|
|
6176
|
+
hostParentIsContainer = !1;
|
|
6177
|
+
break a;
|
|
6178
|
+
case 3:
|
|
6179
|
+
hostParent = parent.stateNode.containerInfo;
|
|
6180
|
+
hostParentIsContainer = !0;
|
|
6181
|
+
break a;
|
|
6182
|
+
case 4:
|
|
6183
|
+
hostParent = parent.stateNode.containerInfo;
|
|
6184
|
+
hostParentIsContainer = !0;
|
|
6185
|
+
break a;
|
|
6186
|
+
}
|
|
6187
|
+
parent = parent.return;
|
|
6188
|
+
}
|
|
6189
|
+
if (null === hostParent)
|
|
6190
|
+
throw Error(
|
|
6191
|
+
"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."
|
|
6192
|
+
);
|
|
6193
|
+
commitDeletionEffectsOnFiber(root, returnFiber, childToDelete);
|
|
6194
|
+
hostParent = null;
|
|
6195
|
+
hostParentIsContainer = !1;
|
|
6196
|
+
var alternate = childToDelete.alternate;
|
|
6197
|
+
null !== alternate && (alternate.return = null);
|
|
6198
|
+
childToDelete.return = null;
|
|
6199
|
+
} catch (error) {
|
|
6200
|
+
captureCommitPhaseError(childToDelete, parentFiber, error);
|
|
6201
|
+
}
|
|
6202
|
+
}
|
|
6203
|
+
if (parentFiber.subtreeFlags & 12854)
|
|
6204
|
+
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
6205
|
+
commitMutationEffectsOnFiber(parentFiber, root$jscomp$0),
|
|
6206
|
+
(parentFiber = parentFiber.sibling);
|
|
6207
|
+
}
|
|
6208
|
+
function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
6209
|
+
var current = finishedWork.alternate,
|
|
6210
|
+
flags = finishedWork.flags;
|
|
6211
|
+
switch (finishedWork.tag) {
|
|
6212
|
+
case 0:
|
|
6213
|
+
case 11:
|
|
6214
|
+
case 14:
|
|
6215
|
+
case 15:
|
|
6216
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6217
|
+
commitReconciliationEffects(finishedWork);
|
|
6218
|
+
if (flags & 4) {
|
|
6020
6219
|
try {
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
null !== alternate && (alternate.return = null);
|
|
6024
|
-
childToDelete.return = null;
|
|
6220
|
+
commitHookEffectListUnmount(3, finishedWork, finishedWork.return),
|
|
6221
|
+
commitHookEffectListMount(3, finishedWork);
|
|
6025
6222
|
} catch (error) {
|
|
6026
|
-
captureCommitPhaseError(
|
|
6223
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
6027
6224
|
}
|
|
6028
|
-
}
|
|
6029
|
-
deletions = firstChild.child;
|
|
6030
|
-
if (0 !== (firstChild.subtreeFlags & 12854) && null !== deletions)
|
|
6031
|
-
(deletions.return = firstChild), (nextEffect = deletions);
|
|
6032
|
-
else
|
|
6033
|
-
for (; null !== nextEffect; ) {
|
|
6034
|
-
firstChild = nextEffect;
|
|
6035
6225
|
try {
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6226
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
6227
|
+
} catch (error$85) {
|
|
6228
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error$85);
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
break;
|
|
6232
|
+
case 1:
|
|
6233
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6234
|
+
commitReconciliationEffects(finishedWork);
|
|
6235
|
+
flags & 512 &&
|
|
6236
|
+
null !== current &&
|
|
6237
|
+
safelyDetachRef(current, current.return);
|
|
6238
|
+
break;
|
|
6239
|
+
case 5:
|
|
6240
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6241
|
+
commitReconciliationEffects(finishedWork);
|
|
6242
|
+
flags & 512 &&
|
|
6243
|
+
null !== current &&
|
|
6244
|
+
safelyDetachRef(current, current.return);
|
|
6245
|
+
if (flags & 4) {
|
|
6246
|
+
var instance$87 = finishedWork.stateNode;
|
|
6247
|
+
if (null != instance$87) {
|
|
6248
|
+
var newProps = finishedWork.memoizedProps,
|
|
6249
|
+
oldProps = null !== current ? current.memoizedProps : newProps,
|
|
6250
|
+
updatePayload = finishedWork.updateQueue;
|
|
6251
|
+
finishedWork.updateQueue = null;
|
|
6252
|
+
if (null !== updatePayload)
|
|
6253
|
+
try {
|
|
6254
|
+
var viewConfig = instance$87.viewConfig;
|
|
6255
|
+
instanceProps.set(instance$87._nativeTag, newProps);
|
|
6256
|
+
var updatePayload$jscomp$0 = diffProperties(
|
|
6257
|
+
null,
|
|
6258
|
+
oldProps,
|
|
6259
|
+
newProps,
|
|
6260
|
+
viewConfig.validAttributes
|
|
6261
|
+
);
|
|
6262
|
+
null != updatePayload$jscomp$0 &&
|
|
6263
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6264
|
+
instance$87._nativeTag,
|
|
6265
|
+
viewConfig.uiViewClassName,
|
|
6266
|
+
updatePayload$jscomp$0
|
|
6267
|
+
);
|
|
6268
|
+
} catch (error$88) {
|
|
6269
|
+
captureCommitPhaseError(
|
|
6270
|
+
finishedWork,
|
|
6271
|
+
finishedWork.return,
|
|
6272
|
+
error$88
|
|
6273
|
+
);
|
|
6045
6274
|
}
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6275
|
+
}
|
|
6276
|
+
}
|
|
6277
|
+
break;
|
|
6278
|
+
case 6:
|
|
6279
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6280
|
+
commitReconciliationEffects(finishedWork);
|
|
6281
|
+
if (flags & 4) {
|
|
6282
|
+
if (null === finishedWork.stateNode)
|
|
6283
|
+
throw Error(
|
|
6284
|
+
"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."
|
|
6285
|
+
);
|
|
6286
|
+
viewConfig = finishedWork.stateNode;
|
|
6287
|
+
updatePayload$jscomp$0 = finishedWork.memoizedProps;
|
|
6288
|
+
try {
|
|
6289
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6290
|
+
viewConfig,
|
|
6291
|
+
"RCTRawText",
|
|
6292
|
+
{ text: updatePayload$jscomp$0 }
|
|
6293
|
+
);
|
|
6294
|
+
} catch (error$89) {
|
|
6295
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error$89);
|
|
6296
|
+
}
|
|
6297
|
+
}
|
|
6298
|
+
break;
|
|
6299
|
+
case 3:
|
|
6300
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6301
|
+
commitReconciliationEffects(finishedWork);
|
|
6302
|
+
break;
|
|
6303
|
+
case 4:
|
|
6304
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6305
|
+
commitReconciliationEffects(finishedWork);
|
|
6306
|
+
break;
|
|
6307
|
+
case 13:
|
|
6308
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6309
|
+
commitReconciliationEffects(finishedWork);
|
|
6310
|
+
viewConfig = finishedWork.child;
|
|
6311
|
+
viewConfig.flags & 8192 &&
|
|
6312
|
+
((updatePayload$jscomp$0 = null !== viewConfig.memoizedState),
|
|
6313
|
+
(viewConfig.stateNode.isHidden = updatePayload$jscomp$0),
|
|
6314
|
+
!updatePayload$jscomp$0 ||
|
|
6315
|
+
(null !== viewConfig.alternate &&
|
|
6316
|
+
null !== viewConfig.alternate.memoizedState) ||
|
|
6317
|
+
(globalMostRecentFallbackTime = now()));
|
|
6318
|
+
flags & 4 && attachSuspenseRetryListeners(finishedWork);
|
|
6319
|
+
break;
|
|
6320
|
+
case 22:
|
|
6321
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6322
|
+
commitReconciliationEffects(finishedWork);
|
|
6323
|
+
if (flags & 8192)
|
|
6324
|
+
a: for (
|
|
6325
|
+
viewConfig = null !== finishedWork.memoizedState,
|
|
6326
|
+
finishedWork.stateNode.isHidden = viewConfig,
|
|
6327
|
+
updatePayload$jscomp$0 = null,
|
|
6328
|
+
current = finishedWork;
|
|
6329
|
+
;
|
|
6330
|
+
|
|
6331
|
+
) {
|
|
6332
|
+
if (5 === current.tag) {
|
|
6333
|
+
if (null === updatePayload$jscomp$0) {
|
|
6334
|
+
updatePayload$jscomp$0 = current;
|
|
6335
|
+
try {
|
|
6336
|
+
if (((instance$87 = current.stateNode), viewConfig))
|
|
6337
|
+
(newProps = instance$87.viewConfig),
|
|
6338
|
+
(oldProps = diffProperties(
|
|
6339
|
+
null,
|
|
6340
|
+
emptyObject,
|
|
6341
|
+
{ style: { display: "none" } },
|
|
6342
|
+
newProps.validAttributes
|
|
6343
|
+
)),
|
|
6344
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6345
|
+
instance$87._nativeTag,
|
|
6346
|
+
newProps.uiViewClassName,
|
|
6347
|
+
oldProps
|
|
6348
|
+
);
|
|
6349
|
+
else {
|
|
6350
|
+
updatePayload = current.stateNode;
|
|
6351
|
+
var props = current.memoizedProps,
|
|
6352
|
+
viewConfig$jscomp$0 = updatePayload.viewConfig,
|
|
6353
|
+
prevProps = assign({}, props, {
|
|
6354
|
+
style: [props.style, { display: "none" }]
|
|
6355
|
+
});
|
|
6356
|
+
var updatePayload$jscomp$1 = diffProperties(
|
|
6357
|
+
null,
|
|
6358
|
+
prevProps,
|
|
6359
|
+
props,
|
|
6360
|
+
viewConfig$jscomp$0.validAttributes
|
|
6361
|
+
);
|
|
6362
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6363
|
+
updatePayload._nativeTag,
|
|
6364
|
+
viewConfig$jscomp$0.uiViewClassName,
|
|
6365
|
+
updatePayload$jscomp$1
|
|
6366
|
+
);
|
|
6126
6367
|
}
|
|
6368
|
+
} catch (error) {
|
|
6369
|
+
captureCommitPhaseError(
|
|
6370
|
+
finishedWork,
|
|
6371
|
+
finishedWork.return,
|
|
6372
|
+
error
|
|
6373
|
+
);
|
|
6374
|
+
}
|
|
6127
6375
|
}
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6376
|
+
} else if (6 === current.tag) {
|
|
6377
|
+
if (null === updatePayload$jscomp$0)
|
|
6378
|
+
try {
|
|
6379
|
+
throw Error("Not yet implemented.");
|
|
6380
|
+
} catch (error$80) {
|
|
6381
|
+
captureCommitPhaseError(
|
|
6382
|
+
finishedWork,
|
|
6383
|
+
finishedWork.return,
|
|
6384
|
+
error$80
|
|
6385
|
+
);
|
|
6386
|
+
}
|
|
6387
|
+
} else if (
|
|
6388
|
+
((22 !== current.tag && 23 !== current.tag) ||
|
|
6389
|
+
null === current.memoizedState ||
|
|
6390
|
+
current === finishedWork) &&
|
|
6391
|
+
null !== current.child
|
|
6392
|
+
) {
|
|
6393
|
+
current.child.return = current;
|
|
6394
|
+
current = current.child;
|
|
6395
|
+
continue;
|
|
6147
6396
|
}
|
|
6148
|
-
|
|
6149
|
-
|
|
6397
|
+
if (current === finishedWork) break a;
|
|
6398
|
+
for (; null === current.sibling; ) {
|
|
6399
|
+
if (null === current.return || current.return === finishedWork)
|
|
6400
|
+
break a;
|
|
6401
|
+
updatePayload$jscomp$0 === current &&
|
|
6402
|
+
(updatePayload$jscomp$0 = null);
|
|
6403
|
+
current = current.return;
|
|
6404
|
+
}
|
|
6405
|
+
updatePayload$jscomp$0 === current && (updatePayload$jscomp$0 = null);
|
|
6406
|
+
current.sibling.return = current.return;
|
|
6407
|
+
current = current.sibling;
|
|
6150
6408
|
}
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6409
|
+
break;
|
|
6410
|
+
case 19:
|
|
6411
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6412
|
+
commitReconciliationEffects(finishedWork);
|
|
6413
|
+
flags & 4 && attachSuspenseRetryListeners(finishedWork);
|
|
6414
|
+
break;
|
|
6415
|
+
case 21:
|
|
6416
|
+
break;
|
|
6417
|
+
default:
|
|
6418
|
+
recursivelyTraverseMutationEffects(root, finishedWork),
|
|
6419
|
+
commitReconciliationEffects(finishedWork);
|
|
6420
|
+
}
|
|
6421
|
+
}
|
|
6422
|
+
function commitReconciliationEffects(finishedWork) {
|
|
6423
|
+
var flags = finishedWork.flags;
|
|
6424
|
+
if (flags & 2) {
|
|
6425
|
+
try {
|
|
6426
|
+
a: {
|
|
6427
|
+
for (var parent = finishedWork.return; null !== parent; ) {
|
|
6428
|
+
if (isHostParent(parent)) {
|
|
6429
|
+
var JSCompiler_inline_result = parent;
|
|
6430
|
+
break a;
|
|
6431
|
+
}
|
|
6432
|
+
parent = parent.return;
|
|
6156
6433
|
}
|
|
6157
|
-
|
|
6434
|
+
throw Error(
|
|
6435
|
+
"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."
|
|
6436
|
+
);
|
|
6437
|
+
}
|
|
6438
|
+
switch (JSCompiler_inline_result.tag) {
|
|
6439
|
+
case 5:
|
|
6440
|
+
var parent$jscomp$0 = JSCompiler_inline_result.stateNode;
|
|
6441
|
+
JSCompiler_inline_result.flags & 32 &&
|
|
6442
|
+
(JSCompiler_inline_result.flags &= -33);
|
|
6443
|
+
var before = getHostSibling(finishedWork);
|
|
6444
|
+
insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0);
|
|
6445
|
+
break;
|
|
6446
|
+
case 3:
|
|
6447
|
+
case 4:
|
|
6448
|
+
var parent$81 = JSCompiler_inline_result.stateNode.containerInfo,
|
|
6449
|
+
before$82 = getHostSibling(finishedWork);
|
|
6450
|
+
insertOrAppendPlacementNodeIntoContainer(
|
|
6451
|
+
finishedWork,
|
|
6452
|
+
before$82,
|
|
6453
|
+
parent$81
|
|
6454
|
+
);
|
|
6455
|
+
break;
|
|
6456
|
+
default:
|
|
6457
|
+
throw Error(
|
|
6458
|
+
"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."
|
|
6459
|
+
);
|
|
6158
6460
|
}
|
|
6461
|
+
} catch (error) {
|
|
6462
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
6463
|
+
}
|
|
6464
|
+
finishedWork.flags &= -3;
|
|
6159
6465
|
}
|
|
6466
|
+
flags & 4096 && (finishedWork.flags &= -4097);
|
|
6160
6467
|
}
|
|
6161
6468
|
function commitLayoutEffects(finishedWork) {
|
|
6162
6469
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
@@ -6200,8 +6507,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6200
6507
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
6201
6508
|
break;
|
|
6202
6509
|
case 3:
|
|
6203
|
-
var updateQueue$
|
|
6204
|
-
if (null !== updateQueue$
|
|
6510
|
+
var updateQueue$76 = firstChild.updateQueue;
|
|
6511
|
+
if (null !== updateQueue$76) {
|
|
6205
6512
|
current = null;
|
|
6206
6513
|
if (null !== firstChild.child)
|
|
6207
6514
|
switch (firstChild.child.tag) {
|
|
@@ -6211,7 +6518,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6211
6518
|
case 1:
|
|
6212
6519
|
current = firstChild.child.stateNode;
|
|
6213
6520
|
}
|
|
6214
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6521
|
+
commitUpdateQueue(firstChild, updateQueue$76, current);
|
|
6215
6522
|
}
|
|
6216
6523
|
break;
|
|
6217
6524
|
case 5:
|
|
@@ -6229,6 +6536,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6229
6536
|
case 21:
|
|
6230
6537
|
case 22:
|
|
6231
6538
|
case 23:
|
|
6539
|
+
case 25:
|
|
6232
6540
|
break;
|
|
6233
6541
|
default:
|
|
6234
6542
|
throw Error(
|
|
@@ -6289,6 +6597,7 @@ var ceil = Math.ceil,
|
|
|
6289
6597
|
workInProgressRootRecoverableErrors = null,
|
|
6290
6598
|
globalMostRecentFallbackTime = 0,
|
|
6291
6599
|
workInProgressRootRenderTargetTime = Infinity,
|
|
6600
|
+
workInProgressTransitions = null,
|
|
6292
6601
|
hasUncaughtError = !1,
|
|
6293
6602
|
firstUncaughtError = null,
|
|
6294
6603
|
legacyErrorBoundariesThatAlreadyFailed = null,
|
|
@@ -6313,24 +6622,19 @@ function requestUpdateLane(fiber) {
|
|
|
6313
6622
|
if (null !== ReactCurrentBatchConfig.transition)
|
|
6314
6623
|
return (
|
|
6315
6624
|
0 === currentEventTransitionLane &&
|
|
6316
|
-
(
|
|
6317
|
-
(nextTransitionLane <<= 1),
|
|
6318
|
-
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64),
|
|
6319
|
-
(currentEventTransitionLane = fiber)),
|
|
6625
|
+
(currentEventTransitionLane = claimNextTransitionLane()),
|
|
6320
6626
|
currentEventTransitionLane
|
|
6321
6627
|
);
|
|
6322
6628
|
fiber = currentUpdatePriority;
|
|
6323
6629
|
return 0 !== fiber ? fiber : 16;
|
|
6324
6630
|
}
|
|
6325
|
-
function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
6631
|
+
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
|
6326
6632
|
if (50 < nestedUpdateCount)
|
|
6327
6633
|
throw ((nestedUpdateCount = 0),
|
|
6328
6634
|
(rootWithNestedUpdates = null),
|
|
6329
6635
|
Error(
|
|
6330
6636
|
"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."
|
|
6331
6637
|
));
|
|
6332
|
-
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6333
|
-
if (null === root) return null;
|
|
6334
6638
|
markRootUpdated(root, lane, eventTime);
|
|
6335
6639
|
if (0 === (executionContext & 2) || root !== workInProgressRoot)
|
|
6336
6640
|
root === workInProgressRoot &&
|
|
@@ -6344,20 +6648,6 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6344
6648
|
0 === (fiber.mode & 1) &&
|
|
6345
6649
|
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6346
6650
|
includesLegacySyncCallbacks && flushSyncCallbacks());
|
|
6347
|
-
return root;
|
|
6348
|
-
}
|
|
6349
|
-
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
6350
|
-
sourceFiber.lanes |= lane;
|
|
6351
|
-
var alternate = sourceFiber.alternate;
|
|
6352
|
-
null !== alternate && (alternate.lanes |= lane);
|
|
6353
|
-
alternate = sourceFiber;
|
|
6354
|
-
for (sourceFiber = sourceFiber.return; null !== sourceFiber; )
|
|
6355
|
-
(sourceFiber.childLanes |= lane),
|
|
6356
|
-
(alternate = sourceFiber.alternate),
|
|
6357
|
-
null !== alternate && (alternate.childLanes |= lane),
|
|
6358
|
-
(alternate = sourceFiber),
|
|
6359
|
-
(sourceFiber = sourceFiber.return);
|
|
6360
|
-
return 3 === alternate.tag ? alternate.stateNode : null;
|
|
6361
6651
|
}
|
|
6362
6652
|
function ensureRootIsScheduled(root, currentTime) {
|
|
6363
6653
|
for (
|
|
@@ -6454,7 +6744,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6454
6744
|
workInProgressRoot !== root ||
|
|
6455
6745
|
workInProgressRootRenderLanes !== didTimeout
|
|
6456
6746
|
)
|
|
6457
|
-
(
|
|
6747
|
+
(workInProgressTransitions = null),
|
|
6748
|
+
(workInProgressRootRenderTargetTime = now() + 500),
|
|
6458
6749
|
prepareFreshStack(root, didTimeout);
|
|
6459
6750
|
do
|
|
6460
6751
|
try {
|
|
@@ -6511,7 +6802,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6511
6802
|
case 1:
|
|
6512
6803
|
throw Error("Root did not complete. This is a bug in React.");
|
|
6513
6804
|
case 2:
|
|
6514
|
-
commitRoot(
|
|
6805
|
+
commitRoot(
|
|
6806
|
+
root,
|
|
6807
|
+
workInProgressRootRecoverableErrors,
|
|
6808
|
+
workInProgressTransitions
|
|
6809
|
+
);
|
|
6515
6810
|
break;
|
|
6516
6811
|
case 3:
|
|
6517
6812
|
markRootSuspended$1(root, lanes);
|
|
@@ -6528,12 +6823,21 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6528
6823
|
break;
|
|
6529
6824
|
}
|
|
6530
6825
|
root.timeoutHandle = scheduleTimeout(
|
|
6531
|
-
commitRoot.bind(
|
|
6826
|
+
commitRoot.bind(
|
|
6827
|
+
null,
|
|
6828
|
+
root,
|
|
6829
|
+
workInProgressRootRecoverableErrors,
|
|
6830
|
+
workInProgressTransitions
|
|
6831
|
+
),
|
|
6532
6832
|
didTimeout
|
|
6533
6833
|
);
|
|
6534
6834
|
break;
|
|
6535
6835
|
}
|
|
6536
|
-
commitRoot(
|
|
6836
|
+
commitRoot(
|
|
6837
|
+
root,
|
|
6838
|
+
workInProgressRootRecoverableErrors,
|
|
6839
|
+
workInProgressTransitions
|
|
6840
|
+
);
|
|
6537
6841
|
break;
|
|
6538
6842
|
case 4:
|
|
6539
6843
|
markRootSuspended$1(root, lanes);
|
|
@@ -6564,15 +6868,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6564
6868
|
: 1960 * ceil(lanes / 1960)) - lanes;
|
|
6565
6869
|
if (10 < lanes) {
|
|
6566
6870
|
root.timeoutHandle = scheduleTimeout(
|
|
6567
|
-
commitRoot.bind(
|
|
6871
|
+
commitRoot.bind(
|
|
6872
|
+
null,
|
|
6873
|
+
root,
|
|
6874
|
+
workInProgressRootRecoverableErrors,
|
|
6875
|
+
workInProgressTransitions
|
|
6876
|
+
),
|
|
6568
6877
|
lanes
|
|
6569
6878
|
);
|
|
6570
6879
|
break;
|
|
6571
6880
|
}
|
|
6572
|
-
commitRoot(
|
|
6881
|
+
commitRoot(
|
|
6882
|
+
root,
|
|
6883
|
+
workInProgressRootRecoverableErrors,
|
|
6884
|
+
workInProgressTransitions
|
|
6885
|
+
);
|
|
6573
6886
|
break;
|
|
6574
6887
|
case 5:
|
|
6575
|
-
commitRoot(
|
|
6888
|
+
commitRoot(
|
|
6889
|
+
root,
|
|
6890
|
+
workInProgressRootRecoverableErrors,
|
|
6891
|
+
workInProgressTransitions
|
|
6892
|
+
);
|
|
6576
6893
|
break;
|
|
6577
6894
|
default:
|
|
6578
6895
|
throw Error("Unknown root exit status.");
|
|
@@ -6592,15 +6909,17 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
|
6592
6909
|
2 !== root &&
|
|
6593
6910
|
((errorRetryLanes = workInProgressRootRecoverableErrors),
|
|
6594
6911
|
(workInProgressRootRecoverableErrors = errorsFromFirstAttempt),
|
|
6595
|
-
null !== errorRetryLanes &&
|
|
6596
|
-
(null === workInProgressRootRecoverableErrors
|
|
6597
|
-
? (workInProgressRootRecoverableErrors = errorRetryLanes)
|
|
6598
|
-
: workInProgressRootRecoverableErrors.push.apply(
|
|
6599
|
-
workInProgressRootRecoverableErrors,
|
|
6600
|
-
errorRetryLanes
|
|
6601
|
-
)));
|
|
6912
|
+
null !== errorRetryLanes && queueRecoverableErrors(errorRetryLanes));
|
|
6602
6913
|
return root;
|
|
6603
6914
|
}
|
|
6915
|
+
function queueRecoverableErrors(errors) {
|
|
6916
|
+
null === workInProgressRootRecoverableErrors
|
|
6917
|
+
? (workInProgressRootRecoverableErrors = errors)
|
|
6918
|
+
: workInProgressRootRecoverableErrors.push.apply(
|
|
6919
|
+
workInProgressRootRecoverableErrors,
|
|
6920
|
+
errors
|
|
6921
|
+
);
|
|
6922
|
+
}
|
|
6604
6923
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6605
6924
|
for (var node = finishedWork; ; ) {
|
|
6606
6925
|
if (node.flags & 16384) {
|
|
@@ -6670,7 +6989,11 @@ function performSyncWorkOnRoot(root) {
|
|
|
6670
6989
|
throw Error("Root did not complete. This is a bug in React.");
|
|
6671
6990
|
root.finishedWork = root.current.alternate;
|
|
6672
6991
|
root.finishedLanes = lanes;
|
|
6673
|
-
commitRoot(
|
|
6992
|
+
commitRoot(
|
|
6993
|
+
root,
|
|
6994
|
+
workInProgressRootRecoverableErrors,
|
|
6995
|
+
workInProgressTransitions
|
|
6996
|
+
);
|
|
6674
6997
|
ensureRootIsScheduled(root, now());
|
|
6675
6998
|
return null;
|
|
6676
6999
|
}
|
|
@@ -6729,10 +7052,10 @@ function prepareFreshStack(root, lanes) {
|
|
|
6729
7052
|
workInProgressRootFatalError = null;
|
|
6730
7053
|
workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
6731
7054
|
workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null;
|
|
6732
|
-
if (null !==
|
|
6733
|
-
for (lanes = 0; lanes <
|
|
7055
|
+
if (null !== concurrentQueues) {
|
|
7056
|
+
for (lanes = 0; lanes < concurrentQueues.length; lanes++)
|
|
6734
7057
|
if (
|
|
6735
|
-
((timeoutHandle =
|
|
7058
|
+
((timeoutHandle = concurrentQueues[lanes]),
|
|
6736
7059
|
(interruptedWork = timeoutHandle.interleaved),
|
|
6737
7060
|
null !== interruptedWork)
|
|
6738
7061
|
) {
|
|
@@ -6746,7 +7069,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6746
7069
|
}
|
|
6747
7070
|
timeoutHandle.pending = interruptedWork;
|
|
6748
7071
|
}
|
|
6749
|
-
|
|
7072
|
+
concurrentQueues = null;
|
|
6750
7073
|
}
|
|
6751
7074
|
return root;
|
|
6752
7075
|
}
|
|
@@ -6842,7 +7165,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6842
7165
|
else {
|
|
6843
7166
|
var update = createUpdate(-1, 1);
|
|
6844
7167
|
update.tag = 2;
|
|
6845
|
-
enqueueUpdate(sourceFiber, update);
|
|
7168
|
+
enqueueUpdate(sourceFiber, update, 1);
|
|
6846
7169
|
}
|
|
6847
7170
|
sourceFiber.lanes |= 1;
|
|
6848
7171
|
}
|
|
@@ -6869,13 +7192,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6869
7192
|
);
|
|
6870
7193
|
}
|
|
6871
7194
|
}
|
|
6872
|
-
root = value;
|
|
7195
|
+
root = value = createCapturedValueAtFiber(value, sourceFiber);
|
|
6873
7196
|
4 !== workInProgressRootExitStatus &&
|
|
6874
7197
|
(workInProgressRootExitStatus = 2);
|
|
6875
7198
|
null === workInProgressRootConcurrentErrors
|
|
6876
7199
|
? (workInProgressRootConcurrentErrors = [root])
|
|
6877
7200
|
: workInProgressRootConcurrentErrors.push(root);
|
|
6878
|
-
value = createCapturedValue(value, sourceFiber);
|
|
6879
7201
|
root = returnFiber;
|
|
6880
7202
|
do {
|
|
6881
7203
|
switch (root.tag) {
|
|
@@ -6906,12 +7228,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6906
7228
|
root.flags |= 65536;
|
|
6907
7229
|
thrownValue &= -thrownValue;
|
|
6908
7230
|
root.lanes |= thrownValue;
|
|
6909
|
-
var update$
|
|
7231
|
+
var update$34 = createClassErrorUpdate(
|
|
6910
7232
|
root,
|
|
6911
7233
|
wakeable,
|
|
6912
7234
|
thrownValue
|
|
6913
7235
|
);
|
|
6914
|
-
enqueueCapturedUpdate(root, update$
|
|
7236
|
+
enqueueCapturedUpdate(root, update$34);
|
|
6915
7237
|
break a;
|
|
6916
7238
|
}
|
|
6917
7239
|
}
|
|
@@ -6950,8 +7272,8 @@ function renderRootSync(root, lanes) {
|
|
|
6950
7272
|
var prevExecutionContext = executionContext;
|
|
6951
7273
|
executionContext |= 2;
|
|
6952
7274
|
var prevDispatcher = pushDispatcher();
|
|
6953
|
-
(workInProgressRoot
|
|
6954
|
-
prepareFreshStack(root, lanes);
|
|
7275
|
+
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)
|
|
7276
|
+
(workInProgressTransitions = null), prepareFreshStack(root, lanes);
|
|
6955
7277
|
do
|
|
6956
7278
|
try {
|
|
6957
7279
|
workLoopSync();
|
|
@@ -7023,50 +7345,60 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7023
7345
|
} while (null !== completedWork);
|
|
7024
7346
|
0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
|
|
7025
7347
|
}
|
|
7026
|
-
function commitRoot(root, recoverableErrors) {
|
|
7348
|
+
function commitRoot(root, recoverableErrors, transitions) {
|
|
7027
7349
|
var previousUpdateLanePriority = currentUpdatePriority,
|
|
7028
7350
|
prevTransition = ReactCurrentBatchConfig$2.transition;
|
|
7029
7351
|
try {
|
|
7030
7352
|
(ReactCurrentBatchConfig$2.transition = null),
|
|
7031
7353
|
(currentUpdatePriority = 1),
|
|
7032
|
-
commitRootImpl(
|
|
7354
|
+
commitRootImpl(
|
|
7355
|
+
root,
|
|
7356
|
+
recoverableErrors,
|
|
7357
|
+
transitions,
|
|
7358
|
+
previousUpdateLanePriority
|
|
7359
|
+
);
|
|
7033
7360
|
} finally {
|
|
7034
7361
|
(ReactCurrentBatchConfig$2.transition = prevTransition),
|
|
7035
7362
|
(currentUpdatePriority = previousUpdateLanePriority);
|
|
7036
7363
|
}
|
|
7037
7364
|
return null;
|
|
7038
7365
|
}
|
|
7039
|
-
function commitRootImpl(
|
|
7366
|
+
function commitRootImpl(
|
|
7367
|
+
root,
|
|
7368
|
+
recoverableErrors,
|
|
7369
|
+
transitions,
|
|
7370
|
+
renderPriorityLevel
|
|
7371
|
+
) {
|
|
7040
7372
|
do flushPassiveEffects();
|
|
7041
7373
|
while (null !== rootWithPendingPassiveEffects);
|
|
7042
7374
|
if (0 !== (executionContext & 6))
|
|
7043
7375
|
throw Error("Should not already be working.");
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
if (null ===
|
|
7376
|
+
transitions = root.finishedWork;
|
|
7377
|
+
var lanes = root.finishedLanes;
|
|
7378
|
+
if (null === transitions) return null;
|
|
7047
7379
|
root.finishedWork = null;
|
|
7048
7380
|
root.finishedLanes = 0;
|
|
7049
|
-
if (
|
|
7381
|
+
if (transitions === root.current)
|
|
7050
7382
|
throw Error(
|
|
7051
7383
|
"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
|
|
7052
7384
|
);
|
|
7053
7385
|
root.callbackNode = null;
|
|
7054
7386
|
root.callbackPriority = 0;
|
|
7055
|
-
var remainingLanes =
|
|
7387
|
+
var remainingLanes = transitions.lanes | transitions.childLanes;
|
|
7056
7388
|
markRootFinished(root, remainingLanes);
|
|
7057
7389
|
root === workInProgressRoot &&
|
|
7058
7390
|
((workInProgress = workInProgressRoot = null),
|
|
7059
7391
|
(workInProgressRootRenderLanes = 0));
|
|
7060
|
-
(0 === (
|
|
7061
|
-
0 === (
|
|
7392
|
+
(0 === (transitions.subtreeFlags & 2064) &&
|
|
7393
|
+
0 === (transitions.flags & 2064)) ||
|
|
7062
7394
|
rootDoesHavePassiveEffects ||
|
|
7063
7395
|
((rootDoesHavePassiveEffects = !0),
|
|
7064
7396
|
scheduleCallback$1(NormalPriority, function() {
|
|
7065
7397
|
flushPassiveEffects();
|
|
7066
7398
|
return null;
|
|
7067
7399
|
}));
|
|
7068
|
-
remainingLanes = 0 !== (
|
|
7069
|
-
if (0 !== (
|
|
7400
|
+
remainingLanes = 0 !== (transitions.flags & 15990);
|
|
7401
|
+
if (0 !== (transitions.subtreeFlags & 15990) || remainingLanes) {
|
|
7070
7402
|
remainingLanes = ReactCurrentBatchConfig$2.transition;
|
|
7071
7403
|
ReactCurrentBatchConfig$2.transition = null;
|
|
7072
7404
|
var previousPriority = currentUpdatePriority;
|
|
@@ -7074,30 +7406,34 @@ function commitRootImpl(root, recoverableErrors, renderPriorityLevel) {
|
|
|
7074
7406
|
var prevExecutionContext = executionContext;
|
|
7075
7407
|
executionContext |= 4;
|
|
7076
7408
|
ReactCurrentOwner$2.current = null;
|
|
7077
|
-
commitBeforeMutationEffects(root,
|
|
7078
|
-
|
|
7079
|
-
root.current =
|
|
7080
|
-
commitLayoutEffects(
|
|
7409
|
+
commitBeforeMutationEffects(root, transitions);
|
|
7410
|
+
commitMutationEffectsOnFiber(transitions, root);
|
|
7411
|
+
root.current = transitions;
|
|
7412
|
+
commitLayoutEffects(transitions, root, lanes);
|
|
7081
7413
|
requestPaint();
|
|
7082
7414
|
executionContext = prevExecutionContext;
|
|
7083
7415
|
currentUpdatePriority = previousPriority;
|
|
7084
7416
|
ReactCurrentBatchConfig$2.transition = remainingLanes;
|
|
7085
|
-
} else root.current =
|
|
7417
|
+
} else root.current = transitions;
|
|
7086
7418
|
rootDoesHavePassiveEffects &&
|
|
7087
7419
|
((rootDoesHavePassiveEffects = !1),
|
|
7088
7420
|
(rootWithPendingPassiveEffects = root),
|
|
7089
7421
|
(pendingPassiveEffectsLanes = lanes));
|
|
7090
7422
|
remainingLanes = root.pendingLanes;
|
|
7091
7423
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
7092
|
-
onCommitRoot(
|
|
7424
|
+
onCommitRoot(transitions.stateNode, renderPriorityLevel);
|
|
7093
7425
|
ensureRootIsScheduled(root, now());
|
|
7094
7426
|
if (null !== recoverableErrors)
|
|
7095
7427
|
for (
|
|
7096
|
-
renderPriorityLevel = root.onRecoverableError,
|
|
7097
|
-
|
|
7098
|
-
|
|
7428
|
+
renderPriorityLevel = root.onRecoverableError, transitions = 0;
|
|
7429
|
+
transitions < recoverableErrors.length;
|
|
7430
|
+
transitions++
|
|
7099
7431
|
)
|
|
7100
|
-
|
|
7432
|
+
(lanes = recoverableErrors[transitions]),
|
|
7433
|
+
renderPriorityLevel(lanes.value, {
|
|
7434
|
+
componentStack: lanes.stack,
|
|
7435
|
+
digest: lanes.digest
|
|
7436
|
+
});
|
|
7101
7437
|
if (hasUncaughtError)
|
|
7102
7438
|
throw ((hasUncaughtError = !1),
|
|
7103
7439
|
(root = firstUncaughtError),
|
|
@@ -7261,11 +7597,10 @@ function flushPassiveEffects() {
|
|
|
7261
7597
|
return !1;
|
|
7262
7598
|
}
|
|
7263
7599
|
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
|
7264
|
-
sourceFiber =
|
|
7600
|
+
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
|
7265
7601
|
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
|
7266
|
-
enqueueUpdate(rootFiber, sourceFiber);
|
|
7602
|
+
rootFiber = enqueueUpdate(rootFiber, sourceFiber, 1);
|
|
7267
7603
|
sourceFiber = requestEventTime();
|
|
7268
|
-
rootFiber = markUpdateLaneFromFiberToRoot(rootFiber, 1);
|
|
7269
7604
|
null !== rootFiber &&
|
|
7270
7605
|
(markRootUpdated(rootFiber, 1, sourceFiber),
|
|
7271
7606
|
ensureRootIsScheduled(rootFiber, sourceFiber));
|
|
@@ -7295,18 +7630,18 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
|
|
7295
7630
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
7296
7631
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance)))
|
|
7297
7632
|
) {
|
|
7298
|
-
sourceFiber =
|
|
7633
|
+
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
|
7299
7634
|
sourceFiber = createClassErrorUpdate(
|
|
7300
7635
|
nearestMountedAncestor,
|
|
7301
7636
|
sourceFiber,
|
|
7302
7637
|
1
|
|
7303
7638
|
);
|
|
7304
|
-
enqueueUpdate(
|
|
7305
|
-
sourceFiber = requestEventTime();
|
|
7306
|
-
nearestMountedAncestor = markUpdateLaneFromFiberToRoot(
|
|
7639
|
+
nearestMountedAncestor = enqueueUpdate(
|
|
7307
7640
|
nearestMountedAncestor,
|
|
7641
|
+
sourceFiber,
|
|
7308
7642
|
1
|
|
7309
7643
|
);
|
|
7644
|
+
sourceFiber = requestEventTime();
|
|
7310
7645
|
null !== nearestMountedAncestor &&
|
|
7311
7646
|
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
|
7312
7647
|
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
|
@@ -7332,21 +7667,43 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
|
|
7332
7667
|
: (workInProgressRootPingedLanes |= pingedLanes));
|
|
7333
7668
|
ensureRootIsScheduled(root, wakeable);
|
|
7334
7669
|
}
|
|
7335
|
-
function
|
|
7336
|
-
|
|
7337
|
-
null !== retryCache && retryCache.delete(wakeable);
|
|
7338
|
-
wakeable = 0;
|
|
7339
|
-
0 === wakeable &&
|
|
7670
|
+
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
|
7671
|
+
0 === retryLane &&
|
|
7340
7672
|
(0 === (boundaryFiber.mode & 1)
|
|
7341
|
-
? (
|
|
7342
|
-
: ((
|
|
7673
|
+
? (retryLane = 1)
|
|
7674
|
+
: ((retryLane = nextRetryLane),
|
|
7343
7675
|
(nextRetryLane <<= 1),
|
|
7344
7676
|
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
|
7345
|
-
|
|
7346
|
-
boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber,
|
|
7677
|
+
var eventTime = requestEventTime();
|
|
7678
|
+
boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane);
|
|
7347
7679
|
null !== boundaryFiber &&
|
|
7348
|
-
(markRootUpdated(boundaryFiber,
|
|
7349
|
-
ensureRootIsScheduled(boundaryFiber,
|
|
7680
|
+
(markRootUpdated(boundaryFiber, retryLane, eventTime),
|
|
7681
|
+
ensureRootIsScheduled(boundaryFiber, eventTime));
|
|
7682
|
+
}
|
|
7683
|
+
function retryDehydratedSuspenseBoundary(boundaryFiber) {
|
|
7684
|
+
var suspenseState = boundaryFiber.memoizedState,
|
|
7685
|
+
retryLane = 0;
|
|
7686
|
+
null !== suspenseState && (retryLane = suspenseState.retryLane);
|
|
7687
|
+
retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
7688
|
+
}
|
|
7689
|
+
function resolveRetryWakeable(boundaryFiber, wakeable) {
|
|
7690
|
+
var retryLane = 0;
|
|
7691
|
+
switch (boundaryFiber.tag) {
|
|
7692
|
+
case 13:
|
|
7693
|
+
var retryCache = boundaryFiber.stateNode;
|
|
7694
|
+
var suspenseState = boundaryFiber.memoizedState;
|
|
7695
|
+
null !== suspenseState && (retryLane = suspenseState.retryLane);
|
|
7696
|
+
break;
|
|
7697
|
+
case 19:
|
|
7698
|
+
retryCache = boundaryFiber.stateNode;
|
|
7699
|
+
break;
|
|
7700
|
+
default:
|
|
7701
|
+
throw Error(
|
|
7702
|
+
"Pinged unknown suspense boundary type. This is probably a bug in React."
|
|
7703
|
+
);
|
|
7704
|
+
}
|
|
7705
|
+
null !== retryCache && retryCache.delete(wakeable);
|
|
7706
|
+
retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
7350
7707
|
}
|
|
7351
7708
|
var beginWork$1;
|
|
7352
7709
|
beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
@@ -7376,10 +7733,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7376
7733
|
switch (workInProgress.tag) {
|
|
7377
7734
|
case 2:
|
|
7378
7735
|
var Component = workInProgress.type;
|
|
7379
|
-
|
|
7380
|
-
((current.alternate = null),
|
|
7381
|
-
(workInProgress.alternate = null),
|
|
7382
|
-
(workInProgress.flags |= 2));
|
|
7736
|
+
resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress);
|
|
7383
7737
|
current = workInProgress.pendingProps;
|
|
7384
7738
|
var context = getMaskedContext(
|
|
7385
7739
|
workInProgress,
|
|
@@ -7433,10 +7787,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7433
7787
|
case 16:
|
|
7434
7788
|
Component = workInProgress.elementType;
|
|
7435
7789
|
a: {
|
|
7436
|
-
|
|
7437
|
-
((current.alternate = null),
|
|
7438
|
-
(workInProgress.alternate = null),
|
|
7439
|
-
(workInProgress.flags |= 2));
|
|
7790
|
+
resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress);
|
|
7440
7791
|
current = workInProgress.pendingProps;
|
|
7441
7792
|
context = Component._init;
|
|
7442
7793
|
Component = context(Component._payload);
|
|
@@ -7542,7 +7893,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7542
7893
|
return (
|
|
7543
7894
|
pushHostContext(workInProgress),
|
|
7544
7895
|
(Component = workInProgress.pendingProps.children),
|
|
7545
|
-
markRef
|
|
7896
|
+
markRef(current, workInProgress),
|
|
7546
7897
|
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7547
7898
|
workInProgress.child
|
|
7548
7899
|
);
|
|
@@ -7636,24 +7987,24 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7636
7987
|
}
|
|
7637
7988
|
} else
|
|
7638
7989
|
for (
|
|
7639
|
-
|
|
7640
|
-
null !==
|
|
7641
|
-
null !==
|
|
7990
|
+
hasContext = workInProgress.child,
|
|
7991
|
+
null !== hasContext && (hasContext.return = workInProgress);
|
|
7992
|
+
null !== hasContext;
|
|
7642
7993
|
|
|
7643
7994
|
) {
|
|
7644
|
-
var list =
|
|
7995
|
+
var list = hasContext.dependencies;
|
|
7645
7996
|
if (null !== list) {
|
|
7646
|
-
|
|
7997
|
+
newValue = hasContext.child;
|
|
7647
7998
|
for (
|
|
7648
7999
|
var dependency = list.firstContext;
|
|
7649
8000
|
null !== dependency;
|
|
7650
8001
|
|
|
7651
8002
|
) {
|
|
7652
8003
|
if (dependency.context === Component) {
|
|
7653
|
-
if (1 ===
|
|
8004
|
+
if (1 === hasContext.tag) {
|
|
7654
8005
|
dependency = createUpdate(-1, renderLanes & -renderLanes);
|
|
7655
8006
|
dependency.tag = 2;
|
|
7656
|
-
var updateQueue =
|
|
8007
|
+
var updateQueue = hasContext.updateQueue;
|
|
7657
8008
|
if (null !== updateQueue) {
|
|
7658
8009
|
updateQueue = updateQueue.shared;
|
|
7659
8010
|
var pending = updateQueue.pending;
|
|
@@ -7664,11 +8015,11 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7664
8015
|
updateQueue.pending = dependency;
|
|
7665
8016
|
}
|
|
7666
8017
|
}
|
|
7667
|
-
|
|
7668
|
-
dependency =
|
|
8018
|
+
hasContext.lanes |= renderLanes;
|
|
8019
|
+
dependency = hasContext.alternate;
|
|
7669
8020
|
null !== dependency && (dependency.lanes |= renderLanes);
|
|
7670
8021
|
scheduleContextWorkOnParentPath(
|
|
7671
|
-
|
|
8022
|
+
hasContext.return,
|
|
7672
8023
|
renderLanes,
|
|
7673
8024
|
workInProgress
|
|
7674
8025
|
);
|
|
@@ -7677,29 +8028,43 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7677
8028
|
}
|
|
7678
8029
|
dependency = dependency.next;
|
|
7679
8030
|
}
|
|
7680
|
-
} else
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
?
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
8031
|
+
} else if (10 === hasContext.tag)
|
|
8032
|
+
newValue =
|
|
8033
|
+
hasContext.type === workInProgress.type
|
|
8034
|
+
? null
|
|
8035
|
+
: hasContext.child;
|
|
8036
|
+
else if (18 === hasContext.tag) {
|
|
8037
|
+
newValue = hasContext.return;
|
|
8038
|
+
if (null === newValue)
|
|
8039
|
+
throw Error(
|
|
8040
|
+
"We just came from a parent so we must have had a parent. This is a bug in React."
|
|
8041
|
+
);
|
|
8042
|
+
newValue.lanes |= renderLanes;
|
|
8043
|
+
list = newValue.alternate;
|
|
8044
|
+
null !== list && (list.lanes |= renderLanes);
|
|
8045
|
+
scheduleContextWorkOnParentPath(
|
|
8046
|
+
newValue,
|
|
8047
|
+
renderLanes,
|
|
8048
|
+
workInProgress
|
|
8049
|
+
);
|
|
8050
|
+
newValue = hasContext.sibling;
|
|
8051
|
+
} else newValue = hasContext.child;
|
|
8052
|
+
if (null !== newValue) newValue.return = hasContext;
|
|
7688
8053
|
else
|
|
7689
|
-
for (
|
|
7690
|
-
if (
|
|
7691
|
-
|
|
8054
|
+
for (newValue = hasContext; null !== newValue; ) {
|
|
8055
|
+
if (newValue === workInProgress) {
|
|
8056
|
+
newValue = null;
|
|
7692
8057
|
break;
|
|
7693
8058
|
}
|
|
7694
|
-
|
|
7695
|
-
if (null !==
|
|
7696
|
-
|
|
7697
|
-
|
|
8059
|
+
hasContext = newValue.sibling;
|
|
8060
|
+
if (null !== hasContext) {
|
|
8061
|
+
hasContext.return = newValue.return;
|
|
8062
|
+
newValue = hasContext;
|
|
7698
8063
|
break;
|
|
7699
8064
|
}
|
|
7700
|
-
|
|
8065
|
+
newValue = newValue.return;
|
|
7701
8066
|
}
|
|
7702
|
-
|
|
8067
|
+
hasContext = newValue;
|
|
7703
8068
|
}
|
|
7704
8069
|
reconcileChildren(
|
|
7705
8070
|
current,
|
|
@@ -7750,10 +8115,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7750
8115
|
workInProgress.elementType === Component
|
|
7751
8116
|
? context
|
|
7752
8117
|
: resolveDefaultProps(Component, context)),
|
|
7753
|
-
|
|
7754
|
-
((current.alternate = null),
|
|
7755
|
-
(workInProgress.alternate = null),
|
|
7756
|
-
(workInProgress.flags |= 2)),
|
|
8118
|
+
resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress),
|
|
7757
8119
|
(workInProgress.tag = 1),
|
|
7758
8120
|
isContextProvider(Component)
|
|
7759
8121
|
? ((current = !0), pushContextProvider(workInProgress))
|
|
@@ -7934,7 +8296,7 @@ function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
|
|
|
7934
8296
|
pendingProps = createFiber(22, pendingProps, key, mode);
|
|
7935
8297
|
pendingProps.elementType = REACT_OFFSCREEN_TYPE;
|
|
7936
8298
|
pendingProps.lanes = lanes;
|
|
7937
|
-
pendingProps.stateNode = {};
|
|
8299
|
+
pendingProps.stateNode = { isHidden: !1 };
|
|
7938
8300
|
return pendingProps;
|
|
7939
8301
|
}
|
|
7940
8302
|
function createFiberFromText(content, mode, lanes) {
|
|
@@ -8056,9 +8418,10 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
8056
8418
|
container.payload = { element: element };
|
|
8057
8419
|
callback = void 0 === callback ? null : callback;
|
|
8058
8420
|
null !== callback && (container.callback = callback);
|
|
8059
|
-
enqueueUpdate(current, container);
|
|
8060
|
-
|
|
8061
|
-
|
|
8421
|
+
element = enqueueUpdate(current, container, lane);
|
|
8422
|
+
null !== element &&
|
|
8423
|
+
(scheduleUpdateOnFiber(element, current, lane, eventTime),
|
|
8424
|
+
entangleTransitions(element, current, lane));
|
|
8062
8425
|
return lane;
|
|
8063
8426
|
}
|
|
8064
8427
|
function emptyFindFiberByHostInstance() {
|
|
@@ -8100,10 +8463,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8100
8463
|
}
|
|
8101
8464
|
};
|
|
8102
8465
|
var roots = new Map(),
|
|
8103
|
-
devToolsConfig$jscomp$
|
|
8466
|
+
devToolsConfig$jscomp$inline_979 = {
|
|
8104
8467
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8105
8468
|
bundleType: 0,
|
|
8106
|
-
version: "18.
|
|
8469
|
+
version: "18.2.0-next-9e3b772b8-20220608",
|
|
8107
8470
|
rendererPackageName: "react-native-renderer",
|
|
8108
8471
|
rendererConfig: {
|
|
8109
8472
|
getInspectorDataForViewTag: function() {
|
|
@@ -8118,11 +8481,11 @@ var roots = new Map(),
|
|
|
8118
8481
|
}.bind(null, findNodeHandle)
|
|
8119
8482
|
}
|
|
8120
8483
|
};
|
|
8121
|
-
var internals$jscomp$
|
|
8122
|
-
bundleType: devToolsConfig$jscomp$
|
|
8123
|
-
version: devToolsConfig$jscomp$
|
|
8124
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8125
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8484
|
+
var internals$jscomp$inline_1247 = {
|
|
8485
|
+
bundleType: devToolsConfig$jscomp$inline_979.bundleType,
|
|
8486
|
+
version: devToolsConfig$jscomp$inline_979.version,
|
|
8487
|
+
rendererPackageName: devToolsConfig$jscomp$inline_979.rendererPackageName,
|
|
8488
|
+
rendererConfig: devToolsConfig$jscomp$inline_979.rendererConfig,
|
|
8126
8489
|
overrideHookState: null,
|
|
8127
8490
|
overrideHookStateDeletePath: null,
|
|
8128
8491
|
overrideHookStateRenamePath: null,
|
|
@@ -8138,26 +8501,26 @@ var internals$jscomp$inline_1217 = {
|
|
|
8138
8501
|
return null === fiber ? null : fiber.stateNode;
|
|
8139
8502
|
},
|
|
8140
8503
|
findFiberByHostInstance:
|
|
8141
|
-
devToolsConfig$jscomp$
|
|
8504
|
+
devToolsConfig$jscomp$inline_979.findFiberByHostInstance ||
|
|
8142
8505
|
emptyFindFiberByHostInstance,
|
|
8143
8506
|
findHostInstancesForRefresh: null,
|
|
8144
8507
|
scheduleRefresh: null,
|
|
8145
8508
|
scheduleRoot: null,
|
|
8146
8509
|
setRefreshHandler: null,
|
|
8147
8510
|
getCurrentFiber: null,
|
|
8148
|
-
reconcilerVersion: "18.
|
|
8511
|
+
reconcilerVersion: "18.2.0-next-9e3b772b8-20220608"
|
|
8149
8512
|
};
|
|
8150
8513
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8151
|
-
var hook$jscomp$
|
|
8514
|
+
var hook$jscomp$inline_1248 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8152
8515
|
if (
|
|
8153
|
-
!hook$jscomp$
|
|
8154
|
-
hook$jscomp$
|
|
8516
|
+
!hook$jscomp$inline_1248.isDisabled &&
|
|
8517
|
+
hook$jscomp$inline_1248.supportsFiber
|
|
8155
8518
|
)
|
|
8156
8519
|
try {
|
|
8157
|
-
(rendererID = hook$jscomp$
|
|
8158
|
-
internals$jscomp$
|
|
8520
|
+
(rendererID = hook$jscomp$inline_1248.inject(
|
|
8521
|
+
internals$jscomp$inline_1247
|
|
8159
8522
|
)),
|
|
8160
|
-
(injectedHook = hook$jscomp$
|
|
8523
|
+
(injectedHook = hook$jscomp$inline_1248);
|
|
8161
8524
|
} catch (err) {}
|
|
8162
8525
|
}
|
|
8163
8526
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
|
@@ -8212,7 +8575,8 @@ exports.render = function(element, containerTag, callback) {
|
|
|
8212
8575
|
element: null,
|
|
8213
8576
|
isDehydrated: !1,
|
|
8214
8577
|
cache: null,
|
|
8215
|
-
transitions: null
|
|
8578
|
+
transitions: null,
|
|
8579
|
+
pendingSuspenseBoundaries: null
|
|
8216
8580
|
};
|
|
8217
8581
|
initializeUpdateQueue(JSCompiler_inline_result);
|
|
8218
8582
|
roots.set(containerTag, root);
|