102 Commits

Author SHA1 Message Date
Mike Grabowski
be09d50f22 Update router guide (#1207) 2017-04-24 09:27:06 -07:00
Neo
6b8cb793b4 Add support for custom transitionConfig (#1187)
* Fix transitionConfig regression

* Fix flow

* Add doc

* Update StackNavigator.md

* Update StackNavigator.md

* Update CardStackTransitioner.js

* Update TypeDefinition.js
2017-04-24 14:31:44 +02:00
Mike Grabowski
0f6b328687 Add an ability to disable built-in logger (#1115)
* Fix logger

* Update Navigators.md

* Update Navigators.md
2017-04-24 11:08:36 +02:00
Daniel Schmidt
c8062d014c docs: add remark about nesting (#1121)
This relates to #709
2017-04-23 20:21:15 +02:00
Ville Immonen
c384e3371c Add a config to override the truncated back title (#1137)
Fixes #1136.
2017-04-22 08:26:31 +02:00
Thomas Subera
046acd2b5e Allow tabBarLabel to be also a function again (#1156)
This fixes #1024
2017-04-22 08:11:45 +02:00
Mike Grabowski
a252b46c50 Breaking: Replace containerOptions with just props (#1100) 2017-04-19 14:10:50 +05:30
Edwin Tsatsu
c5f8c8b34d removed reptiton of headerBackTitle text (#1076) 2017-04-17 07:15:06 -07:00
Mike Grabowski
4c55887990 Fix regressions in Header (#1027)
* Fix warnings and errors with Header

* bring back deleted docs

* headerLeft can be null
2017-04-13 22:56:42 +02:00
Joe McKie
44e78f8644 Fix typo in StackRouter.md (#975) 2017-04-12 17:01:40 -07:00
Mike Grabowski
93976d358e Introducing flat options (#984)
* Initial commit

* Remove HybridExample (#985)

* Remove HybridExample

* Remove last mention of HelloHybrid

* Remove console log

* Fix flow and example

* Fix routers api docs

* Keep options in single place

* chore

* Fix styling

* Organise miscs

* Better flow type for screen options

* Flow test website and add more types to options

* navigationOptions instead of prevOptions makes more sense

* Fixes

* Fix up docs

* Fix

* Update route decl

* Provide error when removed API is used

* Remove lock

* Add validators

* Make StacksOverTabs config valid again

* Do not return

* Fix redbox
2017-04-12 15:49:08 -07:00
Navid Taha
96a34db809 Add iconStyle prop to tabBarOptions for TabBarTop (#965) 2017-04-08 23:32:52 +05:30
Jamie Parkinson
31c538413e Add pressColor to StackNavigator header options (#926)
* Add pressColor to StackNavigator header options

* Rename pressColor -> pressColorAndroid for StackNavigator
2017-04-07 09:02:43 -07:00
Grzegorz Mandziak
3cee5c30fa Possibility to overwrite label's style if defined as string. (#731)
* Added option to overwrite label style for only if label is as string defined in navigationOptions in DrawerNavigation.

* update doc for labelStyle prop

* change title to label
2017-03-30 09:20:56 +05:30
Bernhard
84d284d591 add example for DrawerNavigatorConfig (#552)
* add example for DrawerNavigatorConfig

* add explanation for the example
2017-03-30 09:16:29 +05:30
Javier Olaechea
65e71042d5 Docs: Update md links from coodoo's fork to react-community (#750) 2017-03-22 13:51:16 -07:00
Cai Leao
498f329005 Update documentation regarding DrawerNavigator customisation (#646)
* Update documentation regarding `DrawerNavigator` customisation

* Updated docs as requested in the PR.
2017-03-22 12:09:10 -07:00
Karan Thakkar
c5f2475182 fix(docs): Fix incorrect style in TabNavigator sample (#734)
The example provides styling for the tab icon via the `icon` property in the styles object. However in the example, it is used as `tabIcon` which does not exist.
2017-03-19 17:43:15 +05:30
mbaroukh
0820366a1c correction of a few documentation typo (#563) 2017-03-16 15:35:53 -07:00
Yann Pringault
255a4361aa Fix typo in docs for getComponentForRouteName (#714) 2017-03-16 15:30:02 -07:00
Christoph Jerolimov
b009db9446 Remove 2nd return statement (#661) 2017-03-16 11:56:50 -07:00
Jordan Hayashi
eb6646f6da Make TabNavigator code example formatting consistent (#462)
* Make TabNavigator code example formatting consistent

* Fix typo in StackRouter docs
2017-03-06 22:50:12 -08:00
Mike Grabowski
26b165200f Add onNavigationStateChange (#453)
* Support

* Revert consoleg

* Add very bad doc

* Improve docs

* Surpress flow
2017-02-23 22:18:06 -08:00
Mike Grabowski
71e8c95b34 Add React.Element support for TabBar/Drawer and fix docs (#451)
* Initial impl

* Fix up some docs and support more for drawer

* Fix comments

* Support TabBar

* Make flow more correct

* Clarify even more

* Rename all the things lol

* Also rename renderLabel to getLabel
2017-02-23 20:39:11 +05:30
Matt Hamil
fb856ba06d Move Navigation Containers and containerOptions into Navigators API docs (#409)
* Removed Navigation Containers and containerOptions

Cut out text to move to navigators docs page

* Moved nav containers section to Navigators API docs
2017-02-21 20:45:19 -08:00
Ashoat
2d0a7fa4ed Make it possible for a screen to set gesturesEnabled (#385)
Closes #292
2017-02-21 02:52:15 +05:30
Mike Grabowski
79f21277cb Add back button label to header (#257) 2017-02-20 05:09:56 +05:30
Evan Turner
24044e15d2 Add missing characters to navigators api doc (#264) 2017-02-09 23:11:46 +05:30
kameyin
fe968c2003 React Native Buttons use title, not label. 2017-02-09 13:10:54 +05:30
James Long
a01e88f7c4 Update Transitioner.md
This API must have changed; after pulling from master I needed to update my code.
2017-02-09 02:32:17 +05:30
William Schurman
b9bc386a4b Pass through screenProps to nested navigators
This changes the behaviour of screenProps so that the props no longer get splatted.
Components will receive this as `this.props.screenProps`.
2017-02-09 01:27:56 +05:30
kylpo
acc893d8e8 Add showLabel prop to tabBarBottom (#234) 2017-02-08 22:24:02 +05:30
juhasuni
307632b575 Expose onTransitionStart/End props to StackNavigator (#230)
* Add onTransitionStart/End options to StackNavigator 'stackConfig'

* Add documentation for onTransitionStart/End options

* Define onTransitionStart/End props optional
2017-02-08 08:53:41 -08:00
Harkirat Saluja
80016d2fe8 Update DrawerNavigator.md (#212)
Button requires a title prop, and its same in other pages(tabbarNavigator, stackbarNavigator) but here it is label.
2017-02-08 00:23:44 +05:30
Jakub Stasiak
aead8ff9fb Add withNavigation HOC (#137) 2017-02-06 18:58:04 +05:30
Jason Sendros
d2fc150f69 Replace usage of label with title prop for Buttons (#194) 2017-02-06 08:29:11 +05:30
Daniel Hood
eece5ad56a Add titleStyle to header (#176) 2017-02-05 03:42:33 +05:30
Jakob Hilden
8d722f43e9 Implement labelStyle for TabBarBottom (#173) 2017-02-04 18:03:38 +05:30
Sagiv Ofek
567b99a2d8 Docs: add info about calling nav from same level component (#122)
* Use es6 default values for initial state

* Docs: add info about calling nav from same level component

* Docs: add info about calling nav from same level component update
2017-02-03 09:03:26 -08:00
juhasuni
a64eb46c9c Add support for cardStyle prop (#106)
* Add support for cardStyle prop

* Add documentation for cardStyle prop
2017-02-01 19:31:24 -08:00
Jeff Carbonella
2e6f7a015f Use redux constants and action creator functions (#120) 2017-02-02 02:57:51 +05:30
Jeremy Lu
b805978d9b Add screenProps example and improve docs (#101) 2017-02-02 02:57:05 +05:30
Mike Grabowski
7a20389e04 Refactor header, tintColor support, redesign iOS back button (#109) 2017-02-02 02:50:12 +05:30
Nicolas Beck
5d5d83c582 fixed initialRouteName documentation (#121)
https://github.com/react-community/react-navigation/issues/119
2017-01-31 18:26:42 -08:00
Ferran Negre
123bce5402 Added drawerPosition prop to DrawerView. Fixes #87 (#89) 2017-01-30 22:14:57 +05:30
Gustavo Machado
5f4c335e51 Minor fix in the "Screen Navigation Options" sample (state undefined) (#41)
The current code as it was, depended on the "state" param, but the title was being defined as a string template literal.
2017-01-27 23:12:42 +05:30
Mike Grabowski
7c0fcc6cf5 Add header.left property (#29)
* Add header.left property

* Add docs

* Updates

* Update

* Remove unused param

* Update'

* fix

* Make sure to guard undefined defaultProps
2017-01-27 16:48:26 +00:00
Phil Rajchgot
c34a6d5682 Remove typo from router docs (#39) 2017-01-27 21:26:38 +05:30
Mike Grabowski
a60607385b Allow CardStack default header to receive a custom style 2017-01-27 17:42:12 +05:30
Mike Grabowski
0c99035562 Implement default navigationOptions (#1)
* Bring back 222 impl.

* Add it for TabNavigator

* Fix eslint issues and flow in the file

* First attempt at the docs

* Include docs

* Fix some typos
2017-01-27 11:33:03 +00:00