Commit Graph

2264 Commits

Author SHA1 Message Date
maxkomarychev
49a0ca88eb Respect gesturesEnabled (#1147)
* Use flag value from screen details

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

* Update docs
2017-04-24 20:51:08 +03:00
Mike Grabowski
59d24df5ee Update docs on headerLeft/Right (#1203) 2017-04-24 19:47:42 +02:00
Mike Grabowski
d6744c779b Add issue template (#1199)
* Add issue template

* Ask for screenshot

* Update ISSUE_TEMPLATE.md
2017-04-24 19:40:43 +02:00
Mike Grabowski
4974706169 Update router guide (#1207) 2017-04-24 18:27:06 +02:00
Neo
b5a60e329a 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 20:31:44 +08:00
Mike Grabowski
944f292cb2 Fix eslint issues and turn on prettier by default (#1195)
* Automatically generate prop-types from Flow

* Remove propTypes usage

* Fix flow

* Modify some eslint settings

* Fix flowtype

* Lint tweaks

* use prop-types pkg

* Run prettier

* Fix flow

* Fix few lint issues

* Make eslint pass

* Run lint on tests

* Fix flow

* Fixes

* Alphabetical

* Trailing comma: ES5 for website compat, also fix config/paths

* Apply eslint --fix only to src now

* Fix missing transitionconfig

* Update TypeDefinition.js

* New stuff

* Unstage website and examples

* reformat code

* Update circle.yml
2017-04-24 14:01:22 +02:00
Tomas Roos
cea9bf3719 Expose Card through the API surface (#1002)
* Expose Card through the API surface

We use Card directly without CardStack

* Added Header + HeaderBackButton to exports
2017-04-24 13:44:22 +02:00
Mike Grabowski
3a78b7ec0c Update Redux-Integration.md (#1184) 2017-04-24 11:52:47 +02:00
Mike Grabowski
7fe7109db8 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
e500d1774b docs: add remark about nesting (#1121)
This relates to #709
2017-04-23 20:21:15 +02:00
Kevin Cooper
1537e38195 Fix the ReduxExample app (3) (#1144)
* [Example] Upgrade dependencies to fix the ReduxExample app

* [Example] Also upgrade and fix the LinkingExample app

* [Example] Update MainApplication.java to fix Android API
2017-04-23 11:33:57 -04:00
Ville Immonen
6472ced17e Get truncated back button title from the previous scene (#1167) 2017-04-23 18:14:21 +03:00
Ville Immonen
4f5c12354e Add a config to override the truncated back title (#1137)
Fixes #1136.
2017-04-22 09:26:31 +03:00
Thomas Subera
5a30508a57 Allow tabBarLabel to be also a function again (#1156)
This fixes #1024
2017-04-22 08:11:45 +02:00
Rasool Dastoori
28c373d0b6 Update react-native-tab-view version (#1138)
Fix RTL support for `TabNavigator`
2017-04-21 21:11:32 +04:30
Adam Miskiewicz
897e36f07f v1.0.0-beta.8 2017-04-19 20:32:49 -07:00
Mike Grabowski
cf88560b4c Breaking: Replace containerOptions with just props (#1100) 2017-04-19 10:40:50 +02:00
Mike Grabowski
5a5905f592 Fix hashbang behaviour (#1095) 2017-04-18 15:25:12 +02:00
Joe McKie
c3b9501104 Bump dependency versions to reflect current RN 2017-04-09 12:08:20 +02:00
Mike Grabowski
6ebaadeba1 Upgrade React Native (#1093)
* Upgrade RN

* Clean up
2017-04-18 14:28:47 +02:00
Daniel Friesen
0a59f869e5 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 04:38:35 -07:00
Joe McKie
aaca3ffade Update flow-react-proptypes to ^1.2.0 (#1084) 2017-04-18 10:27:34 +01:00
Ville Immonen
8ad28b4d03 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 17:16:41 +03:00
Edwin Tsatsu
025864997e removed reptiton of headerBackTitle text (#1076) 2017-04-17 14:15:06 +00:00
Mike Grabowski
bc1f6170fb 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 14:08:52 +02:00
Mike Grabowski
4b7767de14 Move prop-types to dependencies (#1042)
* Move `prop-types` to dependencies

* Update package.json

* Update CardStackTransitioner.js
2017-04-14 08:11:39 +02:00
Mike Grabowski
e044254257 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-14 00:19:30 +02:00
Mike Grabowski
9bbbc6063c 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
329173a845 pass cardstack style (#1029) 2017-04-13 18:32:09 +02:00
Mike Grabowski
8418177aee Navigate to nested router within stack (#1025) 2017-04-13 18:28:47 +02:00
Joe McKie
6e3111673d Fix typo in StackRouter.md (#975) 2017-04-13 02:01:40 +02:00
Mike Grabowski
af88ad2658 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-13 00:49:08 +02:00
Mike Grabowski
4ca4514e94 Remove HybridExample (#985)
* Remove HybridExample

* Remove last mention of HelloHybrid
2017-04-10 21:40:14 +02:00
Mauro Gabriel Titimoli
1ae840e01e Add support to navigation to other tabs passing params (#969) 2017-04-09 17:54:30 +02:00
Navid Taha
d6d1bbc349 Add iconStyle prop to tabBarOptions for TabBarTop (#965) 2017-04-08 20:02:52 +02:00
Kevin Cooper
65a0fc8fd8 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 12:06:44 -04:00
Jamie Parkinson
4de88fd5cc Add pressColor to StackNavigator header options (#926)
* Add pressColor to StackNavigator header options

* Rename pressColor -> pressColorAndroid for StackNavigator
2017-04-07 17:02:43 +01:00
Aaron Cannon
385d2b32e5 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 01:39:26 -05:00
Sami Jaber
7bf951d877 refactored Redux Example (#819) 2017-04-06 19:20:04 -04:00
Kevin Cooper
2fc09bf728 [Playground] Add TabsInDrawer example (#930) 2017-04-06 12:25:38 -04:00
Kevin Cooper
554fa5fe28 [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 12:24:35 -04:00
taiki-t
00fdf7a5ae Fix setParams with nested routers (#929)
This fixes the setParams problem with:
https://github.com/react-community/react-navigation/pull/789
2017-04-07 01:22:06 +09:00
Norman Rzepka
356cb0a19f 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-05 07:03:52 +02:00
Kevin Cooper
ddf2f089b9 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-05 00:21:06 -04:00
Koen Punt
40ca44629f add command to open URI in the iOS simulator (#909) 2017-04-05 06:01:30 +02:00
Mauricio Pasquier Juan
0390dcfa50 Fix wrong param name in the guides (#911)
The text used `name` as param but the examples used `user` instead.
2017-04-05 01:00:37 -03:00
Scott Brady
df4843ebab 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 20:26:37 -04:00
Michel Maubert
ad56d62d8d 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 19:02:21 +02:00
Sabbir Ahmed
09baf8c621 Docs: Added clarification for header configuration (#891) 2017-04-03 07:37:47 +06:00
Bruno Lemos
7fd28a7c70 Fix gesturesEnabled regression (#886)
Closes #818
Regression caused by 11cab8eab6
2017-04-01 23:45:49 -03:00