text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState, type PartialState } from '@react-navigation/routers'; import { type PathConfigMap } from './types'; type Options = { initialRouteName?: string, screens: PathConfigMap, ... }; type ResultState = PartialState<NavigationState<>> & { state?: ResultState, ... }; declare export default function getStateFromPath( path: string, options?: Options, ): ResultState | void; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/getStateFromPath.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
109
```unknown /* @flow * @generated by TsFlower */ import * as React from 'react'; import { type NavigationState } from '@react-navigation/routers'; import { type TypedNavigator, type EventMapBase } from './types'; declare export default function createNavigatorFactory< State: NavigationState<>, ScreenOptions: { ... }, EventMap: EventMapBase, NavigatorComponent: React.ComponentType<any>, >( Navigator: NavigatorComponent, ): <ParamList: { [key: string]: { ... } | void }>() => TypedNavigator< ParamList, State, ScreenOptions, EventMap, NavigatorComponent, >; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/createNavigatorFactory.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
138
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; declare var CurrentRenderContext: $tsflower_subst$React$Context<{ options?: { ... } | void, ... } | void>; export default CurrentRenderContext; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/CurrentRenderContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
82
```unknown /* @flow * @generated by TsFlower */ declare export default function useIsFocused(): boolean; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useIsFocused.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
24
```unknown /* @flow * @generated by TsFlower */ import type { MemoExoticComponent as $tsflower_subst$React$MemoExoticComponent } from 'tsflower/subst/react'; import * as React from 'react'; declare function StaticContainer(props: any): any; declare var _default: $tsflower_subst$React$MemoExoticComponent<typeof StaticContainer>; export default _default; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/StaticContainer.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
87
```unknown /* @flow * @generated by TsFlower */ declare export default function isArrayEqual(a: any[], b: any[]): boolean; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/isArrayEqual.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
30
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState, type NavigationAction } from '@react-navigation/routers'; import { type ChildBeforeRemoveListener } from './NavigationBuilderContext'; import { type NavigationEventEmitter } from './useEventEmitter'; import { type EventMapCore } from './types'; type Options = { getState: () => NavigationState<>, emitter: NavigationEventEmitter<EventMapCore<any>>, beforeRemoveListeners: { [key: string]: ChildBeforeRemoveListener | void }, ... }; declare export var shouldPreventRemove: ( emitter: NavigationEventEmitter<EventMapCore<any>>, beforeRemoveListeners: { [key: string]: ChildBeforeRemoveListener | void }, currentRoutes: { key: string, ... }[], nextRoutes: { key?: string | void, ... }[], action: NavigationAction, ) => boolean; declare export default function useOnPreventRemove(Options): void; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useOnPreventRemove.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
204
```unknown /* @flow * @generated by TsFlower */ import { type NavigationAction, type NavigationState, type ParamListBase, type Router, } from '@react-navigation/routers'; import { type AddListener, type AddKeyedListener } from './NavigationBuilderContext'; import { type NavigationEventEmitter } from './useEventEmitter'; import { type Descriptor, type NavigationHelpers, type RouteConfig, type RouteProp, type EventMapBase, } from './types'; type Options<State: NavigationState<>, ScreenOptions: { ... }, EventMap: EventMapBase> = { state: State, screens: { [key: string]: RouteConfig<ParamListBase, string, State, ScreenOptions, EventMap> }, navigation: NavigationHelpers<ParamListBase>, screenOptions?: | ScreenOptions | ((props: { route: RouteProp<ParamListBase, string>, navigation: any, ... }) => ScreenOptions), defaultScreenOptions?: | ScreenOptions | ((props: { route: RouteProp<ParamListBase, string>, navigation: any, options: ScreenOptions, ... }) => ScreenOptions), onAction: (action: NavigationAction) => boolean, getState: () => State, setState: (state: State) => void, addListener: AddListener, addKeyedListener: AddKeyedListener, onRouteFocus: (key: string) => void, router: Router<State, NavigationAction>, emitter: NavigationEventEmitter<any>, ... }; declare export default function useDescriptors< State: NavigationState<>, ScreenOptions: { ... }, EventMap: EventMapBase, >( Options<State, ScreenOptions, EventMap>, ): { [key: string]: Descriptor< { [key: string]: { ... } | void }, string, State, ScreenOptions, { ... }, >, }; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useDescriptors.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
426
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; declare export var ScheduleUpdateContext: $tsflower_subst$React$Context<{ scheduleUpdate: (callback: () => void) => void, flushUpdates: () => void, ... }>; declare export default function useScheduleUpdate(callback: () => void): void; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useScheduleUpdate.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
103
```unknown /* @flow * @generated by TsFlower */ type EffectCallback = () => void | void | (() => void); declare export default function useFocusEffect(effect: EffectCallback): void; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useFocusEffect.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
44
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; import { type NavigationAction, type NavigationState, type ParamListBase, } from '@react-navigation/routers'; import { type NavigationHelpers } from './types'; export type ListenerMap = { action: ChildActionListener, focus: FocusedNavigationListener, ... }; export type KeyedListenerMap = { getState: GetStateListener, beforeRemove: ChildBeforeRemoveListener, ... }; export type AddListener = <T: $Keys<ListenerMap>>( type: T, listener: $ElementType<ListenerMap, T>, ) => void; export type AddKeyedListener = <T: $Keys<KeyedListenerMap>>( type: T, key: string, listener: $ElementType<KeyedListenerMap, T>, ) => void; export type ChildActionListener = ( action: NavigationAction, visitedNavigators?: Set<string>, ) => boolean; export type FocusedNavigationCallback<T> = (navigation: NavigationHelpers<ParamListBase>) => T; export type FocusedNavigationListener = <T>(callback: FocusedNavigationCallback<T>) => { handled: boolean, result: T, ... }; export type GetStateListener = () => NavigationState<>; export type ChildBeforeRemoveListener = (action: NavigationAction) => boolean; declare var NavigationBuilderContext: $tsflower_subst$React$Context<{ onAction?: (action: NavigationAction, visitedNavigators?: Set<string> | void) => boolean | void, addListener?: AddListener | void, addKeyedListener?: AddKeyedListener | void, onRouteFocus?: (key: string) => void | void, onDispatchAction: (action: NavigationAction, noop: boolean) => void, onOptionsChange: (options: { ... }) => void, ... }>; export default NavigationBuilderContext; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/NavigationBuilderContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
437
```unknown /* @flow * @generated by TsFlower */ import { type ParamListBase } from '@react-navigation/routers'; import { type RouteProp } from './types'; declare export default function useRoute<T: RouteProp<ParamListBase, string>>(): T; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useRoute.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
58
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState } from '@react-navigation/routers'; type Selector<T> = (state: NavigationState<>) => T; declare export default function useNavigationState<T>(selector: Selector<T>): T; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useNavigationState.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
60
```unknown /* @flow * @generated by TsFlower */ import { type ParamListBase, type NavigationState } from '@react-navigation/routers'; import { type RouteConfig, type EventMapBase } from './types'; declare export default function Screen< ParamList: ParamListBase, RouteName: $Keys<ParamList>, State: NavigationState<>, ScreenOptions: { ... }, EventMap: EventMapBase, >( _: RouteConfig<ParamList, RouteName, State, ScreenOptions, EventMap>, ): null; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/Screen.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
116
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState, type ParamListBase } from '@react-navigation/routers'; import { type Descriptor, type NavigationHelpers } from './types'; type Options = { state: NavigationState<>, navigation: NavigationHelpers<ParamListBase>, descriptors: { [key: string]: Descriptor<ParamListBase, string, NavigationState<>, { ... }>, ... }, ... }; declare export default function useCurrentRender(Options): void; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useCurrentRender.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
113
```unknown /* @flow * @generated by TsFlower */ import { type NavigationAction, type NavigationState, type PartialState, type Router, type RouterConfigOptions, } from '@react-navigation/routers'; import { type ChildActionListener, type ChildBeforeRemoveListener, } from './NavigationBuilderContext'; import { type NavigationEventEmitter } from './useEventEmitter'; import { type EventMapCore } from './types'; type Options = { router: Router<NavigationState<>, NavigationAction>, key?: string, getState: () => NavigationState<>, setState: (state: NavigationState<> | PartialState<NavigationState<>>) => void, actionListeners: ChildActionListener[], beforeRemoveListeners: { [key: string]: ChildBeforeRemoveListener | void }, routerConfigOptions: RouterConfigOptions, emitter: NavigationEventEmitter<EventMapCore<any>>, ... }; declare export default function useOnAction( Options, ): (action: NavigationAction, visitedNavigators?: Set<string>) => boolean; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useOnAction.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
224
```unknown /* @flow * @generated by TsFlower */ import { type NavigationAction, type NavigationState, type Router, } from '@react-navigation/routers'; type Options<Action: NavigationAction> = { router: Router<NavigationState<>, Action>, getState: () => NavigationState<>, setState: (state: NavigationState<>) => void, key?: string, ... }; declare export default function useOnRouteFocus<Action: NavigationAction>( Options<Action>, ): (key: string) => void; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useOnRouteFocus.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
116
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import type { Readonly } from 'tsflower/subst/lib'; import * as React from 'react'; import { type NavigationState, type PartialState } from '@react-navigation/routers'; declare var _default: $tsflower_subst$React$Context<{ isDefault?: true | void, state?: | Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }> | PartialState< Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, > | void, getKey: () => string | void, setKey: (key: string) => void, getState: () => NavigationState<> | PartialState<NavigationState<>> | void, setState: (state: NavigationState<> | PartialState<NavigationState<>> | void) => void, getIsInitial: () => boolean, addOptionsGetter?: (key: string, getter: () => { ... } | void | null) => void | void, ... }>; export default _default; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/NavigationStateContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
415
```unknown /* @flow * @generated by TsFlower */ import { type ParamListBase, type NavigationState } from '@react-navigation/routers'; import { type NavigationProp } from './types'; type Options = { key?: string, navigation?: NavigationProp<ParamListBase, string, NavigationState<>, { ... }>, options?: { ... } | void, ... }; declare export default function useOptionsGetters(Options): { addOptionsGetter: (key: string, getter: () => { ... } | void | null) => () => void, getCurrentOptions: () => { ... } | null | void, ... }; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useOptionsGetters.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
141
```unknown /* @flow * @generated by TsFlower */ import { type ParamListBase } from '@react-navigation/routers'; import { type FocusedNavigationListener } from './NavigationBuilderContext'; import { type NavigationHelpers } from './types'; type Options = { navigation: NavigationHelpers<ParamListBase>, focusedListeners: FocusedNavigationListener[], ... }; declare export default function useFocusedListenersChildrenAdapter(Options): void; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useFocusedListenersChildrenAdapter.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
94
```unknown /* @flow * @generated by TsFlower */ import type { Partial } from 'tsflower/subst/lib'; import { type NavigationAction, type ParamListBase, type NavigationState, type Router, } from '@react-navigation/routers'; import { type NavigationEventEmitter } from './useEventEmitter'; import { type EventMapBase, type NavigationHelpers, type NavigationProp } from './types'; type Options<State: NavigationState<>> = { state: State, getState: () => State, navigation: NavigationHelpers<ParamListBase> & Partial<NavigationProp<ParamListBase, string, any, any, any>>, setOptions: (cb: (options: { [key: string]: { ... } }) => { [key: string]: { ... } }) => void, router: Router<State, NavigationAction>, emitter: NavigationEventEmitter<EventMapBase>, ... }; type NavigationCache<State: NavigationState<>, ScreenOptions: { ... }> = { [key: string]: NavigationProp<ParamListBase, string, State, ScreenOptions>, ... }; declare export default function useNavigationCache< State: NavigationState<>, ScreenOptions: { ... }, >( Options<State>, ): NavigationCache<State, ScreenOptions>; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useNavigationCache.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
273
```unknown /* @flow * @generated by TsFlower */ declare export default function useRegisterNavigator(): string; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useRegisterNavigator.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
24
```unknown /* @flow * @generated by TsFlower */ import type { ChildActionListener as $tsflower_import_type$_$_2e__2f_NavigationBuilderContext$ChildActionListener } from './NavigationBuilderContext'; import type { FocusedNavigationListener as $tsflower_import_type$_$_2e__2f_NavigationBuilderContext$FocusedNavigationListener } from './NavigationBuilderContext'; import { type ListenerMap } from './NavigationBuilderContext'; declare export default function useChildListeners(): { listeners: { action: $tsflower_import_type$_$_2e__2f_NavigationBuilderContext$ChildActionListener[], focus: $tsflower_import_type$_$_2e__2f_NavigationBuilderContext$FocusedNavigationListener[], ... }, addListener: <T: 'focus' | 'action'>( type: T, listener: $ElementType<ListenerMap, T>, ) => () => void, ... }; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useChildListeners.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
201
```unknown /* @flow * @generated by TsFlower */ import { type EventEmitter, type EventConsumer } from './types'; export type NavigationEventEmitter<T: { [key: string]: any }> = EventEmitter<T> & { create: (target: string) => EventConsumer<T>, ... }; declare export default function useEventEmitter<T: { [key: string]: any }>( listen?: (e: any) => void, ): NavigationEventEmitter<T>; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useEventEmitter.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
99
```unknown /* @flow * @generated by TsFlower */ import type { ReactNode as $tsflower_subst$React$ReactNode, Context as $tsflower_subst$React$Context, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; type Props = { children: $tsflower_subst$React$ReactNode, ... }; declare export var SingleNavigatorContext: $tsflower_subst$React$Context<{ register(key: string): void, unregister(key: string): void, ... } | void>; declare export default function EnsureSingleNavigator(Props): $tsflower_subst$React$JSX$Element; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/EnsureSingleNavigator.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
163
```unknown /* @flow * @generated by TsFlower */ declare export default function useSyncState<T>( initialState?: () => T | T /* tsflower-warning: unimplemented: 'readonly' as type operator */, ): [ T, () => T, (state: T) => void, (callback: () => void) => void, () => void, ] /* readonly [T, () => T, (state: T) => void, (callback: () => void) => void, () => void] */; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useSyncState.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
115
```unknown /* @flow * @generated by TsFlower */ export * from '@react-navigation/routers'; export { default as BaseNavigationContainer } from './BaseNavigationContainer'; export { default as createNavigatorFactory } from './createNavigatorFactory'; export { default as NavigationHelpersContext } from './NavigationHelpersContext'; export { default as NavigationContext } from './NavigationContext'; export { default as NavigationRouteContext } from './NavigationRouteContext'; export { default as CurrentRenderContext } from './CurrentRenderContext'; export { default as useNavigationBuilder } from './useNavigationBuilder'; export { default as useNavigation } from './useNavigation'; export { default as useRoute } from './useRoute'; export { default as useFocusEffect } from './useFocusEffect'; export { default as useIsFocused } from './useIsFocused'; export { default as useNavigationState } from './useNavigationState'; export { default as getStateFromPath } from './getStateFromPath'; export { default as getPathFromState } from './getPathFromState'; export { default as getActionFromState } from './getActionFromState'; export { default as getFocusedRouteNameFromRoute } from './getFocusedRouteNameFromRoute'; export * from './types'; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/index.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
255
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; import { type NavigationHelpers } from './types'; declare var NavigationHelpersContext: $tsflower_subst$React$Context<NavigationHelpers< { [key: string]: { ... } | void }, { ... }, > | void>; export default NavigationHelpersContext; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/NavigationHelpersContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
101
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState, type PartialState } from '@react-navigation/routers'; import * as CommonActions from '@react-navigation/routers/lib/typescript/src/CommonActions'; import { type PathConfigMap, type NavigatorScreenParams } from './types'; type Options = { initialRouteName?: string, screens: PathConfigMap, ... }; type NavigateAction<State: NavigationState<>> = { type: 'NAVIGATE', payload: { name: string, params?: NavigatorScreenParams<State>, ... }, ... }; declare export default function getActionFromState( state: PartialState<NavigationState<>>, options?: Options, ): NavigateAction<NavigationState<>> | CommonActions.Action | void; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/getActionFromState.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
170
```unknown /* @flow * @generated by TsFlower */ import type { SubsetProperties } from '../../../../../../src/generics'; import type { NavigationProp as $tsflower_import_type$_$_2e__2f_types$NavigationProp } from './types'; import type { EventEmitter as $tsflower_import_type$_$_2e__2f_types$EventEmitter } from './types'; import type { EventConsumer as $tsflower_import_type$_$_2e__2f_types$EventConsumer } from './types'; import type { Descriptor as $tsflower_import_type$_$_2e__2f_types$Descriptor } from './types'; import type { NavigationHelpers as $tsflower_import_type$_$_2e__2f_types$NavigationHelpers } from './types'; import type { Readonly, Partial } from 'tsflower/subst/lib'; import type { ProviderProps as $tsflower_subst$React$ProviderProps, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; import { type DefaultRouterOptions, type NavigationState, type RouterFactory, type PartialState, } from '@react-navigation/routers'; import { type DefaultNavigatorOptions, PrivateValueStore } from './types'; declare export default function useNavigationBuilder< State: NavigationState<>, RouterOptions: DefaultRouterOptions<>, ActionHelpers: { [key: string]: () => void }, ScreenOptions: { ... }, EventMap: { [key: string]: any }, >( createRouter: RouterFactory<State, any, RouterOptions>, options: DefaultNavigatorOptions<ScreenOptions> & RouterOptions, ): { state: State, navigation: { dispatch( action: | Readonly<{ type: string, payload?: { ... } | void, source?: string | void, target?: string | void, ... }> | (( state: Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, ) => Readonly<{ type: string, payload?: { ... } | void, source?: string | void, target?: string | void, ... }>), ): void, navigate<RouteName: string>(...args: [RouteName] | [RouteName, { ... } | void]): void, navigate<RouteName_1: string>( route: | { key: string, params?: { ... } | void, ... } | { name: RouteName_1, key?: string | void, params: { ... } | void, ... }, ): void, reset( state: | Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }> | PartialState< Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, >, ): void, goBack(): void, isFocused(): boolean, canGoBack(): boolean, getParent< T = $tsflower_import_type$_$_2e__2f_types$NavigationProp< { [key: string]: { ... } | void }, string, Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, { ... }, { ... }, > | void, >(): T, getState(): Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, dangerouslyGetParent< T_1 = $tsflower_import_type$_$_2e__2f_types$NavigationProp< { [key: string]: { ... } | void }, string, Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, { ... }, { ... }, > | void, >(): T_1, dangerouslyGetState(): Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, ... } & PrivateValueStore<{ [key: string]: { ... } | void }, string, { ... }> & $tsflower_import_type$_$_2e__2f_types$EventEmitter<EventMap> & { setParams<RouteName_2: string>(params: { ... } | void): void, ... } & { dispatch( action: | Readonly<{ type: string, payload?: { ... } | void, source?: string | void, target?: string | void, ... }> | ((state: any) => Readonly<{ type: string, payload?: { ... } | void, source?: string | void, target?: string | void, ... }>), ): void, navigate<RouteName_3: string>(...args: [RouteName_3] | [RouteName_3, { ... } | void]): void, navigate<RouteName_4: string>( route: | { key: string, params?: { ... } | void, ... } | { name: RouteName_4, key?: string | void, params: { ... } | void, ... }, ): void, reset(state: any): void, goBack(): void, isFocused(): boolean, canGoBack(): boolean, getParent< T_2 = $tsflower_import_type$_$_2e__2f_types$NavigationProp< { [key: string]: { ... } | void }, string, Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, { ... }, { ... }, > | void, >(): T_2, getState(): any, dangerouslyGetParent< T_3 = $tsflower_import_type$_$_2e__2f_types$NavigationProp< { [key: string]: { ... } | void }, string, Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, { ... }, { ... }, > | void, >(): T_3, dangerouslyGetState(): any, ... } & { setParams(params: { ... } | void): void, setOptions(options: Partial<any>): void, ... } & $tsflower_import_type$_$_2e__2f_types$EventConsumer<any> & PrivateValueStore<{ [key: string]: { ... } | void }, string, any> & ActionHelpers, descriptors: { [key: string]: $tsflower_import_type$_$_2e__2f_types$Descriptor< { [key: string]: { ... } | void }, string, State, ScreenOptions, { ... }, >, }, NavigationContent: ( rest: SubsetProperties< $tsflower_subst$React$ProviderProps<$tsflower_import_type$_$_2e__2f_types$NavigationHelpers< { [key: string]: { ... } | void }, { ... }, > | void>, {| children?: mixed |}, >, ) => $tsflower_subst$React$JSX$Element, ... }; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useNavigationBuilder.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
2,244
```unknown /* @flow * @generated by TsFlower */ import type { GetStateListener as $tsflower_import_type$_$_2e__2f_NavigationBuilderContext$GetStateListener } from './NavigationBuilderContext'; import type { ChildBeforeRemoveListener as $tsflower_import_type$_$_2e__2f_NavigationBuilderContext$ChildBeforeRemoveListener } from './NavigationBuilderContext'; import { type KeyedListenerMap } from './NavigationBuilderContext'; declare export default function useKeyedChildListeners(): { keyedListeners: { getState: { [key: string]: $tsflower_import_type$_$_2e__2f_NavigationBuilderContext$GetStateListener | void, }, beforeRemove: { [key: string]: $tsflower_import_type$_$_2e__2f_NavigationBuilderContext$ChildBeforeRemoveListener | void, }, ... }, addKeyedListener: <T: 'getState' | 'beforeRemove'>( type: T, key: string, listener: $ElementType<KeyedListenerMap, T>, ) => () => void, ... }; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useKeyedChildListeners.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
240
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState, type PartialState } from '@react-navigation/routers'; import { type PathConfigMap } from './types'; type Options = { initialRouteName?: string, screens: PathConfigMap, ... }; type State = NavigationState<> | $Diff<PartialState<NavigationState<>>, {| stale: mixed |}>; declare export default function getPathFromState(state: State, options?: Options): string; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/getPathFromState.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
106
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; import { type NavigationProp } from './types'; declare var NavigationContext: $tsflower_subst$React$Context<NavigationProp< { [key: string]: { ... } | void }, string, any, any, { ... }, > | void>; export default NavigationContext; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/NavigationContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
108
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; import { type Route } from '@react-navigation/routers'; declare var NavigationContext: $tsflower_subst$React$Context<Route<string, { ... } | void> | void>; export default NavigationContext; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/NavigationRouteContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
88
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState, type Route } from '@react-navigation/routers'; declare export var SUPPRESS_STATE_ACCESS_WARNING: { value: boolean, ... }; declare export default function useRouteCache<State: NavigationState<>>( routes: $ElementType<State, 'routes'>, ): Route<string, { ... } | void>[]; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useRouteCache.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
81
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; import { type NavigationAction } from '@react-navigation/routers'; declare var UnhandledActionContext: $tsflower_subst$React$Context< (action: NavigationAction) => void | void, >; export default UnhandledActionContext; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/UnhandledActionContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
95
```unknown /* @flow * @generated by TsFlower */ import { type ParamListBase } from '@react-navigation/routers'; import { type NavigationProp } from './types'; declare export default function useNavigation<T: NavigationProp<ParamListBase>>(): T; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useNavigation.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
56
```unknown /* @flow * @generated by TsFlower */ import type { ForwardRefExoticComponent as $tsflower_subst$React$ForwardRefExoticComponent, RefAttributes as $tsflower_subst$React$RefAttributes, } from 'tsflower/subst/react'; import * as React from 'react'; import { type NavigationContainerRef, type NavigationContainerProps } from './types'; declare var BaseNavigationContainer: $tsflower_subst$React$ForwardRefExoticComponent< NavigationContainerProps & $tsflower_subst$React$RefAttributes<NavigationContainerRef>, >; export default BaseNavigationContainer; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/BaseNavigationContainer.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
133
```unknown /* @flow * @generated by TsFlower */ import { type PathConfigMap } from './types'; type Options = { initialRouteName?: string, screens: PathConfigMap, ... }; declare export default function checkLegacyPathConfig(config?: Options): [boolean, Options | void]; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/checkLegacyPathConfig.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
67
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState } from '@react-navigation/routers'; import { type GetStateListener } from './NavigationBuilderContext'; type Options = { getState: () => NavigationState<>, getStateListeners: { [key: string]: GetStateListener | void }, ... }; declare export default function useOnGetState(Options): void; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useOnGetState.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
87
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState } from '@react-navigation/routers'; import { type NavigationEventEmitter } from './useEventEmitter'; import { type EventMapCore } from './types'; type Options<State: NavigationState<>> = { state: State, emitter: NavigationEventEmitter<EventMapCore<State>>, ... }; declare export default function useFocusEvents<State: NavigationState<>>(Options<State>): void; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useFocusEvents.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
100
```unknown /* @flow * @generated by TsFlower */ type ReactText = string | number; // verbatim from @types/react declare export default function checkSerializable(o: { [key: string]: any, ... }): | { serializable: true, ... } | { serializable: false, location: ReactText[], reason: string, ... }; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/checkSerializable.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
83
```unknown /* @flow * @generated by TsFlower */ import type { PartialState as $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState } from '@react-navigation/routers'; import type { EventEmitter as $tsflower_import_type$_$_2e__2f_types$EventEmitter } from './types'; import type { EventConsumer as $tsflower_import_type$_$_2e__2f_types$EventConsumer } from './types'; import type { Readonly, Partial } from 'tsflower/subst/lib'; import { type NavigationAction, type NavigationState, type Router, } from '@react-navigation/routers'; import { type NavigationEventEmitter } from './useEventEmitter'; import { type NavigationProp, PrivateValueStore } from './types'; type Options<State: NavigationState<>, Action: NavigationAction> = { onAction: (action: NavigationAction, visitedNavigators?: Set<string>) => boolean, getState: () => State, emitter: NavigationEventEmitter<any>, router: Router<State, Action>, ... }; declare export default function useNavigationHelpers< State: NavigationState<>, ActionHelpers: { [key: string]: () => void }, Action: NavigationAction, EventMap: { [key: string]: any }, >( Options<State, Action>, ): { dispatch( action: | Readonly<{ type: string, payload?: { ... } | void, source?: string | void, target?: string | void, ... }> | (( state: Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState< Readonly<any>, > | void, ... }[], type: string, stale: false, ... }>, ) => Readonly<{ type: string, payload?: { ... } | void, source?: string | void, target?: string | void, ... }>), ): void, navigate<RouteName: string>(...args: [RouteName] | [RouteName, { ... } | void]): void, navigate<RouteName_1: string>( route: | { key: string, params?: { ... } | void, ... } | { name: RouteName_1, key?: string | void, params: { ... } | void, ... }, ): void, reset( state: | Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState< Readonly<any>, > | void, ... }[], type: string, stale: false, ... }> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState< Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState< Readonly<any>, > | void, ... }[], type: string, stale: false, ... }>, >, ): void, goBack(): void, isFocused(): boolean, canGoBack(): boolean, getParent< T = NavigationProp< { [key: string]: { ... } | void }, string, Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState< Readonly<any>, > | void, ... }[], type: string, stale: false, ... }>, { ... }, { ... }, > | void, >(): T, getState(): Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, dangerouslyGetParent< T_1 = NavigationProp< { [key: string]: { ... } | void }, string, Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState< Readonly<any>, > | void, ... }[], type: string, stale: false, ... }>, { ... }, { ... }, > | void, >(): T_1, dangerouslyGetState(): Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, ... } & PrivateValueStore<{ [key: string]: { ... } | void }, string, { ... }> & $tsflower_import_type$_$_2e__2f_types$EventEmitter<EventMap> & { setParams<RouteName_2: string>(params: { ... } | void): void, ... } & { dispatch( action: | Readonly<{ type: string, payload?: { ... } | void, source?: string | void, target?: string | void, ... }> | ((state: any) => Readonly<{ type: string, payload?: { ... } | void, source?: string | void, target?: string | void, ... }>), ): void, navigate<RouteName_3: string>(...args: [RouteName_3] | [RouteName_3, { ... } | void]): void, navigate<RouteName_4: string>( route: | { key: string, params?: { ... } | void, ... } | { name: RouteName_4, key?: string | void, params: { ... } | void, ... }, ): void, reset(state: any): void, goBack(): void, isFocused(): boolean, canGoBack(): boolean, getParent< T_2 = NavigationProp< { [key: string]: { ... } | void }, string, Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState< Readonly<any>, > | void, ... }[], type: string, stale: false, ... }>, { ... }, { ... }, > | void, >(): T_2, getState(): any, dangerouslyGetParent< T_3 = NavigationProp< { [key: string]: { ... } | void }, string, Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_40_react_2d_navigation_2f_routers$PartialState< Readonly<any>, > | void, ... }[], type: string, stale: false, ... }>, { ... }, { ... }, > | void, >(): T_3, dangerouslyGetState(): any, ... } & { setParams(params: { ... } | void): void, setOptions(options: Partial<any>): void, ... } & $tsflower_import_type$_$_2e__2f_types$EventConsumer<any> & PrivateValueStore<{ [key: string]: { ... } | void }, string, any> & ActionHelpers; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/useNavigationHelpers.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
2,243
```unknown /* @flow * @generated */ export * from './lib/typescript/src/index.js.flow'; ```
/content/code_sandbox/types/@react-navigation/routers/index.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
22
```unknown /* @flow * @generated by TsFlower */ import { type CommonNavigationAction, type Router, type ParamListBase } from './types'; import { type TabActionType, type TabRouterOptions, type TabNavigationState, type TabActionHelpers, } from './TabRouter'; export type DrawerActionType = | TabActionType | { type: 'OPEN_DRAWER' | 'CLOSE_DRAWER' | 'TOGGLE_DRAWER', source?: string, target?: string, ... }; export type DrawerRouterOptions = TabRouterOptions & { openByDefault?: boolean, ... }; export type DrawerNavigationState<ParamList: ParamListBase> = $Diff< TabNavigationState<ParamList>, {| type: mixed, history: mixed, |}, > & { type: 'drawer', history: | { type: 'route', key: string, ... } | { type: 'drawer', ... }[], ... }; export type DrawerActionHelpers<ParamList: ParamListBase> = TabActionHelpers<ParamList> & { openDrawer(): void, closeDrawer(): void, toggleDrawer(): void, ... }; declare export var DrawerActions: { openDrawer(): DrawerActionType, closeDrawer(): DrawerActionType, toggleDrawer(): DrawerActionType, jumpTo(name: string, params?: { ... } | void): TabActionType, ... }; declare export default function DrawerRouter( DrawerRouterOptions, ): Router<DrawerNavigationState<ParamListBase>, DrawerActionType | CommonNavigationAction>; ```
/content/code_sandbox/types/@react-navigation/routers/lib/typescript/src/DrawerRouter.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
347
```unknown /* @flow * @generated by TsFlower */ import type { SubsetProperties } from '../../../../../../src/generics'; import type { Extract, Readonly } from 'tsflower/subst/lib'; import { type NavigationState, type PartialState, type Router, type DefaultRouterOptions, type Route, type ParamListBase, } from './types'; export type TabActionType = { type: 'JUMP_TO', payload: { name: string, params?: { ... }, ... }, source?: string, target?: string, ... }; export type BackBehavior = 'initialRoute' | 'firstRoute' | 'history' | 'order' | 'none'; export type TabRouterOptions = DefaultRouterOptions<> & { backBehavior?: BackBehavior, ... }; export type TabNavigationState<ParamList: ParamListBase> = $Diff< NavigationState<ParamList>, {| history: mixed |}, > & { type: 'tab', history: { type: 'route', key: string, ... }[], ... }; export type TabActionHelpers<ParamList: ParamListBase> = { // prettier-ignore jumpTo<RouteName: Extract<$Keys<ParamList>, string>>( ...args: $FlowFixMe /* undefined extends ParamList[RouteName] ? [RouteName] | [RouteName, ParamList[RouteName]] : [RouteName, ParamList[RouteName]] */ /* tsflower-unimplemented: ConditionalType */ ): void, ... }; declare export var TabActions: { jumpTo(name: string, params?: { ... } | void): TabActionType, ... }; declare export default function TabRouter(TabRouterOptions): Router< TabNavigationState<{ [key: string]: { ... } | void }>, | { type: 'GO_BACK', source?: string | void, target?: string | void, ... } | { type: 'NAVIGATE', payload: | { key: string, name?: void, params?: { ... } | void, merge?: boolean | void, ... } | { name: string, key?: string | void, params?: { ... } | void, merge?: boolean | void, ... }, source?: string | void, target?: string | void, ... } | { type: 'RESET', payload: | Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }> | PartialState< Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, > | (Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, type: string, stale: false, ... }> & { routes: SubsetProperties< Route<string, { ... } | void>, {| name: mixed, params?: mixed |}, >[], ... }) | void, source?: string | void, target?: string | void, ... } | { type: 'SET_PARAMS', payload: { params?: { ... } | void, ... }, source?: string | void, target?: string | void, ... } | TabActionType, >; ```
/content/code_sandbox/types/@react-navigation/routers/lib/typescript/src/TabRouter.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
885
```unknown /* @flow * @generated by TsFlower */ import type { Extract, Partial } from 'tsflower/subst/lib'; import type { ReactNode as $tsflower_subst$React$ReactNode, JSX$Element as $tsflower_subst$React$JSX$Element, ComponentProps as $tsflower_subst$React$ComponentProps, } from 'tsflower/subst/react'; import * as React from 'react'; import { type DefaultRouterOptions, type NavigationState, type NavigationAction, type InitialState, type PartialState, type Route, type ParamListBase, } from '@react-navigation/routers'; export type DefaultNavigatorOptions< ScreenOptions: { ... }, ParamList: ParamListBase = ParamListBase, > = DefaultRouterOptions<string> & { children: $tsflower_subst$React$ReactNode, screenOptions?: | ScreenOptions | ((props: { route: RouteProp<ParamList, $Keys<ParamList>>, navigation: any, ... }) => ScreenOptions), defaultScreenOptions?: | ScreenOptions | ((props: { route: RouteProp<ParamList, $Keys<ParamList>>, navigation: any, options: ScreenOptions, ... }) => ScreenOptions), ... }; export type EventMapBase = { +[key: string]: {| +data?: any, +canPreventDefault?: boolean, |}, }; export type EventMapCore<State: NavigationState<>> = {| focus: {| data: void |}, blur: {| data: void |}, state: {| data: { state: State, ... } |}, beforeRemove: {| data: { action: NavigationAction, ... }, canPreventDefault: true, |}, |}; export type EventArg<EventName: string, CanPreventDefault: boolean | void = false, Data = void> = { +type: EventName, +target?: string, ... } & { +defaultPrevented: boolean, preventDefault(): void, ... } /* CanPreventDefault extends true ? { /** * Whether `event.preventDefault()` was called on this event object. * / readonly defaultPrevented: boolean; /** * Prevent the default action which happens on this event. * / preventDefault(): void; } : {} */ /* tsflower-unimplemented: ConditionalType */ & { +data: Data, ... } /* undefined extends Data ? { readonly data?: Readonly<Data>; } : { readonly data: Readonly<Data>; } */ /* tsflower-unimplemented: ConditionalType */; export type EventListenerCallback<EventMap: EventMapBase, EventName: $Keys<EventMap>> = ( e: EventArg< Extract<EventName, string>, $ElementType<$ElementType<EventMap, EventName>, 'canPreventDefault'>, $ElementType<$ElementType<EventMap, EventName>, 'data'>, >, ) => void; export type EventConsumer<EventMap: EventMapBase> = { addListener<EventName: Extract<$Keys<EventMap>, string>>( type: EventName, callback: EventListenerCallback<EventMap, EventName>, ): () => void, removeListener<EventName: Extract<$Keys<EventMap>, string>>( type: EventName, callback: EventListenerCallback<EventMap, EventName>, ): void, ... }; export type EventEmitter<EventMap: EventMapBase> = { emit<EventName: Extract<$Keys<EventMap>, string>>( options: { type: EventName, target?: string, ... } & $FlowFixMe /* EventMap[EventName]['canPreventDefault'] extends true ? { canPreventDefault: true; } : {} */ /* tsflower-unimplemented: ConditionalType */ & $FlowFixMe /* undefined extends EventMap[EventName]['data'] ? { data?: EventMap[EventName]['data']; } : { data: EventMap[EventName]['data']; } */ /* tsflower-unimplemented: ConditionalType */, ): EventArg< EventName, $ElementType<$ElementType<EventMap, EventName>, 'canPreventDefault'>, $ElementType<$ElementType<EventMap, EventName>, 'data'>, >, ... }; declare export class PrivateValueStore<+A, +B, C> { $tsflower$property$0: $FlowFixMe /* /** * UGLY HACK! DO NOT USE THE TYPE!!! * * TypeScript requires a type to be used to be able to infer it. * The type should exist as its own without any operations such as union. * So we need to figure out a way to store this type in a property. * The problem with a normal property is that it shows up in intelliSense. * Adding private keyword works, but the annotation is stripped away in declaration. * Turns out if we use an empty string, it doesn't show up in intelliSense. * / protected ''?: { a: A; b: B; c: C; }; */ /* tsflower-unimplemented: empty-named property on class or interface */; } type NavigationHelpersCommon< +ParamList: ParamListBase, State: NavigationState<> = NavigationState<>, > = { dispatch(action: NavigationAction | ((state: State) => NavigationAction)): void, // prettier-ignore navigate<RouteName: $Keys<ParamList>>( ...args: $FlowFixMe /* undefined extends ParamList[RouteName] ? [RouteName] | [RouteName, ParamList[RouteName]] : [RouteName, ParamList[RouteName]] */ /* tsflower-unimplemented: ConditionalType */ ): void, navigate<RouteName: $Keys<ParamList>>( route: | { key: string, params?: $ElementType<ParamList, RouteName>, ... } | { name: RouteName, key?: string, params: $ElementType<ParamList, RouteName>, ... }, ): void, reset(state: PartialState<State> | State): void, goBack(): void, isFocused(): boolean, canGoBack(): boolean, getParent<T = NavigationProp<ParamListBase> | void>(): T, getState(): State, dangerouslyGetParent<T = NavigationProp<ParamListBase> | void>(): T, dangerouslyGetState(): State, ... } & PrivateValueStore<ParamList, $Keys<ParamList>, { ... }>; export type NavigationHelpers< ParamList: ParamListBase, EventMap: EventMapBase = EventMapBase, > = NavigationHelpersCommon<ParamList> & EventEmitter<EventMap> & { setParams<RouteName: $Keys<ParamList>>( params: Partial<$ElementType<ParamList, RouteName>>, ): void, ... }; export type NavigationContainerProps = { initialState?: InitialState, onStateChange?: (state: NavigationState<> | void) => void, onUnhandledAction?: (action: NavigationAction) => void, independent?: boolean, children: $tsflower_subst$React$ReactNode, ... }; export type NavigationProp< +ParamList: ParamListBase, +RouteName: $Keys<ParamList> = $Keys<ParamList>, State: NavigationState<ParamList> = NavigationState<ParamList>, ScreenOptions: { ... } = { ... }, EventMap: EventMapBase = EventMapBase, > = NavigationHelpersCommon<ParamList, State> & { setParams(params: Partial<$ElementType<ParamList, RouteName>>): void, setOptions(options: Partial<ScreenOptions>): void, ... } & EventConsumer<{| ...EventMap, ...EventMapCore<State> |}> & PrivateValueStore<ParamList, RouteName, EventMap>; export type RouteProp<+ParamList: ParamListBase, +RouteName: $Keys<ParamList>> = Route< Extract<RouteName, string>, $ElementType<ParamList, RouteName>, >; export type CompositeNavigationProp< A: NavigationProp<ParamListBase, string, any, any>, B: NavigationHelpersCommon<ParamListBase, any>, > = $Diff<A & B, {| [key: $Keys<NavigationProp<any>>]: mixed |}> & NavigationProp< $FlowFixMe /* A extends NavigationHelpersCommon<infer T> ? T : never */ /* tsflower-unimplemented: ConditionalType */ & $FlowFixMe /* B extends NavigationHelpersCommon<infer U> ? U : never */ /* tsflower-unimplemented: ConditionalType */, $FlowFixMe /* /** * The route name should refer to the route name specified in the first type * Ideally it should work for any of them, but it's not possible to infer that way * / A extends NavigationProp<any, infer R> ? R : string */ /* tsflower-unimplemented: ConditionalType */, $FlowFixMe /* /** * The type of state should refer to the state specified in the first type * / A extends NavigationProp<any, any, infer S> ? S : NavigationState */ /* tsflower-unimplemented: ConditionalType */, $FlowFixMe /* A extends NavigationProp<any, any, any, infer O> ? O : {} */ /* tsflower-unimplemented: ConditionalType */ & $FlowFixMe /* B extends NavigationProp<any, any, any, infer P> ? P : {} */ /* tsflower-unimplemented: ConditionalType */, $FlowFixMe /* /** * Event consumer config should refer to the config specified in the first type * This allows typechecking `addListener`/`removeListener` * / A extends NavigationProp<any, any, any, any, infer E> ? E : {} */ /* tsflower-unimplemented: ConditionalType */, >; export type Descriptor< ParamList: ParamListBase, RouteName: $Keys<ParamList> = string, State: NavigationState<> = NavigationState<>, ScreenOptions: { ... } = { ... }, EventMap: EventMapBase = EventMapBase, > = { render(): $tsflower_subst$React$JSX$Element, options: ScreenOptions, navigation: NavigationProp<ParamList, RouteName, State, ScreenOptions, EventMap>, ... }; export type ScreenListeners< State: NavigationState<>, EventMap: EventMapBase, > = Partial<$FlowFixMe /* { [EventName in keyof (EventMap & EventMapCore<State>)]: EventListenerCallback<EventMap, EventName>; } */ /* tsflower-unimplemented: MappedType */>; export type RouteConfig< ParamList: ParamListBase, RouteName: $Keys<ParamList>, State: NavigationState<>, ScreenOptions: { ... }, EventMap: EventMapBase, > = { name: RouteName, options?: | ScreenOptions | ((props: { route: RouteProp<ParamList, RouteName>, navigation: any, ... }) => ScreenOptions), listeners?: | ScreenListeners<State, EventMap> | ((props: { route: RouteProp<ParamList, RouteName>, navigation: any, ... }) => ScreenListeners<State, EventMap>), getId?: ({ params: $ElementType<ParamList, RouteName>, ... }) => string | void, initialParams?: $ElementType<ParamList, RouteName>, ... } & ( | { component: React.ComponentType<any>, getComponent?: empty, children?: empty, ... } | { getComponent: () => React.ComponentType<any>, component?: empty, children?: empty, ... } | { children: (props: { route: RouteProp<ParamList, RouteName>, navigation: any, ... }) => $tsflower_subst$React$ReactNode, component?: empty, getComponent?: empty, ... } ); export type NavigationContainerEventMap = {| state: {| data: { state: NavigationState<> | PartialState<NavigationState<>> | void, ... } |}, options: {| data: { options: { ... }, ... } |}, __unsafe_action__: {| data: { action: NavigationAction, noop: boolean, ... }, |}, |}; export type NavigationContainerRef = NavigationHelpers<ParamListBase> & EventConsumer<NavigationContainerEventMap> & { resetRoot(state?: PartialState<NavigationState<>> | NavigationState<>): void, getRootState(): NavigationState<>, getCurrentRoute(): Route<string> | void, getCurrentOptions(): { ... } | void, ... }; export type TypedNavigator< ParamList: ParamListBase, State: NavigationState<>, ScreenOptions: { ... }, EventMap: EventMapBase, Navigator: React.ComponentType<any>, > = { Navigator: React.ComponentType< $Diff< $tsflower_subst$React$ComponentProps<Navigator>, {| [key: $Keys<DefaultNavigatorOptions<any, any>>]: mixed |}, > & DefaultNavigatorOptions<ScreenOptions, ParamList>, >, Screen: <RouteName: $Keys<ParamList>>( _: RouteConfig<ParamList, RouteName, State, ScreenOptions, EventMap>, ) => null, ... }; export type NavigatorScreenParams<ParamList, State: NavigationState<> = NavigationState<>> = | { screen?: empty, params?: empty, initial?: empty, state: PartialState<State> | State | void, ... } | $ElementType< $FlowFixMe /* { [RouteName in keyof ParamList]: undefined extends ParamList[RouteName] ? { screen: RouteName; params?: ParamList[RouteName]; initial?: boolean; state?: never; } : { screen: RouteName; params: ParamList[RouteName]; initial?: boolean; state?: never; }; } */ /* tsflower-unimplemented: MappedType */, $Keys<ParamList>, >; export type PathConfig = { path?: string, exact?: boolean, parse?: { [key: string]: (value: string) => any }, stringify?: { [key: string]: (value: any) => string }, screens?: PathConfigMap, initialRouteName?: string, ... }; export type PathConfigMap = { [routeName: string]: string | PathConfig, ... }; export {}; ```
/content/code_sandbox/types/@react-navigation/core/lib/typescript/src/types.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
3,171
```unknown /* @flow * @generated by TsFlower */ import { type NavigationState, type PartialState, type Route } from './types'; type ResetState = | PartialState<NavigationState<>> | NavigationState<> | ($Diff<NavigationState<>, {| routes: mixed |}> & { routes: $Diff<Route<string>, {| key: mixed |}>[], ... }); export type Action = $Exact< | { type: 'GO_BACK', source?: string, target?: string, ... } | { type: 'NAVIGATE', payload: | { key: string, name?: void, params?: { ... }, merge?: boolean, ... } | { name: string, key?: string, params?: { ... }, merge?: boolean, ... }, source?: string, target?: string, ... } | { type: 'RESET', payload: ResetState | void, source?: string, target?: string, ... } | { type: 'SET_PARAMS', payload: { params?: { ... }, ... }, source?: string, target?: string, ... }, >; declare export function goBack(): Action; declare export function navigate( route: | { key: string, params?: { ... }, ... } | { name: string, key?: string, params?: { ... }, ... }, ): Action; declare export function navigate(name: string, params?: { ... }): Action; declare export function reset(state: $ReadOnly<ResetState> | void): Action; declare export function setParams(params: { ... }): Action; export {}; ```
/content/code_sandbox/types/@react-navigation/routers/lib/typescript/src/CommonActions.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
373
```unknown /* @flow * @generated by TsFlower */ import * as CommonActions from './CommonActions'; export { CommonActions }; export { default as BaseRouter } from './BaseRouter'; export { default as StackRouter, StackActions } from './StackRouter'; export { StackActionHelpers, StackActionType, StackRouterOptions, StackNavigationState, } from './StackRouter'; export { default as TabRouter, TabActions } from './TabRouter'; export { TabActionHelpers, TabActionType, TabRouterOptions, TabNavigationState } from './TabRouter'; export { default as DrawerRouter, DrawerActions } from './DrawerRouter'; export { DrawerActionHelpers, DrawerActionType, DrawerRouterOptions, DrawerNavigationState, } from './DrawerRouter'; export * from './types'; ```
/content/code_sandbox/types/@react-navigation/routers/lib/typescript/src/index.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
171
```unknown /* @flow * @generated by TsFlower */ import type { SubsetProperties } from '../../../../../../src/generics'; import type { PartialState as $tsflower_import_type$_$_2e__2f_types$PartialState } from './types'; import type { Readonly } from 'tsflower/subst/lib'; import { type NavigationState, type Router, type DefaultRouterOptions, type Route, type ParamListBase, } from './types'; export type StackActionType = $Exact< | { type: 'REPLACE', payload: { name: string, key?: string | void, params?: { ... }, ... }, source?: string, target?: string, ... } | { type: 'PUSH', payload: { name: string, key?: string | void, params?: { ... }, ... }, source?: string, target?: string, ... } | { type: 'POP', payload: { count: number, ... }, source?: string, target?: string, ... } | { type: 'POP_TO_TOP', source?: string, target?: string, ... }, >; export type StackRouterOptions = DefaultRouterOptions<>; export type StackNavigationState<ParamList: ParamListBase> = NavigationState<ParamList> & { type: 'stack', ... }; export type StackActionHelpers<ParamList: ParamListBase> = { replace<RouteName: $Keys<ParamList>>( name: RouteName, params: $ElementType<ParamList, RouteName>, ): void, push<RouteName: $Keys<ParamList>>( name: RouteName, params: $ElementType<ParamList, RouteName>, ): void, pop(count?: number): void, popToTop(): void, ... }; declare export var StackActions: { replace(name: string, params?: { ... } | void): StackActionType, push(name: string, params?: { ... } | void): StackActionType, pop(count?: number): StackActionType, popToTop(): StackActionType, ... }; declare export default function StackRouter(options: StackRouterOptions): Router< StackNavigationState<{ [key: string]: { ... } | void }>, | { type: 'GO_BACK', source?: string | void, target?: string | void, ... } | { type: 'NAVIGATE', payload: | { key: string, name?: void, params?: { ... } | void, merge?: boolean | void, ... } | { name: string, key?: string | void, params?: { ... } | void, merge?: boolean | void, ... }, source?: string | void, target?: string | void, ... } | { type: 'RESET', payload: | Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_2e__2f_types$PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }> | $tsflower_import_type$_$_2e__2f_types$PartialState< Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<any> | $tsflower_import_type$_$_2e__2f_types$PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, > | (Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, type: string, stale: false, ... }> & { routes: SubsetProperties< Route<string, { ... } | void>, {| name: mixed, params?: mixed |}, >[], ... }) | void, source?: string | void, target?: string | void, ... } | { type: 'SET_PARAMS', payload: { params?: { ... } | void, ... }, source?: string | void, target?: string | void, ... } | { type: 'REPLACE', payload: { name: string, key?: string | void, params?: { ... } | void, ... }, source?: string | void, target?: string | void, ... } | { type: 'PUSH', payload: { name: string, key?: string | void, params?: { ... } | void, ... }, source?: string | void, target?: string | void, ... } | { type: 'POP', payload: { count: number, ... }, source?: string | void, target?: string | void, ... } | { type: 'POP_TO_TOP', source?: string | void, target?: string | void, ... }, >; ```
/content/code_sandbox/types/@react-navigation/routers/lib/typescript/src/StackRouter.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
1,229
```unknown /* @flow * @generated by TsFlower */ import type { Readonly } from 'tsflower/subst/lib'; import { type CommonNavigationAction, type PartialState } from './types'; declare var BaseRouter: { getStateForAction< State: Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: Readonly<any> | PartialState<Readonly<any>> | void, ... }[], type: string, stale: false, ... }>, >( state: State, action: CommonNavigationAction, ): State | PartialState<State> | null, shouldActionChangeFocus(action: CommonNavigationAction): boolean, ... }; export default BaseRouter; ```
/content/code_sandbox/types/@react-navigation/routers/lib/typescript/src/BaseRouter.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
199
```unknown /* @flow * @generated */ export * from './lib/typescript/src/index.js.flow'; ```
/content/code_sandbox/types/@react-navigation/stack/index.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
22
```unknown /* @flow * @generated by TsFlower */ import type { Extract, Readonly, Partial } from 'tsflower/subst/lib'; import * as CommonActions from './CommonActions'; export type CommonNavigationAction = CommonActions.Action; type NavigationRoute<+ParamList: ParamListBase, +RouteName: $Keys<ParamList>> = Route< Extract<RouteName, string>, $ElementType<ParamList, RouteName>, > & { +state?: NavigationState<ParamList> | PartialState<NavigationState<ParamList>>, ... }; export type NavigationState<+ParamList: ParamListBase = ParamListBase> = $ReadOnly<{ key: string, index: number, routeNames: $ReadOnlyArray<Extract<$Keys<ParamList>, string>>, history?: $ReadOnlyArray<mixed>, routes: $ReadOnlyArray<NavigationRoute<ParamList, $Keys<ParamList>>>, type: string, stale: false, ... }>; export type InitialState = Readonly< Partial< $Diff< NavigationState<>, {| stale: mixed, routes: mixed, |}, >, > & { routes: $Diff<Route<string>, {| key: mixed |}> & { state?: InitialState, ... }[], ... }, >; export type PartialRoute<R: Route<string>> = $Diff<R, {| key: mixed |}> & { key?: string, state?: PartialState<NavigationState<>>, ... }; export type PartialState<+State: NavigationState<>> = Partial< $Diff< State, {| stale: mixed, routes: mixed, |}, >, > & Readonly<{ stale?: true, routes: PartialRoute<Route<$ElementType<$ElementType<State, 'routeNames'>, number>>>[], ... }>; export type Route<+RouteName: string, +Params: { ... } | void = { ... } | void> = $ReadOnly<{ key: string, name: RouteName, params?: Params, // for conditional below ... }> /* undefined extends Params ? Readonly<{ /** * Params for this route * / params?: Readonly<Params>; }> : Readonly<{ /** * Params for this route * / params: Readonly<Params>; }> */ /* tsflower-unimplemented: ConditionalType */; // manually added above export type ParamListBase = { +[key: string]: { ... } | void }; export type NavigationAction = Readonly<{ type: string, payload?: { ... }, source?: string, target?: string, ... }>; export type ActionCreators<Action: NavigationAction> = { [key: string]: (...args: any) => Action, ... }; export type DefaultRouterOptions<RouteName: string = string> = { initialRouteName?: RouteName, ... }; export type RouterFactory< State: NavigationState<>, Action: NavigationAction, RouterOptions: DefaultRouterOptions<>, > = (options: RouterOptions) => Router<State, Action>; export type RouterConfigOptions = { routeNames: string[], routeParamList: ParamListBase, routeGetIdList: { [key: string]: (options: { params?: { [key: string]: any }, ... }) => string | void | void, }, ... }; export type Router<State: NavigationState<>, Action: NavigationAction> = { type: $ElementType<State, 'type'>, getInitialState(options: RouterConfigOptions): State, getRehydratedState( partialState: PartialState<State> | State, options: RouterConfigOptions, ): State, getStateForRouteNamesChange(state: State, options: RouterConfigOptions): State, getStateForRouteFocus(state: State, key: string): State, getStateForAction( state: State, action: Action, options: RouterConfigOptions, ): State | PartialState<State> | null, shouldActionChangeFocus(action: NavigationAction): boolean, actionCreators?: ActionCreators<Action>, ... }; export {}; ```
/content/code_sandbox/types/@react-navigation/routers/lib/typescript/src/types.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
877
```unknown /* @flow * @generated by TsFlower */ import * as CardStyleInterpolators from './TransitionConfigs/CardStyleInterpolators'; import * as HeaderStyleInterpolators from './TransitionConfigs/HeaderStyleInterpolators'; import * as TransitionSpecs from './TransitionConfigs/TransitionSpecs'; import * as TransitionPresets from './TransitionConfigs/TransitionPresets'; export { default as createStackNavigator } from './navigators/createStackNavigator'; declare export var Assets: any[]; export { default as StackView } from './views/Stack/StackView'; export { default as Header } from './views/Header/Header'; export { default as HeaderTitle } from './views/Header/HeaderTitle'; export { default as HeaderBackButton } from './views/Header/HeaderBackButton'; export { default as HeaderBackground } from './views/Header/HeaderBackground'; export { CardStyleInterpolators, HeaderStyleInterpolators, TransitionSpecs, TransitionPresets }; export { default as CardAnimationContext } from './utils/CardAnimationContext'; export { default as HeaderHeightContext } from './utils/HeaderHeightContext'; export { default as GestureHandlerRefContext } from './utils/GestureHandlerRefContext'; export { default as useCardAnimation } from './utils/useCardAnimation'; export { default as useHeaderHeight } from './utils/useHeaderHeight'; export { default as useGestureHandlerRef } from './utils/useGestureHandlerRef'; export { StackNavigationOptions, StackNavigationProp, StackScreenProps, StackHeaderProps, StackHeaderLeftButtonProps, StackHeaderTitleProps, StackCardInterpolatedStyle, StackCardInterpolationProps, StackCardStyleInterpolator, StackHeaderInterpolatedStyle, StackHeaderInterpolationProps, StackHeaderStyleInterpolator, TransitionPreset, } from './types'; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/index.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
377
```unknown /* @flow * @generated by TsFlower */ import { type StackHeaderInterpolationProps, type StackHeaderInterpolatedStyle } from '../types'; declare export function forUIKit(StackHeaderInterpolationProps): StackHeaderInterpolatedStyle; declare export function forFade(StackHeaderInterpolationProps): StackHeaderInterpolatedStyle; declare export function forSlideLeft(StackHeaderInterpolationProps): StackHeaderInterpolatedStyle; declare export function forSlideRight(StackHeaderInterpolationProps): StackHeaderInterpolatedStyle; declare export function forSlideUp(StackHeaderInterpolationProps): StackHeaderInterpolatedStyle; declare export function forNoAnimation(): StackHeaderInterpolatedStyle; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/TransitionConfigs/HeaderStyleInterpolators.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
142
```unknown /* @flow * @generated by TsFlower */ import { type TransitionPreset } from '../types'; declare export var SlideFromRightIOS: TransitionPreset; declare export var ModalSlideFromBottomIOS: TransitionPreset; declare export var ModalPresentationIOS: TransitionPreset; declare export var FadeFromBottomAndroid: TransitionPreset; declare export var RevealFromBottomAndroid: TransitionPreset; declare export var ScaleFromCenterAndroid: TransitionPreset; declare export var DefaultTransition: TransitionPreset; declare export var ModalTransition: TransitionPreset; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/TransitionConfigs/TransitionPresets.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
118
```unknown /* @flow * @generated by TsFlower */ import { type StackCardInterpolationProps, type StackCardInterpolatedStyle } from '../types'; declare export function forHorizontalIOS(StackCardInterpolationProps): StackCardInterpolatedStyle; declare export function forVerticalIOS(StackCardInterpolationProps): StackCardInterpolatedStyle; declare export function forModalPresentationIOS( StackCardInterpolationProps, ): StackCardInterpolatedStyle; declare export function forFadeFromBottomAndroid( StackCardInterpolationProps, ): StackCardInterpolatedStyle; declare export function forRevealFromBottomAndroid( StackCardInterpolationProps, ): StackCardInterpolatedStyle; declare export function forScaleFromCenterAndroid( StackCardInterpolationProps, ): StackCardInterpolatedStyle; declare export function forNoAnimation(): StackCardInterpolatedStyle; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/TransitionConfigs/CardStyleInterpolators.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
183
```unknown /* @flow * @generated by TsFlower */ import { type TransitionSpec } from '../types'; declare export var TransitionIOSSpec: TransitionSpec; declare export var FadeInFromBottomAndroidSpec: TransitionSpec; declare export var FadeOutToBottomAndroidSpec: TransitionSpec; declare export var RevealFromBottomAndroidSpec: TransitionSpec; declare export var ScaleFromCenterAndroidSpec: TransitionSpec; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/TransitionConfigs/TransitionSpecs.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
86
```unknown /* @flow * @generated by TsFlower */ import type { TypedNavigator as $tsflower_import_type$_$_40_react_2d_navigation_2f_native$TypedNavigator } from '@react-navigation/native'; import type { JSX$Element as $tsflower_subst$React$JSX$Element } from 'tsflower/subst/react'; import { type DefaultNavigatorOptions, type StackRouterOptions, type StackNavigationState, } from '@react-navigation/native'; import { type StackNavigationConfig, type StackNavigationOptions, type StackNavigationEventMap, } from '../types'; type Props = // DefaultNavigatorOptions<StackNavigationOptions> & StackRouterOptions & StackNavigationConfig; declare function StackNavigator(Props): $tsflower_subst$React$JSX$Element; declare var _default: < ParamList: { +[key: string]: { ... } | void }, >() => $tsflower_import_type$_$_40_react_2d_navigation_2f_native$TypedNavigator< ParamList, StackNavigationState<ParamList>, StackNavigationOptions, StackNavigationEventMap, typeof StackNavigator, >; export default _default; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/navigators/createStackNavigator.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
253
```unknown /* @flow * @generated by TsFlower */ import type { ComponentProps as $tsflower_subst$React$ComponentProps, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; import { BaseButton } from 'react-native-gesture-handler'; type Props = $tsflower_subst$React$ComponentProps<typeof BaseButton> & { pressOpacity: number, ... }; declare export default class BorderlessButton extends React.Component<Props> { defaultProps: { activeOpacity: number, borderless: boolean, ... }; opacity: any; handleActiveStateChange: any; render(): $tsflower_subst$React$JSX$Element; } export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/BorderlessButton.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
173
```unknown /* @flow * @generated by TsFlower */ export * from './GestureHandlerNative'; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/GestureHandler.android.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
22
```unknown /* @flow * @generated by TsFlower */ import typeof * as $tsflower_import_typeof$_$_40_react_2d_native_2d_community_2f_masked_2d_view from '@react-native-community/masked-view'; import type { ComponentProps as $tsflower_subst$React$ComponentProps, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; type MaskedViewType = $ElementType< $tsflower_import_typeof$_$_40_react_2d_native_2d_community_2f_masked_2d_view, 'default', >; type Props = $tsflower_subst$React$ComponentProps<MaskedViewType> & { children: React$Element<React$ElementType>, ... }; declare export default function MaskedView(Props): $tsflower_subst$React$JSX$Element; export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/MaskedViewNative.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
211
```unknown /* @flow * @generated by TsFlower */ import type { AnimatedInterpolation as $tsflower_subst$RN$Animated$AnimatedInterpolation, WithAnimatedValue as $tsflower_subst$RN$Animated$WithAnimatedValue, StyleProp as $tsflower_subst$RN$StyleProp, TextStyle as $tsflower_subst$RN$TextStyle, ViewStyle as $tsflower_subst$RN$ViewStyle, LayoutChangeEvent as $tsflower_subst$RN$LayoutChangeEvent, AnimationConfig as $tsflower_subst$RN$Animated$AnimationConfig, SpringAnimationConfig as $tsflower_subst$RN$Animated$SpringAnimationConfig, TimingAnimationConfig as $tsflower_subst$RN$Animated$TimingAnimationConfig, } from 'tsflower/subst/react-native'; import type { ReactNode as $tsflower_subst$React$ReactNode } from 'tsflower/subst/react'; import type { Partial } from 'tsflower/subst/lib'; import * as React from 'react'; import { typeof Animated } from 'react-native'; import { type EdgeInsets } from 'react-native-safe-area-context'; import { type NavigationProp, type ParamListBase, type Descriptor, type Route, type NavigationHelpers, type StackNavigationState, type StackActionHelpers, type RouteProp, } from '@react-navigation/native'; export type StackNavigationEventMap = {| transitionStart: {| data: { closing: boolean, ... } |}, transitionEnd: {| data: { closing: boolean, ... } |}, gestureStart: {| data: void |}, gestureEnd: {| data: void |}, gestureCancel: {| data: void |}, |}; export type StackNavigationHelpers = NavigationHelpers<ParamListBase, StackNavigationEventMap> & StackActionHelpers<ParamListBase>; export type StackNavigationProp< ParamList: ParamListBase, +RouteName: $Keys<ParamList> = $Keys<ParamList>, > = NavigationProp< ParamList, RouteName, StackNavigationState<ParamList>, StackNavigationOptions, StackNavigationEventMap, > & StackActionHelpers<ParamList>; export type StackScreenProps<ParamList: ParamListBase, RouteName: $Keys<ParamList> = string> = { navigation: StackNavigationProp<ParamList, RouteName>, route: RouteProp<ParamList, RouteName>, ... }; export type Layout = { width: number, height: number, ... }; export type GestureDirection = | 'horizontal' | 'horizontal-inverted' | 'vertical' | 'vertical-inverted'; export type Scene<T> = { route: T, descriptor: StackDescriptor, progress: { current: $tsflower_subst$RN$Animated$AnimatedInterpolation, next?: $tsflower_subst$RN$Animated$AnimatedInterpolation, previous?: $tsflower_subst$RN$Animated$AnimatedInterpolation, ... }, ... }; export type StackHeaderMode = 'float' | 'screen' | 'none'; export type StackCardMode = 'card' | 'modal'; export type StackHeaderOptions = { headerTitle?: string | ((props: StackHeaderTitleProps) => $tsflower_subst$React$ReactNode), headerTitleAlign?: 'left' | 'center', headerTitleStyle?: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$TextStyle>, >, headerTitleContainerStyle?: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, >, headerTintColor?: string, headerTitleAllowFontScaling?: boolean, headerBackAllowFontScaling?: boolean, headerBackAccessibilityLabel?: string, headerBackTitle?: string, headerBackTitleStyle?: $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$TextStyle>, headerBackTitleVisible?: boolean, headerTruncatedBackTitle?: string, headerLeft?: (props: StackHeaderLeftButtonProps) => $tsflower_subst$React$ReactNode, headerLeftContainerStyle?: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, >, headerRight?: (props: { tintColor?: string, ... }) => $tsflower_subst$React$ReactNode, headerRightContainerStyle?: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, >, headerBackImage?: $ElementType<StackHeaderLeftButtonProps, 'backImage'>, headerPressColorAndroid?: string, headerBackground?: (props: { style: $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, ... }) => $tsflower_subst$React$ReactNode, headerStyle?: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, >, headerTransparent?: boolean, headerStatusBarHeight?: number, ... }; export type StackHeaderProps = { mode: 'float' | 'screen', layout: Layout, insets: EdgeInsets, scene: Scene<Route<string>>, previous?: Scene<Route<string>>, navigation: StackNavigationProp<ParamListBase>, styleInterpolator: StackHeaderStyleInterpolator, ... }; export type StackDescriptor = Descriptor< ParamListBase, string, StackNavigationState<ParamListBase>, StackNavigationOptions, >; export type StackDescriptorMap = { [key: string]: StackDescriptor, ... }; export type StackNavigationOptions = StackHeaderOptions & Partial<TransitionPreset> & { title?: string, header?: (props: StackHeaderProps) => $tsflower_subst$React$ReactNode, headerShown?: boolean, cardShadowEnabled?: boolean, cardOverlayEnabled?: boolean, cardOverlay?: (props: { style: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, >, ... }) => $tsflower_subst$React$ReactNode, cardStyle?: $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, animationEnabled?: boolean, animationTypeForReplace?: 'push' | 'pop', gestureEnabled?: boolean, gestureResponseDistance?: { vertical?: number, horizontal?: number, ... }, gestureVelocityImpact?: number, safeAreaInsets?: { top?: number, right?: number, bottom?: number, left?: number, ... }, detachPreviousScreen?: boolean, ... }; export type StackNavigationConfig = { mode?: StackCardMode, headerMode?: StackHeaderMode, keyboardHandlingEnabled?: boolean, detachInactiveScreens?: boolean, ... }; export type StackHeaderLeftButtonProps = { disabled?: boolean, onPress?: () => void, pressColorAndroid?: string, backImage?: (props: { tintColor: string, ... }) => $tsflower_subst$React$ReactNode, tintColor?: string, label?: string, truncatedLabel?: string, labelVisible?: boolean, labelStyle?: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$TextStyle>, >, allowFontScaling?: boolean, onLabelLayout?: (e: $tsflower_subst$RN$LayoutChangeEvent) => void, screenLayout?: Layout, titleLayout?: Layout, canGoBack?: boolean, accessibilityLabel?: string, style?: $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, ... }; export type StackHeaderTitleProps = { onLayout: (e: $tsflower_subst$RN$LayoutChangeEvent) => void, allowFontScaling?: boolean, tintColor?: string, children?: string, style?: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$TextStyle>, >, ... }; export type TransitionSpec = | { animation: 'spring', config: $Diff< $tsflower_subst$RN$Animated$SpringAnimationConfig, {| [key: 'toValue' | $Keys<$tsflower_subst$RN$Animated$AnimationConfig>]: mixed |}, >, ... } | { animation: 'timing', config: $Diff< $tsflower_subst$RN$Animated$TimingAnimationConfig, {| [key: 'toValue' | $Keys<$tsflower_subst$RN$Animated$AnimationConfig>]: mixed |}, >, ... }; export type StackCardInterpolationProps = { current: { progress: $tsflower_subst$RN$Animated$AnimatedInterpolation, ... }, next?: { progress: $tsflower_subst$RN$Animated$AnimatedInterpolation, ... }, index: number, closing: $tsflower_subst$RN$Animated$AnimatedInterpolation, swiping: $tsflower_subst$RN$Animated$AnimatedInterpolation, inverted: $tsflower_subst$RN$Animated$AnimatedInterpolation, layouts: { screen: Layout, ... }, insets: { top: number, right: number, bottom: number, left: number, ... }, ... }; export type StackCardInterpolatedStyle = { containerStyle?: any, cardStyle?: any, overlayStyle?: any, shadowStyle?: any, ... }; export type StackCardStyleInterpolator = ( props: StackCardInterpolationProps, ) => StackCardInterpolatedStyle; export type StackHeaderInterpolationProps = { current: { progress: $tsflower_subst$RN$Animated$AnimatedInterpolation, ... }, next?: { progress: $tsflower_subst$RN$Animated$AnimatedInterpolation, ... }, layouts: { header: Layout, screen: Layout, title?: Layout, leftLabel?: Layout, ... }, ... }; export type StackHeaderInterpolatedStyle = { leftLabelStyle?: any, leftButtonStyle?: any, rightButtonStyle?: any, titleStyle?: any, backgroundStyle?: any, ... }; export type StackHeaderStyleInterpolator = ( props: StackHeaderInterpolationProps, ) => StackHeaderInterpolatedStyle; export type TransitionPreset = { gestureDirection: GestureDirection, transitionSpec: { open: TransitionSpec, close: TransitionSpec, ... }, cardStyleInterpolator: StackCardStyleInterpolator, headerStyleInterpolator: StackHeaderStyleInterpolator, ... }; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/types.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
2,433
```unknown /* @flow * @generated by TsFlower */ import type { ReactNode as $tsflower_subst$React$ReactNode, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; type Props = { children: $tsflower_subst$React$ReactNode, ... }; declare export default function SafeAreaProviderCompat(Props): $tsflower_subst$React$JSX$Element; export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/SafeAreaProviderCompat.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
112
```unknown /* @flow * @generated by TsFlower */ import * as React from 'react'; type Props = { maskElement: React$Element<React$ElementType>, children: React$Element<React$ElementType>, ... }; declare export default function MaskedView( Props, ): React$Element< | string | (( props: any, ) => | React$Element< | string | any | $FlowFixMe /* new (props: any) => React.Component<any, any, any> */ /* tsflower-unimplemented: ConstructorType */, > | null | $FlowFixMe) /* new (props: any) => React.Component<any, any, any> */ /* tsflower-unimplemented: ConstructorType */, >; export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/MaskedView.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
172
```unknown /* @flow * @generated by TsFlower */ export { default } from './MaskedViewNative'; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/MaskedView.ios.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
25
```unknown /* @flow * @generated by TsFlower */ import type { ViewProps as $tsflower_subst$RN$ViewProps, AnimatedInterpolation as $tsflower_subst$RN$Animated$AnimatedInterpolation, } from 'tsflower/subst/react-native'; import type { ReactNode as $tsflower_subst$React$ReactNode, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; import { Animated } from 'react-native'; declare export var shouldUseActivityState: any; declare export var MaybeScreenContainer: ( $tsflower_subst$RN$ViewProps & { enabled: boolean, children: $tsflower_subst$React$ReactNode, ... }, ) => $tsflower_subst$React$JSX$Element; declare export var MaybeScreen: ( $tsflower_subst$RN$ViewProps & { enabled: boolean, active: 0 | 1 | 2 | $tsflower_subst$RN$Animated$AnimatedInterpolation, children: $tsflower_subst$React$ReactNode, ... }, ) => $tsflower_subst$React$JSX$Element; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Screens.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
276
```unknown /* @flow * @generated by TsFlower */ export * from './GestureHandlerNative'; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/GestureHandler.ios.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
22
```unknown /* @flow * @generated by TsFlower */ import type { ReactNode as $tsflower_subst$React$ReactNode } from 'tsflower/subst/react'; import * as React from 'react'; type Props = { enabled: boolean, children: (props: { onPageChangeStart: () => void, onPageChangeConfirm: (force: boolean) => void, onPageChangeCancel: () => void, ... }) => $tsflower_subst$React$ReactNode, ... }; declare export default class KeyboardManager extends React.Component<Props> { componentWillUnmount(): void; previouslyFocusedTextInput: any; startTimestamp: any; keyboardTimeout: any; clearKeyboardTimeout: any; handlePageChangeStart: any; handlePageChangeConfirm: any; handlePageChangeCancel: any; render(): $tsflower_subst$React$ReactNode; } export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/KeyboardManager.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
197
```unknown /* @flow * @generated by TsFlower */ import * as React from 'react'; import { View } from 'react-native'; import { type PanGestureHandlerProperties } from 'react-native-gesture-handler'; declare export var PanGestureHandler: React.ComponentType<PanGestureHandlerProperties>; declare export var GestureHandlerRootView: typeof View; declare export var GestureState: { UNDETERMINED: number, FAILED: number, BEGAN: number, CANCELLED: number, ACTIVE: number, END: number, ... }; export { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler'; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/GestureHandler.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
137
```unknown /* @flow * @generated by TsFlower */ export { default } from './MaskedViewNative'; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/MaskedView.android.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
25
```unknown /* @flow * @generated by TsFlower */ import type { ComponentProps as $tsflower_subst$React$ComponentProps, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; import { BaseButton } from 'react-native-gesture-handler'; type Props = $tsflower_subst$React$ComponentProps<typeof BaseButton> & { pressOpacity: number, ... }; declare export default class TouchableItem extends React.Component<Props> { defaultProps: { pressOpacity: number, borderless: boolean, enabled: boolean, ... }; opacity: any; handleActiveStateChange: any; render(): $tsflower_subst$React$JSX$Element; } export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/TouchableItem.ios.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
178
```unknown /* @flow * @generated by TsFlower */ import type { JSX$Element as $tsflower_subst$React$JSX$Element } from 'tsflower/subst/react'; import { type PanGestureHandlerProperties } from 'react-native-gesture-handler'; declare export function PanGestureHandler( props: PanGestureHandlerProperties, ): $tsflower_subst$React$JSX$Element; export { GestureHandlerRootView, State as GestureState, PanGestureHandlerGestureEvent, } from 'react-native-gesture-handler'; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/GestureHandlerNative.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
117
```unknown /* @flow * @generated by TsFlower */ import type { ViewProps as $tsflower_subst$RN$ViewProps } from 'tsflower/subst/react-native'; import type { ReactNode as $tsflower_subst$React$ReactNode, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; import 'react-native'; export type Props = $tsflower_subst$RN$ViewProps & { pressColor?: string, disabled?: boolean, borderless?: boolean, delayPressIn?: number, onPress?: () => void, children: $tsflower_subst$React$ReactNode, ... }; declare export default function TouchableItem(Props): $tsflower_subst$React$JSX$Element; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/TouchableItem.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
185
```unknown /* @flow * @generated by TsFlower */ import type { ForwardRefExoticComponent as $tsflower_subst$React$ForwardRefExoticComponent, ReactNode as $tsflower_subst$React$ReactNode, RefAttributes as $tsflower_subst$React$RefAttributes, } from 'tsflower/subst/react'; import type { ViewProps as $tsflower_subst$RN$ViewProps, View as $tsflower_subst$RN$View, } from 'tsflower/subst/react-native'; import * as React from 'react'; import { View } from 'react-native'; declare var _default: $tsflower_subst$React$ForwardRefExoticComponent< $tsflower_subst$RN$ViewProps & { enabled: boolean, layout: { width: number, height: number, ... }, children: $tsflower_subst$React$ReactNode, ... } & $tsflower_subst$React$RefAttributes<$tsflower_subst$RN$View>, >; export default _default; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Stack/CardSheet.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
235
```unknown /* @flow * @generated by TsFlower */ import type { ViewProps as $tsflower_subst$RN$ViewProps, AnimatedInterpolation as $tsflower_subst$RN$Animated$AnimatedInterpolation, WithAnimatedValue as $tsflower_subst$RN$Animated$WithAnimatedValue, StyleProp as $tsflower_subst$RN$StyleProp, ViewStyle as $tsflower_subst$RN$ViewStyle, } from 'tsflower/subst/react-native'; import type { ReactNode as $tsflower_subst$React$ReactNode, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; import { Animated } from 'react-native'; import { type EdgeInsets } from 'react-native-safe-area-context'; import { type TransitionSpec, type StackCardStyleInterpolator, type GestureDirection, type Layout, } from '../../types'; type Props = $tsflower_subst$RN$ViewProps & { index: number, closing: boolean, next?: $tsflower_subst$RN$Animated$AnimatedInterpolation, current: $tsflower_subst$RN$Animated$AnimatedInterpolation, gesture: Animated.Value, layout: Layout, insets: EdgeInsets, pageOverflowEnabled: boolean, gestureDirection: GestureDirection, onOpen: () => void, onClose: () => void, onTransition?: (props: { closing: boolean, gesture: boolean, ... }) => void, onGestureBegin?: () => void, onGestureCanceled?: () => void, onGestureEnd?: () => void, children: $tsflower_subst$React$ReactNode, overlay: (props: { style: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, >, ... }) => $tsflower_subst$React$ReactNode, overlayEnabled: boolean, shadowEnabled: boolean, gestureEnabled: boolean, gestureResponseDistance?: { vertical?: number, horizontal?: number, ... }, gestureVelocityImpact: number, transitionSpec: { open: TransitionSpec, close: TransitionSpec, ... }, styleInterpolator: StackCardStyleInterpolator, containerStyle?: $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, contentStyle?: $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, ... }; declare export default class Card extends React.Component<Props> { defaultProps: { overlayEnabled: boolean, shadowEnabled: boolean, gestureEnabled: boolean, gestureVelocityImpact: number, overlay: ({ style: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, >, ... }) => $tsflower_subst$React$JSX$Element | null, ... }; componentDidMount(): void; componentDidUpdate(prevProps: Props): void; componentWillUnmount(): void; isCurrentlyMounted: any; isClosing: any; inverted: any; layout: any; isSwiping: any; interactionHandle: any; pendingGestureCallback: any; lastToValue: any; animate: any; getAnimateToValue: any; setPointerEventsEnabled: any; handleStartInteraction: any; handleEndInteraction: any; handleGestureStateChange: any; getInterpolatedStyle: any; getCardAnimationContext: any; gestureActivationCriteria: any; contentRef: any; render(): $tsflower_subst$React$JSX$Element; } export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Stack/Card.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
847
```unknown /* @flow * @generated by TsFlower */ import type { WithAnimatedValue as $tsflower_subst$RN$Animated$WithAnimatedValue, StyleProp as $tsflower_subst$RN$StyleProp, ViewStyle as $tsflower_subst$RN$ViewStyle, } from 'tsflower/subst/react-native'; import type { ReactNode as $tsflower_subst$React$ReactNode, JSX$Element as $tsflower_subst$React$JSX$Element, MemoExoticComponent as $tsflower_subst$React$MemoExoticComponent, } from 'tsflower/subst/react'; import * as React from 'react'; import { Animated } from 'react-native'; import { type Route } from '@react-navigation/native'; import { type Props as HeaderContainerProps } from '../Header/HeaderContainer'; import { type Scene, type Layout, type StackHeaderMode, type StackCardMode, type TransitionPreset, } from '../../types'; type Props = TransitionPreset & { index: number, active: boolean, focused: boolean, closing: boolean, layout: Layout, gesture: Animated.Value, scene: Scene<Route<string>>, safeAreaInsetTop: number, safeAreaInsetRight: number, safeAreaInsetBottom: number, safeAreaInsetLeft: number, cardOverlay?: (props: { style: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, >, ... }) => $tsflower_subst$React$ReactNode, cardOverlayEnabled?: boolean, cardShadowEnabled?: boolean, cardStyle?: $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, getPreviousScene: (props: { route: Route<string>, ... }) => Scene<Route<string>> | void, getFocusedRoute: () => Route<string>, renderHeader: (props: HeaderContainerProps) => $tsflower_subst$React$ReactNode, renderScene: (props: { route: Route<string>, ... }) => $tsflower_subst$React$ReactNode, onOpenRoute: (props: { route: Route<string>, ... }) => void, onCloseRoute: (props: { route: Route<string>, ... }) => void, onTransitionStart?: (props: { route: Route<string>, ... }, closing: boolean) => void, onTransitionEnd?: (props: { route: Route<string>, ... }, closing: boolean) => void, onPageChangeStart?: () => void, onPageChangeConfirm?: (force: boolean) => void, onPageChangeCancel?: () => void, onGestureStart?: (props: { route: Route<string>, ... }) => void, onGestureEnd?: (props: { route: Route<string>, ... }) => void, onGestureCancel?: (props: { route: Route<string>, ... }) => void, gestureEnabled?: boolean, gestureResponseDistance?: { vertical?: number, horizontal?: number, ... }, gestureVelocityImpact?: number, mode: StackCardMode, headerMode: StackHeaderMode, headerShown: boolean, hasAbsoluteHeader: boolean, headerHeight: number, onHeaderHeightChange: (props: { route: Route<string>, height: number, ... }) => void, isParentHeaderShown: boolean, ... }; declare function CardContainer(Props): $tsflower_subst$React$JSX$Element; declare var _default: $tsflower_subst$React$MemoExoticComponent<typeof CardContainer>; export default _default; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Stack/CardContainer.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
806
```unknown /* @flow * @generated by TsFlower */ import type { ReactNode as $tsflower_subst$React$ReactNode, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; import { Animated } from 'react-native'; import { type EdgeInsets } from 'react-native-safe-area-context'; import { type ParamListBase, type Route, type StackNavigationState, } from '@react-navigation/native'; import { type Props as HeaderContainerProps } from '../Header/HeaderContainer'; import { type Layout, type StackHeaderMode, type StackCardMode, type Scene, type StackDescriptorMap, } from '../../types'; type GestureValues = { [key: string]: Animated.Value, ... }; type Props = { mode: StackCardMode, insets: EdgeInsets, state: StackNavigationState<ParamListBase>, descriptors: StackDescriptorMap, routes: Route<string>[], openingRouteKeys: string[], closingRouteKeys: string[], onOpenRoute: (props: { route: Route<string>, ... }) => void, onCloseRoute: (props: { route: Route<string>, ... }) => void, getPreviousRoute: (props: { route: Route<string>, ... }) => Route<string> | void, getGesturesEnabled: (props: { route: Route<string>, ... }) => boolean, renderHeader: (props: HeaderContainerProps) => $tsflower_subst$React$ReactNode, renderScene: (props: { route: Route<string>, ... }) => $tsflower_subst$React$ReactNode, headerMode: StackHeaderMode, isParentHeaderShown: boolean, onTransitionStart: (props: { route: Route<string>, ... }, closing: boolean) => void, onTransitionEnd: (props: { route: Route<string>, ... }, closing: boolean) => void, onPageChangeStart?: () => void, onPageChangeConfirm?: (force: boolean) => void, onPageChangeCancel?: () => void, onGestureStart?: (props: { route: Route<string>, ... }) => void, onGestureEnd?: (props: { route: Route<string>, ... }) => void, onGestureCancel?: (props: { route: Route<string>, ... }) => void, detachInactiveScreens?: boolean, ... }; type State = { routes: Route<string>[], descriptors: StackDescriptorMap, scenes: Scene<Route<string>>[], gestures: GestureValues, layout: Layout, headerHeights: { [key: string]: number }, ... }; declare export default class CardStack extends React.Component<Props, State> { getDerivedStateFromProps( props: Props, state: State, ): { routes: Route<string, { ... } | void>[], scenes: Scene<Route<string, { ... } | void>>[], gestures: GestureValues, descriptors: StackDescriptorMap, headerHeights: { [key: string]: number }, ... } | null; constructor(props: Props): any; handleLayout: any; handleHeaderLayout: any; getFocusedRoute: any; getPreviousScene: any; render(): $tsflower_subst$React$JSX$Element; } export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Stack/CardStack.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
724
```unknown /* @flow * @generated by TsFlower */ import type { StyleProp as $tsflower_subst$RN$StyleProp, ViewStyle as $tsflower_subst$RN$ViewStyle, } from 'tsflower/subst/react-native'; import type { JSX$Element as $tsflower_subst$React$JSX$Element } from 'tsflower/subst/react'; import 'react-native'; import { type Route } from '@react-navigation/native'; import { type EdgeInsets } from 'react-native-safe-area-context'; import { type Layout, type Scene, type StackHeaderStyleInterpolator, type GestureDirection, } from '../../types'; export type Props = { mode: 'float' | 'screen', layout: Layout, insets: EdgeInsets, scenes: Scene<Route<string>> | void[], getPreviousScene: (props: { route: Route<string>, ... }) => Scene<Route<string>> | void, getFocusedRoute: () => Route<string>, onContentHeightChange?: (props: { route: Route<string>, height: number, ... }) => void, styleInterpolator: StackHeaderStyleInterpolator, gestureDirection: GestureDirection, style?: $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, ... }; declare export default function HeaderContainer(Props): $tsflower_subst$React$JSX$Element; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Header/HeaderContainer.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
303
```unknown /* @flow * @generated by TsFlower */ import type { NamedExoticComponent as $tsflower_subst$React$NamedExoticComponent } from 'tsflower/subst/react'; import * as React from 'react'; import { type StackHeaderProps } from '../../types'; declare var _default: $tsflower_subst$React$NamedExoticComponent<StackHeaderProps>; export default _default; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Header/Header.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
89
```unknown /* @flow * @generated by TsFlower */ import type { ViewProps as $tsflower_subst$RN$ViewProps, WithAnimatedValue as $tsflower_subst$RN$Animated$WithAnimatedValue, StyleProp as $tsflower_subst$RN$StyleProp, ViewStyle as $tsflower_subst$RN$ViewStyle, } from 'tsflower/subst/react-native'; import type { ReactNode as $tsflower_subst$React$ReactNode, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; import { Animated } from 'react-native'; type Props = $tsflower_subst$RN$ViewProps & { style?: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$ViewStyle>, >, children?: $tsflower_subst$React$ReactNode, ... }; declare export default function HeaderBackground(Props): $tsflower_subst$React$JSX$Element; export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Header/HeaderBackground.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
251
```unknown /* @flow * @generated by TsFlower */ import type { ReactNode as $tsflower_subst$React$ReactNode, JSX$Element as $tsflower_subst$React$JSX$Element, } from 'tsflower/subst/react'; import * as React from 'react'; import { type EdgeInsets } from 'react-native-safe-area-context'; import { type Route } from '@react-navigation/native'; import { type Layout, type StackHeaderStyleInterpolator, type StackHeaderTitleProps, type StackHeaderOptions, type Scene, } from '../../types'; type Props = StackHeaderOptions & { headerTitle: (props: StackHeaderTitleProps) => $tsflower_subst$React$ReactNode, layout: Layout, insets: EdgeInsets, onGoBack?: () => void, title?: string, leftLabel?: string, scene: Scene<Route<string>>, styleInterpolator: StackHeaderStyleInterpolator, ... }; declare export var getDefaultHeaderHeight: (layout: Layout, statusBarHeight: number) => number; declare export default function HeaderSegment(props: Props): $tsflower_subst$React$JSX$Element; export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Header/HeaderSegment.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
252
```unknown /* @flow * @generated by TsFlower */ import type { PartialState as $tsflower_import_type$_$_40_react_2d_navigation_2f_native$PartialState } from '@react-navigation/native'; import type { Readonly } from 'tsflower/subst/lib'; import type { JSX$Element as $tsflower_subst$React$JSX$Element } from 'tsflower/subst/react'; import * as React from 'react'; import { type StackNavigationState, type Route, type ParamListBase, } from '@react-navigation/native'; import { type StackNavigationHelpers, type StackNavigationConfig, type StackDescriptorMap, } from '../../types'; type Props = StackNavigationConfig & { state: StackNavigationState<ParamListBase>, navigation: StackNavigationHelpers, descriptors: StackDescriptorMap, ... }; type State = { routes: Route<string>[], previousRoutes: Route<string>[], previousDescriptors: StackDescriptorMap, openingRouteKeys: string[], closingRouteKeys: string[], replacingRouteKeys: string[], descriptors: StackDescriptorMap, ... }; declare export default class StackView extends React.Component<Props, State> { getDerivedStateFromProps( props: Readonly<Props>, state: Readonly<State>, ): | { routes: Route<string, { ... } | void>[], previousRoutes: Route<string, { ... } | void>[], descriptors: StackDescriptorMap, previousDescriptors: StackDescriptorMap, openingRouteKeys?: void, closingRouteKeys?: void, replacingRouteKeys?: void, ... } | { routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & any[], type: string, stale: false, ... }> | $tsflower_import_type$_$_40_react_2d_navigation_2f_native$PartialState< Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & any[], type: string, stale: false, ... }>, > | void, ... }[], previousRoutes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & { state?: | Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & any[], type: string, stale: false, ... }> | $tsflower_import_type$_$_40_react_2d_navigation_2f_native$PartialState< Readonly<{ key: string, index: number, routeNames: string[], history?: mixed[] | void, routes: Readonly<{ key: string, name: string, ... }> & Readonly<{ params?: { ... } | void, ... }> & any[], type: string, stale: false, ... }>, > | void, ... }[], previousDescriptors: StackDescriptorMap, openingRouteKeys: string[], closingRouteKeys: string[], replacingRouteKeys: string[], descriptors: StackDescriptorMap, ... }; state: State; getGesturesEnabled: any; getPreviousRoute: any; renderScene: any; renderHeader: any; handleOpenRoute: any; handleCloseRoute: any; handleTransitionStart: any; handleTransitionEnd: any; handleGestureStart: any; handleGestureEnd: any; handleGestureCancel: any; render(): $tsflower_subst$React$JSX$Element; } export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Stack/StackView.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
956
```unknown /* @flow * @generated by TsFlower */ import type { TextProps as $tsflower_subst$RN$TextProps, WithAnimatedValue as $tsflower_subst$RN$Animated$WithAnimatedValue, StyleProp as $tsflower_subst$RN$StyleProp, TextStyle as $tsflower_subst$RN$TextStyle, } from 'tsflower/subst/react-native'; import type { JSX$Element as $tsflower_subst$React$JSX$Element } from 'tsflower/subst/react'; import { Animated } from 'react-native'; type Props = $Diff<$tsflower_subst$RN$TextProps, {| style: mixed |}> & { tintColor?: string, children?: string, style?: $tsflower_subst$RN$Animated$WithAnimatedValue< $tsflower_subst$RN$StyleProp<$tsflower_subst$RN$TextStyle>, >, ... }; declare export default function HeaderTitle(Props): $tsflower_subst$React$JSX$Element; export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Header/HeaderTitle.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
229
```unknown /* @flow * @generated by TsFlower */ declare export default function memoize< Result, Deps: /* tsflower-warning: unimplemented: 'readonly' as type operator */ any[] /* readonly any[] */, >( callback: (...deps: Deps) => Result, ): (...dependencies: Deps) => Result; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/memoize.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
75
```unknown /* @flow * @generated by TsFlower */ import type { JSX$Element as $tsflower_subst$React$JSX$Element } from 'tsflower/subst/react'; import { type StackHeaderLeftButtonProps } from '../../types'; type Props = StackHeaderLeftButtonProps; declare export default function HeaderBackButton(Props): $tsflower_subst$React$JSX$Element; export {}; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/views/Header/HeaderBackButton.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
89
```unknown /* @flow * @generated by TsFlower */ import { type GestureDirection, type Layout } from '../types'; declare export default function getDistanceForDirection( layout: Layout, gestureDirection: GestureDirection, ): number; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/getDistanceForDirection.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
51
```unknown /* @flow * @generated by TsFlower */ declare export default function debounce<T: (...args: any[]) => void>(func: T, duration: number): T; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/debounce.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
39
```unknown /* @flow * @generated by TsFlower */ import type { PanGestureHandler as $tsflower_import_type$_$react_2d_native_2d_gesture_2d_handler$PanGestureHandler } from 'react-native-gesture-handler'; import type { Context as $tsflower_subst$React$Context, Ref as $tsflower_subst$React$Ref, } from 'tsflower/subst/react'; import * as React from 'react'; declare var _default: $tsflower_subst$React$Context< $tsflower_subst$React$Ref<$tsflower_import_type$_$react_2d_native_2d_gesture_2d_handler$PanGestureHandler>, >; export default _default; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/GestureHandlerRefContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
158
```unknown /* @flow * @generated by TsFlower */ import { type GestureDirection } from '../types'; declare export default function getInvertedMultiplier(gestureDirection: GestureDirection): 1 | -1; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/getInvertedMultiplier.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
45
```unknown /* @flow * @generated by TsFlower */ declare export default function useFloatingHeaderHeight(): number; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/useHeaderHeight.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
25
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; import { type StackCardInterpolationProps } from '../types'; declare var _default: $tsflower_subst$React$Context<StackCardInterpolationProps | void>; export default _default; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/CardAnimationContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
86
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; import { type Route } from '@react-navigation/native'; import { type Scene } from '../types'; declare var PreviousSceneContext: $tsflower_subst$React$Context<Scene< Route<string, { ... } | void>, > | void>; export default PreviousSceneContext; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/PreviousSceneContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
103
```unknown /* @flow * @generated by TsFlower */ import type { StackCardInterpolationProps as $tsflower_import_type$_$_2e__2e_$StackCardInterpolationProps } from '..'; declare export default function useCardAnimation(): $tsflower_import_type$_$_2e__2e_$StackCardInterpolationProps; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/useCardAnimation.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
72
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; declare var HeaderShownContext: $tsflower_subst$React$Context<boolean>; export default HeaderShownContext; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/HeaderShownContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
68
```unknown /* @flow * @generated by TsFlower */ import type { AnimatedInterpolation as $tsflower_subst$RN$Animated$AnimatedInterpolation, AnimatedAddition as $tsflower_subst$RN$Animated$AnimatedAddition, } from 'tsflower/subst/react-native'; import { Animated } from 'react-native'; declare export default function conditional( condition: $tsflower_subst$RN$Animated$AnimatedInterpolation, main: $tsflower_subst$RN$Animated$AnimatedInterpolation, fallback: $tsflower_subst$RN$Animated$AnimatedInterpolation, ): $tsflower_subst$RN$Animated$AnimatedAddition; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/conditional.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
146
```unknown /* @flow * @generated by TsFlower */ import type { PanGestureHandler as $tsflower_import_type$_$react_2d_native_2d_gesture_2d_handler$PanGestureHandler } from 'react-native-gesture-handler'; import type { Ref as $tsflower_subst$React$Ref } from 'tsflower/subst/react'; import * as React from 'react'; declare export default function useGestureHandlerRef(): $tsflower_subst$React$Ref<$tsflower_import_type$_$react_2d_native_2d_gesture_2d_handler$PanGestureHandler>; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/useGestureHandlerRef.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
130
```unknown /* @flow * @generated by TsFlower */ import type { Context as $tsflower_subst$React$Context } from 'tsflower/subst/react'; import * as React from 'react'; declare var _default: $tsflower_subst$React$Context<number | void>; export default _default; ```
/content/code_sandbox/types/@react-navigation/stack/lib/typescript/src/utils/HeaderHeightContext.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
68
```unknown /* @flow * @generated */ export * from './lib/typescript/src/index.js.flow'; ```
/content/code_sandbox/types/@react-navigation/material-top-tabs/index.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
22
```unknown /* @flow * @generated by TsFlower */ export { default as createMaterialTopTabNavigator } from './navigators/createMaterialTopTabNavigator'; export { default as MaterialTopTabView } from './views/MaterialTopTabView'; export { default as MaterialTopTabBar } from './views/MaterialTopTabBar'; export { MaterialTopTabNavigationOptions, MaterialTopTabNavigationProp, MaterialTopTabScreenProps, MaterialTopTabBarProps, MaterialTopTabBarOptions, } from './types'; ```
/content/code_sandbox/types/@react-navigation/material-top-tabs/lib/typescript/src/index.js.flow
unknown
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
113