diff --git a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js @@ -263,7 +263,7 @@ // Copied from // react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js declare type Stringish = string; - declare type EdgeInsetsProp = $ReadOnly<$Partial>; + declare type EdgeInsetsProp = $ReadOnly>; declare type TouchableWithoutFeedbackProps = $ReadOnly<{| accessibilityActions?: ?$ReadOnlyArray, accessibilityElementsHidden?: ?boolean, @@ -439,8 +439,6 @@ declare type $IsA = X extends Y ? true : false; declare type $IsUndefined = $IsA; - declare type $Partial = $ReadOnly<$Rest>; - // If { ...T, ... } counts as a T, then we're inexact declare type $IsExact = { ...T, ... } extends T ? false : true; @@ -792,8 +790,8 @@ declare type PartialWithMergeProperty = $If< $IsExact, - { ...$Partial, +merge: true }, - { ...$Partial, +merge: true, ... }, + { ...Partial, +merge: true }, + { ...Partial, +merge: true, ... }, >; declare type EitherExactOrPartialWithMergeProperty = @@ -895,7 +893,7 @@ > = $If< $IsUndefined, empty, - $Partial<$NonMaybeType>, + Partial<$NonMaybeType>, >; declare export type NavigationProp< @@ -910,7 +908,7 @@ State, EventMap, >>, - +setOptions: (options: $Partial) => void, + +setOptions: (options: Partial) => void, +setParams: (params: SetParamsInput) => void, ... }; @@ -966,7 +964,7 @@ RouteProp, NavProp, >, - +initialParams?: $Partial, + +initialParams?: Partial, +getId?: ({ +params: ParamList[RouteName], }) => string | void, @@ -1311,13 +1309,13 @@ +layout: {| +width: number, +height: number |}, |}; - declare export type HeaderButtonProps = $Partial<{| + declare export type HeaderButtonProps = Partial<{| +tintColor: string, +pressColor: string, +pressOpacity: number, |}>; - declare export type HeaderLeftButtonProps = $Partial<{| + declare export type HeaderLeftButtonProps = Partial<{| ...HeaderButtonProps, +labelVisible: boolean, |}>; @@ -1338,7 +1336,7 @@ NavHeaderProps, NavHeaderLeftProps, NavHeaderRightProps, - > = $Partial<{| + > = Partial<{| +header: NavHeaderProps => React.Node, +headerShown: boolean, +headerTitle: string | ( HeaderTitleInputProps => React.Node), @@ -1376,12 +1374,12 @@ +styleInterpolator: StackHeaderStyleInterpolator, |}; - declare export type StackHeaderButtonProps = $Partial<{| + declare export type StackHeaderButtonProps = Partial<{| ...HeaderButtonProps, +canGoBack: boolean, |}>; - declare export type StackHeaderLeftButtonProps = $Partial<{| + declare export type StackHeaderLeftButtonProps = Partial<{| ...StackHeaderButtonProps, +onPress: (() => void), +backImage: (props: {| tintColor: string |}) => React.Node, @@ -1398,7 +1396,7 @@ +style: ViewStyleProp, |}>; - declare export type StackOptions = $Partial<{| + declare export type StackOptions = Partial<{| +title: string, +cardShadowEnabled: boolean, +cardOverlayEnabled: boolean, @@ -1409,7 +1407,7 @@ +gestureEnabled: boolean, +gestureResponseDistance: number, +gestureVelocityImpact: number, - +safeAreaInsets: $Partial, + +safeAreaInsets: Partial, +keyboardHandlingEnabled: boolean, +presentation: 'card' | 'modal' | 'transparentModal', // Transition @@ -1541,7 +1539,7 @@ >, |}; - declare export type BottomTabOptions = $Partial<{| + declare export type BottomTabOptions = Partial<{| +title: string, +tabBarLabel: | string @@ -1555,7 +1553,7 @@ +tabBarBadgeStyle: TextStyleProp, +tabBarAccessibilityLabel: string, +tabBarTestID: string, - +tabBarVisibilityAnimationConfig: $Partial<{| + +tabBarVisibilityAnimationConfig: Partial<{| +show: TabBarVisibilityAnimationConfig, +hide: TabBarVisibilityAnimationConfig, |}>, @@ -1645,7 +1643,7 @@ declare export type BottomTabNavigationConfig = {| +tabBar?: BottomTabBarProps => React.Node, - +safeAreaInsets?: $Partial, + +safeAreaInsets?: Partial, +detachInactiveScreens?: boolean, |}; @@ -1669,7 +1667,7 @@ * Material bottom tab options */ - declare export type MaterialBottomTabOptions = $Partial<{| + declare export type MaterialBottomTabOptions = Partial<{| +title: string, +tabBarColor: string, +tabBarLabel: string, @@ -1824,7 +1822,7 @@ * Material top tab options */ - declare export type MaterialTopTabOptions = $Partial<{| + declare export type MaterialTopTabOptions = Partial<{| +title: string, +tabBarLabel: | string @@ -1904,14 +1902,14 @@ +swipeEnabled: boolean, +swipeVelocityImpact?: number, +springVelocityScale?: number, - +springConfig: $Partial<{| + +springConfig: Partial<{| +damping: number, +mass: number, +stiffness: number, +restSpeedThreshold: number, +restDisplacementThreshold: number, |}>, - +timingConfig: $Partial<{| + +timingConfig: Partial<{| +duration: number, |}>, |}; @@ -2019,10 +2017,10 @@ |}; declare export type MaterialTopTabNavigationConfig = {| - ...$Partial, + ...Partial, +position?: any, // Reanimated.Value +tabBarPosition?: 'top' | 'bottom', - +initialLayout?: $Partial<{| +width: number, +height: number |}>, + +initialLayout?: Partial<{| +width: number, +height: number |}>, +lazyPreloadDistance?: number, +removeClippedSubviews?: boolean, +sceneContainerStyle?: ViewStyleProp, @@ -2053,7 +2051,7 @@ * Drawer options */ - declare export type DrawerOptions = $Partial<{| + declare export type DrawerOptions = Partial<{| +title: string, +lazy: boolean, +drawerLabel: