54 Commits

Author SHA1 Message Date
Daniel Schmidt
b19beda0a7 Add NavigationPlayground Expo Demo (#1523)
* use react-navigation as dependency
* add expo based playground app
* name expo playground demo in the docs
* add ci task to deploy playground demo
2017-05-15 16:55:10 -07:00
Tim Liu
a9de445015 Variable name consistency (#1452) 2017-05-12 14:37:55 -07:00
kdenz
79a67d9114 Minor update (#1491)
styles.tabIcon leads to nowhere, only has styles.icon
2017-05-12 14:37:15 -07:00
Des Preston
f61ce3d46a clarify title option
If you attempt to use something other than a string, it will throw an error in some situations. #1318 provides more details about the error. If it is expecting a certain type, the docs should clarify that.
2017-05-07 11:35:57 +05:30
Koen Punt
c04ea5b492 add headerBackTitleStyle screen option (#1083)
* add headerBackTitleStyle screen option

since the title is customizable, the back title should too.

* add documentation for `headerBackTitleStyle`

* make absence of headerBackTitle not affect return value

* merge styles so current scene can override

If there's no last scene, return the `headerBackTitleStyle` from the
current scene.
Otherwise return the `headerTitleStyle` from the last scene, and the
`headerBackTitleStyle` from the current scene, with the latter having
precedence.

* take headerBackTitleStyle from current scene

also the title style of the last scene is no longer taken into account
2017-04-28 07:55:15 +02:00
Dave Bennett
aa7fe56bb4 Modal gestureEnabled (#1243)
* Fix Modal Gestures

* Update StackNavigator.md for gesturesEnabled to include modals again

* Remove modal gesture todo

* Gesture response distance top, side => vertical, horizontal
2017-04-26 18:25:25 +05:30
Mike Grabowski
2b24492370 Make header configurable (#1220)
* Initial commit

* Remove null mention

Technically, it's possible, though it's not recommended approach. People should use `headerVisible`.

* Update SimpleStack.js

* Updates

* Remove headerVisible

* Fix docs

* Fix flow

* Bring back validation

* Fix import
2017-04-26 13:34:21 +02:00
Satyajit Sahoo
0cd3eaa97a BREAKING: Update React Native TabView (#1218) 2017-04-25 21:47:29 +02:00
Mike Grabowski
c39dd9d45f Export all the things (#1219)
* Initial

* Add missing title

* Fix style and ref issues
2017-04-25 14:23:09 +05:30
maxkomarychev
75921cfddd Respect gesturesEnabled (#1147)
* Use flag value from screen details

* Only respect `gesturesEnabled` when `mode === card`

* Update docs
2017-04-24 10:51:08 -07:00
Mike Grabowski
47285bf5d6 Update docs on headerLeft/Right (#1203) 2017-04-24 10:47:42 -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
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
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
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
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
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