diff --git a/keyserver/flow-typed/npm/react-router_v5.x.x.js b/keyserver/flow-typed/npm/react-router_v5.x.x.js --- a/keyserver/flow-typed/npm/react-router_v5.x.x.js +++ b/keyserver/flow-typed/npm/react-router_v5.x.x.js @@ -70,7 +70,7 @@ basename?: string, location?: string | Location, context: StaticRouterContext, - children?: React$Node, + children?: React.Node, ... }> {} @@ -79,13 +79,13 @@ initialIndex?: number, getUserConfirmation?: GetUserConfirmation, keyLength?: number, - children?: React$Node, + children?: React.Node, ... }> {} declare export class Router extends React.Component<{ history: RouterHistory, - children?: React$Node, + children?: React.Node, ... }> {} @@ -106,8 +106,8 @@ declare export class Route extends React.Component<{| component?: React.ComponentType, - render?: (router: ContextRouter) => React$Node, - children?: React.ComponentType | React$Node, + render?: (router: ContextRouter) => React.Node, + children?: React$ComponentType | React.Node, path?: string | Array, exact?: boolean, strict?: boolean, @@ -116,7 +116,7 @@ |}> {} declare export class Switch extends React.Component<{| - children?: React$Node, + children?: React.Node, location?: Location |}> {} diff --git a/landing/flow-typed/npm/react-router-dom_v5.x.x.js b/landing/flow-typed/npm/react-router-dom_v5.x.x.js --- a/landing/flow-typed/npm/react-router-dom_v5.x.x.js +++ b/landing/flow-typed/npm/react-router-dom_v5.x.x.js @@ -7,21 +7,21 @@ forceRefresh?: boolean, getUserConfirmation?: GetUserConfirmation, keyLength?: number, - children?: React$Node + children?: React.Node |}> declare export var HashRouter: React.ComponentType<{| basename?: string, getUserConfirmation?: GetUserConfirmation, hashType?: "slash" | "noslash" | "hashbang", - children?: React$Node + children?: React.Node |}> declare export var Link: React.ComponentType<{ +className?: string, +to: string | LocationShape, +replace?: boolean, - +children?: React$Node, + +children?: React.Node, ... }> @@ -32,7 +32,7 @@ +activeStyle?: { +[string]: mixed, ... }, +style?: { +[string]: mixed, ... }, +isActive?: (match: Match, location: Location) => boolean, - +children?: React$Node, + +children?: React.Node, +exact?: boolean, +strict?: boolean, ... @@ -112,7 +112,7 @@ basename?: string, location?: string | Location, context: StaticRouterContext, - children?: React$Node + children?: React.Node |}> declare export var MemoryRouter: React.ComponentType<{| @@ -120,12 +120,12 @@ initialIndex?: number, getUserConfirmation?: GetUserConfirmation, keyLength?: number, - children?: React$Node + children?: React.Node |}> declare export var Router: React.ComponentType<{| history: RouterHistory, - children?: React$Node + children?: React.Node |}> declare export var Prompt: React.ComponentType<{| @@ -143,8 +143,8 @@ declare export var Route: React.ComponentType<{| component?: React.ComponentType, - render?: (router: ContextRouter) => React$Node, - children?: React.ComponentType | React$Node, + render?: (router: ContextRouter) => React.Node, + children?: React.ComponentType | React.Node, path?: string | Array, exact?: boolean, strict?: boolean, @@ -153,7 +153,7 @@ |}> declare export var Switch: React.ComponentType<{| - children?: React$Node, + children?: React.Node, location?: Location |}> diff --git a/landing/flow-typed/npm/react-router_v5.x.x.js b/landing/flow-typed/npm/react-router_v5.x.x.js --- a/landing/flow-typed/npm/react-router_v5.x.x.js +++ b/landing/flow-typed/npm/react-router_v5.x.x.js @@ -70,7 +70,7 @@ basename?: string, location?: string | Location, context: StaticRouterContext, - children?: React$Node, + children?: React.Node, ... }> {} @@ -79,13 +79,13 @@ initialIndex?: number, getUserConfirmation?: GetUserConfirmation, keyLength?: number, - children?: React$Node, + children?: React.Node, ... }> {} declare export class Router extends React.Component<{ history: RouterHistory, - children?: React$Node, + children?: React.Node, ... }> {} @@ -106,8 +106,8 @@ declare export class Route extends React.Component<{| component?: React.ComponentType, - render?: (router: ContextRouter) => React$Node, - children?: React.ComponentType | React$Node, + render?: (router: ContextRouter) => React.Node, + children?: React.ComponentType | React.Node, path?: string | Array, exact?: boolean, strict?: boolean, @@ -116,7 +116,7 @@ |}> {} declare export class Switch extends React.Component<{| - children?: React$Node, + children?: React.Node, location?: Location |}> {} diff --git a/lib/flow-typed/environments/jsx.js b/lib/flow-typed/environments/jsx.js --- a/lib/flow-typed/environments/jsx.js +++ b/lib/flow-typed/environments/jsx.js @@ -353,7 +353,7 @@ instance: HTMLElement, props: { +[key: string]: any, - +children?: React$Node, + +children?: React.Node, ... }, ... @@ -363,7 +363,7 @@ instance: Element, props: { +[key: string]: any, - +children?: React$Node, + +children?: React.Node, ... }, ... @@ -853,7 +853,7 @@ // Special props provided by React type ReactDOM$ReactSpecificProps = {| - children?: React$Node, + children?: React.Node, dangerouslySetInnerHTML?: {| __html: ReactDOM$UserVisibleString, |}, diff --git a/lib/flow-typed/npm/react-redux_v7.x.x.js b/lib/flow-typed/npm/react-redux_v7.x.x.js --- a/lib/flow-typed/npm/react-redux_v7.x.x.js +++ b/lib/flow-typed/npm/react-redux_v7.x.x.js @@ -259,7 +259,7 @@ declare export class Provider extends React.Component<{ store: Store, - children?: React$Node, + children?: React.Node, ... }> {} diff --git a/lib/shared/markdown.js b/lib/shared/markdown.js --- a/lib/shared/markdown.js +++ b/lib/shared/markdown.js @@ -46,7 +46,7 @@ ) => ?Capture); export type ReactElement = React$Element; -type ReactElements = React$Node; +type ReactElements = React.Node; export type Output = (node: ASTNode, state?: ?State) => Result; diff --git a/native/flow-typed/npm/@expo/react-native-action-sheet_vx.x.x.js b/native/flow-typed/npm/@expo/react-native-action-sheet_vx.x.x.js --- a/native/flow-typed/npm/@expo/react-native-action-sheet_vx.x.x.js +++ b/native/flow-typed/npm/@expo/react-native-action-sheet_vx.x.x.js @@ -30,7 +30,7 @@ declare export type ActionSheetOptions = {| ...ActionSheetIOSOptions, - +icons?: $ReadOnlyArray, + +icons?: $ReadOnlyArray, +tintIcons?: boolean, +textStyle?: TextStyleProp, +titleTextStyle?: TextStyleProp, @@ -55,7 +55,7 @@ declare export function useActionSheet(): ActionSheetProps; declare export type ActionSheetProviderProps = {| - +children: React$Node, + +children: React.Node, +useNativeDriver?: boolean, +useCustomActionSheet?: boolean, |}; 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 @@ -276,7 +276,7 @@ accessibilityValue?: ?AccessibilityValue, accessibilityViewIsModal?: ?boolean, accessible?: ?boolean, - children?: ?React$Node, + children?: ?React.Node, delayLongPress?: ?number, delayPressIn?: ?number, delayPressOut?: ?number, @@ -398,7 +398,7 @@ shouldCancelWhenOutside?: boolean, minPointers?: number, hitSlop?: HitSlop, - children?: React$Node, + children?: React.Node, |}>; declare export type PanGestureHandlerProps = $GestureHandlerProps< @@ -1035,7 +1035,7 @@ +children: ({| +route: RouteProp, +navigation: NavProp, - |}) => React$Node, + |}) => React.Node, |}; declare export type ScreenComponent< @@ -1060,7 +1060,7 @@ State, ScreenOptions, EventMap, - >) => React$Node; + >) => React.Node; declare type ScreenOptionsProps< ScreenOptions: {...}, @@ -1083,7 +1083,7 @@ declare export type ExtraNavigatorPropsBase = { ...$Exact, +id?: string, - +children?: React$Node, + +children?: React.Node, ... }; declare export type NavigatorProps< @@ -1147,7 +1147,7 @@ >>>, +Group: React.ComponentType<{| ...ScreenOptionsProps, NavHelpers>, - +children: React$Node, + +children: React.Node, +navigationKey?: string, |}>, |}; @@ -1181,7 +1181,7 @@ NavHelpers, ScreenOptions: {...} = {...}, > = {| - +render: () => React$Node, + +render: () => React.Node, +options: $ReadOnly, +navigation: NavHelpers, |}; @@ -1353,19 +1353,19 @@ NavHeaderLeftProps, NavHeaderRightProps, > = $Partial<{| - +header: NavHeaderProps => React$Node, + +header: NavHeaderProps => React.Node, +headerShown: boolean, - +headerTitle: string | ( HeaderTitleInputProps => React$Node), + +headerTitle: string | ( HeaderTitleInputProps => React.Node), +headerTitleAlign: 'left' | 'center', +headerTitleStyle: AnimatedTextStyleProp, +headerTitleContainerStyle: AnimatedViewStyleProp, +headerTintColor: string, +headerTitleAllowFontScaling: boolean, - +headerLeft: null | (NavHeaderLeftProps => React$Node), + +headerLeft: null | (NavHeaderLeftProps => React.Node), +headerLeftContainerStyle: AnimatedViewStyleProp, - +headerRight: NavHeaderRightProps => React$Node, + +headerRight: NavHeaderRightProps => React.Node, +headerRightContainerStyle: AnimatedViewStyleProp, - +headerBackground: ({| style: AnimatedViewStyleProp |}) => React$Node, + +headerBackground: ({| style: AnimatedViewStyleProp |}) => React.Node, +headerStyle: AnimatedViewStyleProp, +headerTransparent: boolean, +headerStatusBarHeight: number, @@ -1398,7 +1398,7 @@ declare export type StackHeaderLeftButtonProps = $Partial<{| ...StackHeaderButtonProps, +onPress: (() => void), - +backImage: (props: {| tintColor: string |}) => React$Node, + +backImage: (props: {| tintColor: string |}) => React.Node, +label: string, +truncatedLabel: string, +labelVisible: boolean, @@ -1416,7 +1416,7 @@ +title: string, +cardShadowEnabled: boolean, +cardOverlayEnabled: boolean, - +cardOverlay: {| style: ViewStyleProp |} => React$Node, + +cardOverlay: {| style: ViewStyleProp |} => React.Node, +cardStyle: ViewStyleProp, +animationEnabled: boolean, +animationTypeForReplace: 'push' | 'pop', @@ -1535,7 +1535,7 @@ {| onPress?: ?(event: PressEvent) => mixed |}, >, +to?: string, - +children: React$Node, + +children: React.Node, +onPress?: (MouseEvent | PressEvent) => void, |}; @@ -1559,12 +1559,12 @@ +title: string, +tabBarLabel: | string - | ({| focused: boolean, color: string |}) => React$Node, + | ({| focused: boolean, color: string |}) => React.Node, +tabBarIcon: ({| focused: boolean, color: string, size: number, - |}) => React$Node, + |}) => React.Node, +tabBarBadge: number | string, +tabBarBadgeStyle: TextStyleProp, +tabBarAccessibilityLabel: string, @@ -1573,7 +1573,7 @@ +show: TabBarVisibilityAnimationConfig, +hide: TabBarVisibilityAnimationConfig, |}>, - +tabBarButton: BottomTabBarButtonProps => React$Node, + +tabBarButton: BottomTabBarButtonProps => React.Node, +tabBarHideOnKeyboard: boolean, +tabBarActiveTintColor: string, +tabBarInactiveTintColor: string, @@ -1658,7 +1658,7 @@ declare export type BottomTabBarProps = BottomTabNavigationBuilderResult; declare export type BottomTabNavigationConfig = {| - +tabBar?: BottomTabBarProps => React$Node, + +tabBar?: BottomTabBarProps => React.Node, +safeAreaInsets?: $Partial, +detachInactiveScreens?: boolean, |}; @@ -1689,7 +1689,7 @@ +tabBarLabel: string, +tabBarIcon: | string - | ({| +focused: boolean, +color: string |}) => React$Node, + | ({| +focused: boolean, +color: string |}) => React.Node, +tabBarBadge: boolean | number | string, +tabBarAccessibilityLabel: string, +tabBarTestID: string, @@ -1798,7 +1798,7 @@ ...TouchableWithoutFeedbackProps, +key: string, +route: PaperRoute, - +children: React$Node, + +children: React.Node, +borderless?: boolean, +centered?: boolean, +rippleColor?: string, @@ -1807,7 +1807,7 @@ declare export type MaterialBottomTabNavigationConfig = {| +shifting?: boolean, +labeled?: boolean, - +renderTouchable?: PaperTouchableProps => React$Node, + +renderTouchable?: PaperTouchableProps => React.Node, +activeColor?: string, +inactiveColor?: string, +sceneAnimationEnabled?: boolean, @@ -1842,8 +1842,8 @@ +title: string, +tabBarLabel: | string - | ({| +focused: boolean, +color: string |}) => React$Node, - +tabBarIcon: ({| +focused: boolean, +color: string |}) => React$Node, + | ({| +focused: boolean, +color: string |}) => React.Node, + +tabBarIcon: ({| +focused: boolean, +color: string |}) => React.Node, +tabBarAccessibilityLabel: string, +tabBarTestID: string, +tabBarActiveTintColor: string, @@ -1862,10 +1862,10 @@ +tabBarIndicatorContainerStyle: ViewStyleProp, +tabBarContentContainerStyle: ViewStyleProp, +tabBarStyle: ViewStyleProp, - +tabBarBadge: () => React$Node, - +tabBarIndicator: MaterialTopTabBarIndicatorProps => React$Node, + +tabBarBadge: () => React.Node, + +tabBarIndicator: MaterialTopTabBarIndicatorProps => React.Node, +lazy: boolean, - +lazyPlaceholder: ({| +route: Route<> |}) => React$Node, + +lazyPlaceholder: ({| +route: Route<> |}) => React.Node, |}>; /** @@ -1942,9 +1942,9 @@ +addListener: (type: 'enter', listener: number => void) => void, +removeListener: (type: 'enter', listener: number => void) => void, +position: any, // Reanimated.Node - +render: React$Node => React$Node, + +render: React.Node => React.Node, +jumpTo: string => void, - |}) => React$Node, + |}) => React.Node, +gestureHandlerProps: PanGestureHandlerProps, |}; @@ -1981,15 +1981,15 @@ +allowFontScaling?: boolean, +style?: TextStyleProp, ... - }) => React$Node, + }) => React.Node, +icon?: (props: { +route: T; +focused: boolean, +color: string, +size: number, ... - }) => React$Node, - +badge?: (props: { +route: T, ... }) => React$Node, + }) => React.Node, + +badge?: (props: { +route: T, ... }) => React.Node, |}; declare export type OpaqueColorValue = Symbol & {| +__TYPE__: 'Color' |}; @@ -2029,7 +2029,7 @@ +jumpTo: string => void, +renderTabBarItem: ( props: $ReadOnly<{ ...TabBarItemProps, +key: string, ... }>, - ) => React$Node, + ) => React.Node, |}; declare export type MaterialTopTabNavigationConfig = {| @@ -2042,8 +2042,8 @@ +sceneContainerStyle?: ViewStyleProp, +style?: ViewStyleProp, +gestureHandlerProps?: PanGestureHandlerProps, - +pager?: MaterialTopTabPagerProps => React$Node, - +tabBar?: MaterialTopTabBarProps> => React$Node, + +pager?: MaterialTopTabPagerProps => React.Node, + +tabBar?: MaterialTopTabBarProps> => React.Node, |}; declare export type ExtraMaterialTopTabNavigatorProps = {| @@ -2072,12 +2072,12 @@ +lazy: boolean, +drawerLabel: | string - | ({| +color: string, +focused: boolean |}) => React$Node, + | ({| +color: string, +focused: boolean |}) => React.Node, +drawerIcon: ({| +color: string, +size: number, +focused: boolean, - |}) => React$Node, + |}) => React.Node, +drawerActiveTintColor: string, +drawerActiveBackgroundColor: string, +drawerInactiveTintColor: string, @@ -2167,7 +2167,7 @@ |}; declare export type DrawerNavigationConfig = {| - +drawerContent?: DrawerNavigationBuilderResult => React$Node, + +drawerContent?: DrawerNavigationBuilderResult => React.Node, +detachInactiveScreens?: boolean, +useLegacyImplementation?: boolean, |}; @@ -2193,7 +2193,7 @@ */ declare export type BaseNavigationContainerProps = {| - +children: React$Node, + +children: React.Node, +initialState?: PossiblyStaleNavigationState, +onStateChange?: (state: ?PossiblyStaleNavigationState) => void, +independent?: boolean, @@ -2301,7 +2301,7 @@ ...BaseNavigationContainerProps, +theme?: Theme, +linking?: LinkingOptions, - +fallback?: React$Node, + +fallback?: React.Node, +onReady?: () => mixed, |} >; diff --git a/native/flow-typed/npm/@react-navigation/drawer_v6.x.x.js b/native/flow-typed/npm/@react-navigation/drawer_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/drawer_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/drawer_v6.x.x.js @@ -44,13 +44,13 @@ declare export type DrawerItemProps = {| +label: | string - | ({| +color: string, +focused: boolean |}) => React$Node, + | ({| +color: string, +focused: boolean |}) => React.Node, +onPress: () => mixed, +icon?: ({| +color: string, +size: number, +focused: boolean, - |}) => React$Node, + |}) => React.Node, +to?: string, +focused?: boolean, +activeTintColor?: string, @@ -83,7 +83,7 @@ */ declare export var DrawerContentScrollView: React.ComponentType<{ - +children: React$Node, + +children: React.Node, ... }>; diff --git a/native/flow-typed/npm/@react-navigation/elements_v1.x.x.js b/native/flow-typed/npm/@react-navigation/elements_v1.x.x.js --- a/native/flow-typed/npm/@react-navigation/elements_v1.x.x.js +++ b/native/flow-typed/npm/@react-navigation/elements_v1.x.x.js @@ -30,7 +30,7 @@ >; declare export type HeaderBackgroundProps = Partial<{ - +children: React$Node, + +children: React.Node, +style: AnimatedViewStyleProp, ... }>; diff --git a/native/flow-typed/npm/@react-navigation/native_v6.x.x.js b/native/flow-typed/npm/@react-navigation/native_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/native_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/native_v6.x.x.js @@ -94,18 +94,18 @@ T: ?NavigationHelpers = ?NavigationHelpers, >(props: { +value: T, - +children?: React$Node, + +children?: React.Node, ... - }) => React$Node, + }) => React.Node, Consumer: < ParamList: ParamListBase, State: PossiblyStaleNavigationState = PossiblyStaleNavigationState, EventMap: EventMapBase = EventMapCore, T: ?NavigationHelpers = ?NavigationHelpers, >(props: { - +children: (value: T) => ?React$Node, + +children: (value: T) => ?React.Node, ... - }) => React$Node, + }) => React.Node, displayName?: string, ... }; @@ -165,7 +165,7 @@ | { scrollToOffset(options: ScrollToOffsetOptions): void, ... } | { scrollResponderScrollTo(options: ScrollToOptions): void, ... }; declare type ScrollableWrapper = - | { getScrollResponder(): React$Node, ... } + | { getScrollResponder(): React.Node, ... } | { getNode(): ScrollableView, ... } | ScrollableView; declare export function useScrollToTop( @@ -181,7 +181,7 @@ declare export function useTheme(): Theme; declare export var ThemeProvider: React$ComponentType<{| +value: Theme, - +children: React$Node, + +children: React.Node, |}>; /** @@ -199,7 +199,7 @@ +to: LinkTo<>, +action?: GenericNavigationAction, +target?: string, - +children: React$Node, + +children: React.Node, ... }>; diff --git a/native/flow-typed/npm/@react-navigation/stack_v6.x.x.js b/native/flow-typed/npm/@react-navigation/stack_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/stack_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/stack_v6.x.x.js @@ -32,7 +32,7 @@ +state: StackNavigationState, +navigation: Helpers, +descriptors: {| +[key: string]: StackDescriptor |}, - |}): React$Node; + |}): React.Node; /** * createStackNavigator diff --git a/native/flow-typed/npm/react-native-gesture-handler_v2.x.x.js b/native/flow-typed/npm/react-native-gesture-handler_v2.x.x.js --- a/native/flow-typed/npm/react-native-gesture-handler_v2.x.x.js +++ b/native/flow-typed/npm/react-native-gesture-handler_v2.x.x.js @@ -27,7 +27,7 @@ accessibilityIgnoresInvertColors?: boolean, accessibilityRole?: AccessibilityRole, accessibilityStates?: AccessibilityStates, - children?: React$Node, + children?: React.Node, delayLongPress?: number, delayPressIn?: number, delayPressOut?: number, @@ -116,7 +116,7 @@ declare export type DrawerKeyboardDismissMode = 'none' | 'on-drag'; declare export type DrawerLayoutProps = $ReadOnly<{ - renderNavigationView: (progressAnimatedValue: AnimatedValue) => React$Node, + renderNavigationView: (progressAnimatedValue: AnimatedValue) => React.Node, contentContainerStyle?: ViewStyle, drawerBackgroundColor?: string, drawerContainerStyle?: ViewStyle, @@ -199,11 +199,11 @@ renderLeftActions?: ( progressAnimatedValue: AnimatedValue, dragAnimatedValue: AnimatedValue - ) => React$Node, + ) => React.Node, renderRightActions?: ( progressAnimatedValue: AnimatedValue, dragAnimatedValue: AnimatedValue - ) => React$Node, + ) => React.Node, rightThreshold?: number, useNativeAnimations?: boolean, ... @@ -392,7 +392,7 @@ shouldCancelWhenOutside?: boolean, minPointers?: number, hitSlop?: HitSlop, - children?: React$Node, + children?: React.Node, |}>; ///////////////////////////////////////////////////////////////////////////// @@ -825,7 +825,7 @@ interface GestureDetectorProps { gesture: ComposedGesture | GestureType; userSelect?: UserSelect; - children?: React$Node; + children?: React.Node; } declare const GestureObject: {| diff --git a/native/flow-typed/npm/react-native-tab-view_v3.x.x.js b/native/flow-typed/npm/react-native-tab-view_v3.x.x.js --- a/native/flow-typed/npm/react-native-tab-view_v3.x.x.js +++ b/native/flow-typed/npm/react-native-tab-view_v3.x.x.js @@ -30,7 +30,7 @@ +getLabelText?: () => string, +getAccessible?: () => void, +getAccessibilityLabel?: () => void, - +renderIcon?: ({ color: string, ... }) => React$Node, + +renderIcon?: ({ color: string, ... }) => React.Node, +getTestID?: () => void, +activeColor?: string, ... @@ -38,16 +38,16 @@ declare export var TabView: React.ComponentType<{ +navigationState: { +index: number, ... }, - +renderScene: (props: SceneRendererProps & { +route: Route<>, ... }) => React$Node, + +renderScene: (props: SceneRendererProps & { +route: Route<>, ... }) => React.Node, +onIndexChange: (number) => void, +initialLayout: Partial, - +renderTabBar: (TabBarProps) => React$Node, + +renderTabBar: (TabBarProps) => React.Node, ... }>; declare export function SceneMap(scenes: { - [key: string]: () => React$Node, - }): (props: SceneRendererProps & { +route: Route<>, ... }) => React$Node; + [key: string]: () => React.Node, + }): (props: SceneRendererProps & { +route: Route<>, ... }) => React.Node; declare export var TabBar: React.ComponentType<{ +style: ViewStyle, diff --git a/native/flow-typed/npm/react-redux_v7.x.x.js b/native/flow-typed/npm/react-redux_v7.x.x.js --- a/native/flow-typed/npm/react-redux_v7.x.x.js +++ b/native/flow-typed/npm/react-redux_v7.x.x.js @@ -259,7 +259,7 @@ declare export class Provider extends React.Component<{ store: Store, - children?: React$Node, + children?: React.Node, ... }> {} diff --git a/native/navigation/chat-tab-bar-button.react.js b/native/navigation/chat-tab-bar-button.react.js --- a/native/navigation/chat-tab-bar-button.react.js +++ b/native/navigation/chat-tab-bar-button.react.js @@ -33,7 +33,7 @@ }; type Props = { - +tabBarIcon: ({ +color: string, ... }) => React$Node, + +tabBarIcon: ({ +color: string, ... }) => React.Node, +title: string, }; diff --git a/services/electron-update-server/flow-typed/environments/jsx.js b/services/electron-update-server/flow-typed/environments/jsx.js --- a/services/electron-update-server/flow-typed/environments/jsx.js +++ b/services/electron-update-server/flow-typed/environments/jsx.js @@ -353,7 +353,7 @@ instance: HTMLElement, props: { +[key: string]: any, - +children?: React$Node, + +children?: React.Node, ... }, ... @@ -363,7 +363,7 @@ instance: Element, props: { +[key: string]: any, - +children?: React$Node, + +children?: React.Node, ... }, ... @@ -853,7 +853,7 @@ // Special props provided by React type ReactDOM$ReactSpecificProps = {| - children?: React$Node, + children?: React.Node, dangerouslySetInnerHTML?: {| __html: ReactDOM$UserVisibleString, |}, diff --git a/web/flow-typed/npm/react-redux_v7.x.x.js b/web/flow-typed/npm/react-redux_v7.x.x.js --- a/web/flow-typed/npm/react-redux_v7.x.x.js +++ b/web/flow-typed/npm/react-redux_v7.x.x.js @@ -259,7 +259,7 @@ declare export class Provider extends React.Component<{ store: Store, - children?: React$Node, + children?: React.Node, ... }> {} diff --git a/web/flow-typed/npm/react-router-dom_v5.x.x.js b/web/flow-typed/npm/react-router-dom_v5.x.x.js --- a/web/flow-typed/npm/react-router-dom_v5.x.x.js +++ b/web/flow-typed/npm/react-router-dom_v5.x.x.js @@ -7,21 +7,21 @@ forceRefresh?: boolean, getUserConfirmation?: GetUserConfirmation, keyLength?: number, - children?: React$Node + children?: React.Node |}> declare export var HashRouter: React.ComponentType<{| basename?: string, getUserConfirmation?: GetUserConfirmation, hashType?: "slash" | "noslash" | "hashbang", - children?: React$Node + children?: React.Node |}> declare export var Link: React.ComponentType<{ +className?: string, +to: string | LocationShape, +replace?: boolean, - +children?: React$Node, + +children?: React.Node, ... }> @@ -32,7 +32,7 @@ +activeStyle?: { +[string]: mixed, ... }, +style?: { +[string]: mixed, ... }, +isActive?: (match: Match, location: Location) => boolean, - +children?: React$Node, + +children?: React.Node, +exact?: boolean, +strict?: boolean, ... @@ -112,7 +112,7 @@ basename?: string, location?: string | Location, context: StaticRouterContext, - children?: React$Node + children?: React.Node |}> declare export var MemoryRouter: React.ComponentType<{| @@ -120,12 +120,12 @@ initialIndex?: number, getUserConfirmation?: GetUserConfirmation, keyLength?: number, - children?: React$Node + children?: React.Node |}> declare export var Router: React.ComponentType<{| history: RouterHistory, - children?: React$Node + children?: React.Node |}> declare export var Prompt: React.ComponentType<{| @@ -143,8 +143,8 @@ declare export var Route: React.ComponentType<{| component?: React.ComponentType, - render?: (router: ContextRouter) => React$Node, - children?: React.ComponentType | React$Node, + render?: (router: ContextRouter) => React.Node, + children?: React.ComponentType | React.Node, path?: string | Array, exact?: boolean, strict?: boolean, @@ -153,7 +153,7 @@ |}> declare export var Switch: React.ComponentType<{| - children?: React$Node, + children?: React.Node, location?: Location |}> diff --git a/web/flow-typed/npm/react-router_v5.x.x.js b/web/flow-typed/npm/react-router_v5.x.x.js --- a/web/flow-typed/npm/react-router_v5.x.x.js +++ b/web/flow-typed/npm/react-router_v5.x.x.js @@ -70,7 +70,7 @@ basename?: string, location?: string | Location, context: StaticRouterContext, - children?: React$Node, + children?: React.Node, ... }> {} @@ -79,13 +79,13 @@ initialIndex?: number, getUserConfirmation?: GetUserConfirmation, keyLength?: number, - children?: React$Node, + children?: React.Node, ... }> {} declare export class Router extends React.Component<{ history: RouterHistory, - children?: React$Node, + children?: React.Node, ... }> {} @@ -106,8 +106,8 @@ declare export class Route extends React.Component<{| component?: React.ComponentType, - render?: (router: ContextRouter) => React$Node, - children?: React.ComponentType | React$Node, + render?: (router: ContextRouter) => React.Node, + children?: React.ComponentType | React.Node, path?: string | Array, exact?: boolean, strict?: boolean, @@ -116,7 +116,7 @@ |}> {} declare export class Switch extends React.Component<{| - children?: React$Node, + children?: React.Node, location?: Location |}> {}