65 Commits

Author SHA1 Message Date
Peter Piekarczyk
44a65fc5a1 Add Syntax highlighting to Redux-Integration.md (#2355)
* Add Syntax highlighting to Redux-Integration.md

* Update Redux-Integration.md
2017-09-15 16:21:16 -05:00
Spencer Carli
6efca5d2dd Fix code block and add export default. 2017-09-15 16:01:26 -05:00
Spencer Carli
65313ab523 Merge branch 'master' into master 2017-09-15 15:51:53 -05:00
Kevin Cooper
19babadf38 Fix the NavigationPlayground example! (#2170)
* [Playground] Commit auto-changes to package.json, yarn.lock

* [Playground] Rerun create-react-native-app

Preserving rn-cli.js and transformer.js

Still not quite working.

* [Playground] Fix the Expo loading issue by removing projectRoots

Now it looks in the right place to find its resources, including 'entryPoint'.

* [Playground] Add postinstall script to clean up files Yarn copies in

Yarn copies them when installing locally, causing lots of @providesModule collisions.

* Update the Contributors guide to explain how to use the example app

And recommend Yarn by default

* [Playground] Remove now-obsolete rn-cli.config.js

* [Playground] Upgrade expo and other dependencies

* [Playground] Don't delete .git just in case
2017-09-06 10:36:20 -05:00
Andréas Hanss
024297b014 Add documentation to help handling Hardware Back Button in Android (#2486) 2017-08-30 16:34:46 -05:00
Satrio Adi Prabowo
e91e820823 Fixed conflict 2017-08-29 23:39:50 +07:00
probeadd
1b0c417633 Fixed 2017-08-29 23:36:30 +07:00
probeadd
7ee535cbd7 Fixed from review 2017-08-29 17:25:11 +07:00
probeadd
d95f01f552 #Provide intro for create-react-native-app and react-native init 2017-08-12 12:58:27 +07:00
Scott Brady
cc22138b19 Adding reset key documentation (#1297) 2017-07-10 20:46:29 -05:00
Nimrod Argov
a849eefc90 Add doc note for nesting wrapped navigator (#1947)
After having to look for a solution for nesting a navigator embedded in a component, found this issue that dealt with the same problem: https://github.com/react-community/react-navigation/issues/90.
Added the solution to the guide as a side note.
2017-06-23 17:18:13 -07:00
Ron Arts
7138f8ccd5 Clarify in docs that npm install in main dir is needed for NavigationPlayground (#1712)
Updated documentation on running the NavigationPlayground example
2017-06-22 09:08:52 -05:00
G. Kay Lee
f3ca1de867 Update Screen-Nav-Options.md (#1793)
Fix grammatical error in docs
2017-06-21 21:36:15 -05:00
JSON Deppen
bff7d0778b Update broken links (#1696) 2017-06-03 12:21:39 -07:00
Rich Gilbank
4c953e0e8f Fixes NavigationActions docs links 2017-05-07 11:25:06 +05:30
Gabriel Handford
d32f6e4ac6 Fix navigator links (#1259) 2017-04-27 13:37:05 +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
Kevin Cooper
655b46b60b Improve the Redux docs (#1172)
* [ReduxExample] Programmatically generate initial state

* [ReduxExample] Return original state if nextState is null

* [Docs] Add getStateForAction to redux integration example

* [Docs] Add link to ReduxExample app

* [Docs] Give each example a 'DRY' README linking to real docs

* [Docs] Clean up the Contributors guide a bit

* [Docs] Remove numbers from sections in Contributors guide

They don't seem very meaningful, and don't need to be done in order
2017-04-25 11:48:54 +02:00
Melih
4a4a563e99 Update Screen-Nav-Options.md (#1211)
* Update Screen-Nav-Options.md

* Apply some tweaks
2017-04-24 11:22:37 -07:00
Mike Grabowski
5905501183 Update Redux-Integration.md (#1184) 2017-04-24 11:52:47 +02:00
Mike Grabowski
a252b46c50 Breaking: Replace containerOptions with just props (#1100) 2017-04-19 14:10:50 +05:30
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
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
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
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
Juwan Wheatley
a268d67b53 Adds documentation about forking and syncing repo (#765) 2017-03-22 05:42:18 +05:30
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
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
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
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
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
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
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
Elliott Ro
00b76c5423 Clarify nav prop dispatch doc (#162) 2017-02-05 02:36:18 +05:30
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