55 Commits

Author SHA1 Message Date
Javier Cuevas
fdb5faae7e Fix redux documentation (#450)
I think the navigation key for the redux store should be `nav` and not `navReducer`.
2017-02-23 10:57:10 +01:00
Satyajit Sahoo
e0c1c95e6f Remove screen tracking without redux (#449)
This is a hack and we shouldn't put it in official documentation.
2017-02-23 10:40:40 +01:00
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
Mike Grabowski
62025cc8be Update StackNavScreen docs (#411)
Remove confusing mention of `color`
2017-02-21 20:15:42 -08:00
Angelo
8e1b6e9042 Updated the reducer (#431)
When the drawer opens / close, the result of AppNavigator.router.getStateForAction(action, state); is null. So the nav state in the store is null which causes errors. This solves that.
2017-02-21 20:15:30 -08:00
David Cameron
3a1766cb78 Update 2017-01-Introducing-React-Navigation.md (#410) 2017-02-22 07:19:59 +05:30
Ashoat
2d0a7fa4ed Make it possible for a screen to set gesturesEnabled (#385)
Closes #292
2017-02-21 02:52:15 +05:30
hysan
257ce3eff9 Updated Hello Mobile Navigation for clarity (#265)
Per request [#228](https://github.com/react-community/react-navigation/issues/228), I've updated the the Hello Mobile Navigation guide to try and make it more approachable to newcomers like myself. I changed the order of some of the explanations and broke out passing params into its own section. This should make the guide easier to follow as only one new concept is introduced per section; a common principle in teaching methodology.

I'm open to suggestions as I am also a newcomer to both React Native and React Navigation. So it's very possible that there are concepts that I've misunderstood or am not explaining well.
2017-02-20 10:02:34 -08:00
Mike Grabowski
79f21277cb Add back button label to header (#257) 2017-02-20 05:09:56 +05:30
rmevans9
e30ac63f79 Make future proof (and also fix it for the current beta) (#322) 2017-02-16 19:54:16 +05:30
Jonathan Lalande
296e83abed Remove uncompleted sentence in Contributors guide. (#280) 2017-02-10 17:24:48 +01:00
Evan Turner
24044e15d2 Add missing characters to navigators api doc (#264) 2017-02-09 23:11:46 +05:30
Li Lin
163d5e4c07 Add code sample for google analytics integration (#107) 2017-02-09 19:40:16 +05:30
Hilke Heremans
73426e8015 Add clarification for Redux <-> Nested Navigators (#26)
* Add clarification for Redux <-> Nested Navigators

See also https://github.com/react-community/react-navigation/issues/16

* Update per comments

* Update per comments in PR #26
2017-02-09 10:28:19 +01:00
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
microwavesafe
edad95a96d Add visible param to TabBar (#152) 2017-02-08 02:51:37 +05:30
Taylor Hurt
1c6c4c4c29 Update Screen-Nav-Options.md (#218)
fix link
2017-02-08 02:31:46 +05:30
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
Eli Perkins
207a5cc0b6 Fix typo in deep linking schema (#204)
This matches the rest of the definitions of the URI schema later on in the documentation and examples.
2017-02-07 08:39:10 -08:00
Mark Florisson
77ec01296f Elaborate on how to use the reset action in docs (#213) 2017-02-07 08:38:54 -08:00
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
Elliott Ro
00b76c5423 Clarify nav prop dispatch doc (#162) 2017-02-05 02:36:18 +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
Matteo Mazzarolo
8bbe951e5b Fixed reset action docs (#157)
- Added the index
- Actions is now an array
Related to https://github.com/react-community/react-navigation/issues/59#issuecomment-276972783
2017-02-02 08:40:02 -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
Alexey Pronevich
68658c49f2 Update Guide-Headers.md (#114)
this.props must be in render
2017-01-31 17:17:50 +01:00
Kees Kluskens
4c45063662 Fix typo in screen navigation prop (#111) 2017-01-31 19:17:28 +05:30
Taylor Hurt
43957b298e Fix typos and corrections in header guide (#102) 2017-01-31 08:47:43 +05:30
Ferran Negre
123bce5402 Added drawerPosition prop to DrawerView. Fixes #87 (#89) 2017-01-30 22:14:57 +05:30
Michael Guida
af7c3a3324 Fix 'setting the header title' example (#56) 2017-01-28 16:03:36 +05:30
jamesmbowler
bacc023385 Fix minor typos (#43) 2017-01-28 00:21:49 +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
Antoine Lucas
7c1a95d7a9 Fix code's string to be coherent with screenshot (#22) 2017-01-27 15:56:19 +00:00
Mateusz Zatorski
e4f4575104 Update the guide for Default Navigation Options (#25) 2017-01-27 19:48:01 +07:00
Mike Grabowski
a60607385b Allow CardStack default header to receive a custom style 2017-01-27 17:42:12 +05:30
Hilke Heremans
d9a008f000 Correct Redux example with addNavigationHelpers (#24) 2017-01-27 17:24:40 +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