244 Commits

Author SHA1 Message Date
Daniel Friesen
1bb0b84c26 Swap Platform preference for title alignment (#997)
Centered titles are generally specific to iOS, left alignment of the title appears more common in platforms outside Android and iOS.

This also fits better with the rest of the conditionals that test for iOS instead of Android.
2017-04-18 13:38:35 +02:00
Joe McKie
633d4819ec Update flow-react-proptypes to ^1.2.0 (#1084) 2017-04-18 11:27:34 +02:00
Ville Immonen
77313a2a0b Fix screenProps not being passed through to CardStack (#1051)
`screenProps` were not being passed to `CardStack` and consequently not
available for the navigationOptions function in components using
`StackNavigator`.
2017-04-17 07:16:41 -07:00
Edwin Tsatsu
c5f8c8b34d removed reptiton of headerBackTitle text (#1076) 2017-04-17 07:15:06 -07:00
Mike Grabowski
7165efce02 Upgrade babel-plugin-flow-prop-types (#1045)
* Fix build

* Latest version fixes Header

* Fix propTypes from react-native leaking to web context

* Update todo notice
2017-04-14 17:38:52 +05:30
Mike Grabowski
cf6564b3e5 Move prop-types to dependencies (#1042)
* Move `prop-types` to dependencies

* Update package.json

* Update CardStackTransitioner.js
2017-04-14 11:41:39 +05:30
Mike Grabowski
e2f5e7fd49 Automatically generate prop-types from Flow (#1033)
* Automatically generate prop-types from Flow

* Remove propTypes usage

* Fix flow

* Modify some eslint settings

* Fix flowtype

* Lint tweaks

* use prop-types pkg
2017-04-13 15:19:30 -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
52e24dd380 pass cardstack style (#1029) 2017-04-13 09:32:09 -07:00
Mike Grabowski
2dc869fedd Navigate to nested router within stack (#1025) 2017-04-13 09:28:47 -07: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
Mike Grabowski
fb2a0ad33d Remove HybridExample (#985)
* Remove HybridExample

* Remove last mention of HelloHybrid
2017-04-10 12:40:14 -07:00
Mauro Gabriel Titimoli
511cd3e1be Add support to navigation to other tabs passing params (#969) 2017-04-09 08:54:30 -07:00
Navid Taha
96a34db809 Add iconStyle prop to tabBarOptions for TabBarTop (#965) 2017-04-08 23:32:52 +05:30
Kevin Cooper
6978ceec85 Fix the ReduxExample app (2) (#945)
* [Example] Fix the ReduxExample app

Just a bit of cleanup so it can run.

* [Example] Remove AsyncStorage persistence from ReduxExample

It's a cool feature, but isn't necessary to demonstrate how to use
react-navigation and may cause more confusion than it's worth.
2017-04-07 09:06:44 -07:00
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
Aaron Cannon
297470099d Added the Header accessibility trait to the header title (#948)
Without this trait, VoiceOver on IOS does not identify the title as a header, which it is.
2017-04-07 12:09:26 +05:30
Sami Jaber
669da3eca5 refactored Redux Example (#819) 2017-04-06 16:20:04 -07:00
Kevin Cooper
2b307c754a [Playground] Add TabsInDrawer example (#930) 2017-04-06 09:25:38 -07:00
Kevin Cooper
b49b2c1b62 [Playgrond] Add StacksOverTabs example (#928)
* [Playground] Duplicate StacksInTabs to StacksOverTabs

* [Playground] Move nested routes into root stack so they appear on top

* [Playground] Go to SettingsTab instead of pushing a new Settings screen
2017-04-06 09:24:35 -07:00
taiki-t
0fa801d4ee Fix setParams with nested routers (#929)
This fixes the setParams problem with:
https://github.com/react-community/react-navigation/pull/789
2017-04-06 09:22:06 -07:00
Norman Rzepka
d211492a4c Query string parsing capabilities for deep linking (#510)
* adds query string parsing capabilities to URI handling

* improves query params test case

* adds test with empty query value
2017-04-04 22:03:52 -07:00
Kevin Cooper
5006076352 Fix the ReduxExample app (#900)
* [Redux example] Use HTTPS-enabled endpoint to get npm modules

To fix 'yarn install'

* [Redux example] Add ReduxExample to rn-cli.config.js

This prevents those annoying @providesModule naming collisions

* [Examples] Add a basic README linking to the usage instructions
2017-04-04 21:21:06 -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
Scott Brady
e402eba3a7 Reset specific StackRouter with key (#789)
* First test

* Allow a key to be passed for which scene should handle the action

* Adding key to NavigationResetAction

* Added test

* Add reset test with key

* Only apply this change if it is a RESET action

* Fix logic error, only check if the action is null if it is a RESET
2017-04-04 17:26: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
Bruno Lemos
3eb7b12f85 Fix gesturesEnabled regression (#886)
Closes #818
Regression caused by 11cab8eab6
2017-04-02 08:15:49 +05:30
Daniel Schmidt
8c9a626401 bump react-native-drawer-layout-polyfill (#882)
includes access to the accessabilityView options and
a fix for #871 (adjusted zIndex)
2017-04-01 20:40:41 +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
Stoicescu Cristi
05f0361971 Workaround for screenProps in TabViewAnimated (#862) 2017-03-30 09:07:06 +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
Neo
7edd9a79aa remove ReactComponentWithPureRenderMixin (#809)
`ReactComponentWithPureRenderMixin` is useless in this file, and it has been removed from the core of latest `react`

build fails on master branch of `react-native` for this error
2017-03-29 00:34:10 -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
Alejandro Garcia
0f19a0bddf Fix flow in Navigation Playground (#735) 2017-03-22 12:08:08 -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
Javier Olaechea
da5ec61027 Drawer sidebar description (#617)
* Fix typo in DrawerScreen.js

* Fix the description of the DrawerSidebar Component
2017-03-16 11:57:40 -07:00
Christoph Jerolimov
b009db9446 Remove 2nd return statement (#661) 2017-03-16 11:56:50 -07:00
Adam Miskiewicz
11cab8eab6
Resolve gesture issues in CardStack 2017-03-15 16:03:09 -07:00
Adam Miskiewicz
619a06c8cd
Update dependencies 2017-03-15 16:02:49 -07:00
Satyajit Sahoo
00972a3bf5 Bump version number (#650) 2017-03-11 09:19:31 -08:00