mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-06 09:19:08 +00:00
Merge pull request #17631 from iRoachie/react-navigation
[react-navigation] Added StackRouter and TabRouter
This commit is contained in:
25
types/react-navigation/index.d.ts
vendored
25
types/react-navigation/index.d.ts
vendored
@@ -5,6 +5,7 @@
|
||||
// fangpenlin <https://github.com/fangpenlin>
|
||||
// abrahambotros <https://github.com/abrahambotros>
|
||||
// petejkim <https://github.com/petejkim>
|
||||
// Kyle Roach <https://github.com/iRoachie>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -633,6 +634,30 @@ export class Transitioner extends React.Component<
|
||||
TransitionerState
|
||||
> { }
|
||||
|
||||
|
||||
/**
|
||||
* Tab Router
|
||||
*
|
||||
* @desc from react-navigation/src/routers/TabRouter.js
|
||||
* @param routeConfigs
|
||||
* @param config
|
||||
*/
|
||||
export function TabRouter(
|
||||
routeConfigs: NavigationRouteConfigMap,
|
||||
config: NavigationTabRouterConfig
|
||||
): NavigationRouter<any, any, any>
|
||||
|
||||
/**
|
||||
* Stack Router
|
||||
*
|
||||
* @desc from react-navigation/src/routers/StackRouter.js
|
||||
* @param routeConfigs
|
||||
* @param config
|
||||
*/
|
||||
export function StackRouter(
|
||||
routeConfigs: NavigationRouteConfigMap,
|
||||
config: NavigationTabRouterConfig
|
||||
): NavigationRouter<any, any, any>
|
||||
/**
|
||||
* END MANUAL DEFINITIONS OUTSIDE OF TYPEDEFINITION.JS
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user