Commit Graph
3 Commits
Author SHA1 Message Date
Alex Gentile db7d524bd2 Update index.d.ts
reverted formatting
2017-05-09 22:23:46 -07:00
agentile 66d3ea01bf fix: navigation prop should be optional
When using StackNavigator, there are times when you would like to trigger custom side effects on
navigation by setting the "onNavigationStateChange" prop, but don't want to override default
navigation. This PR allows for that.
2017-05-09 20:24:17 -07:00
huhuanming 7547cd219a Add React navigation (#16223)
* Add react-navigation Types

* Add actions

Functions : https://reactnavigation.org/docs/navigators/navigation-actions
Note: the `type` option has to be optional because if not, we have to add it when we use one of actions.

* Support of Screen Navigation Options

For Stack, Tab and Drawer

* Add Generic for NavigationNavigatorProps params

* NavigationParams: any type of param

* Add Tab and Drawer Navigators

* Use of ViewStyle and TextStyle

* Improve tsconfig.json && tslint.json

* Add Test

* fix test

* fix lint
2017-05-01 12:35:36 -07:00