84 Commits

Author SHA1 Message Date
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
Koen Punt
5ca45e0aa5 add command to open URI in the iOS simulator (#909) 2017-04-04 21:01:30 -07:00
Mauricio Pasquier Juan
2a050da960 Fix wrong param name in the guides (#911)
The text used `name` as param but the examples used `user` instead.
2017-04-04 21:00:37 -07:00
Michel Maubert
e8726c1e68 add jest config for react-navigation in docs (#256) (#331)
* add jest config for react-navigation in docs (#256)

* Docs: Update redux-integration guide #246
2017-04-04 10:02:21 -07:00
Sabbir Ahmed
83f8a44219 Docs: Added clarification for header configuration (#891) 2017-04-03 07:07:47 +05:30
Juwan Wheatley
b0c05e5977 Fix rebase commands (#870) 2017-03-30 23:28:09 +05:30
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
PhpGuyZim
8196f62335 Update Guide-Nested.md (#813)
* Update Guide-Nested.md

Docs do not indicate that you must import the necessary module.

* Update Guide-Nested.md
2017-03-29 00:36:21 -07:00
Javier Olaechea
65e71042d5 Docs: Update md links from coodoo's fork to react-community (#750) 2017-03-22 13:51:16 -07:00
Elliott Ro
dff746a83c Navigation Actions Doc (#338)
* Initial saving

* Updated docs

* Adding navigation actions into website App.js

* Updated navigation prop structure

* Added in missing link
2017-03-22 12:10:34 -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
Juwan Wheatley
a268d67b53 Adds documentation about forking and syncing repo (#765) 2017-03-22 05:42:18 +05:30
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
Neo
bbab489a6a Update Screen-Tracking.md (#549) 2017-03-03 12:28:58 +05:30
Taylor Hurt
99583d2a64 Update Screen-Tracking.md (#545)
* Update Screen-Tracking.md

updated names in the onNavigationStateChange example function

* Update Screen-Tracking.md
2017-03-02 16:01:50 +01:00
Bartol Karuza
2df983516b add import to clarify source of helper (#517)
* add import to clarify source of helper

It took me a while to figure out where 'addNavigationHelpers' comes from, maybe adding the import in the doc here will help the next guy.

* add spaces around imported value

* removed empty line
2017-03-01 13:18:08 +01: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
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