Commit Graph

2235 Commits

Author SHA1 Message Date
Koen Punt
9ac8a2d0e3 fix toggle header example (#1286) 2017-04-28 12:58:13 +02:00
Koen Punt
c920b9cfce add headerBackTitleStyle screen option (#1083)
* add headerBackTitleStyle screen option

since the title is customizable, the back title should too.

* add documentation for `headerBackTitleStyle`

* make absence of headerBackTitle not affect return value

* merge styles so current scene can override

If there's no last scene, return the `headerBackTitleStyle` from the
current scene.
Otherwise return the `headerTitleStyle` from the last scene, and the
`headerBackTitleStyle` from the current scene, with the latter having
precedence.

* take headerBackTitleStyle from current scene

also the title style of the last scene is no longer taken into account
2017-04-28 07:55:15 +02:00
Neo
e2828eaa58 skip Transitioner animation after swiped back (#1036)
* fix gesture

* add easing

* skip Transitioner animation after swiped back

* Run format
2017-04-27 22:47:57 +08:00
Gabriel Handford
853e84ac82 Fix navigator links (#1259) 2017-04-27 01:07:05 -07:00
Mike Grabowski
8bb161553f Release v1.0.0-beta.9. 2017-04-26 23:59:37 +02:00
Mike Grabowski
2251cf925f Fix glitch (#1264) 2017-04-26 23:56:10 +02:00
Mike Grabowski
6873bf6c4d Add a blog post about new release (#1262)
* Create 2017-02-On-the-path-to-v1.md

* Add doc to website

* Rename 2017-02-On-the-path-to-v1.md to 2017-04-On-the-path-to-v1.md

* Update 2017-04-On-the-path-to-v1.md
2017-04-26 23:46:58 +02:00
Tuyen Nguyen
346a69f416 Implement change request in #653 (#1105)
* Implement getPathAndParamsForState for StackRouter

* Add test to make sure `params` is correct in getPathAndParamsForState of StackRouter

* chore: fix flow
2017-04-27 04:45:04 +07:00
Neo
7a61cbbba2 remove 30px offset workaround for screen’s shadow disappearing (#1110)
* remove 30px offset workaround for screen’s shadow disappearing

* Run prettier
2017-04-27 01:38:33 +08:00
Neo
e50a4a605e make test pass (#1253)
test fails since #1231
`383:25  error    'options' is assigned a value but never used  no-unused-vars`
2017-04-26 23:15:25 +08:00
Dave Bennett
c7aa9d9475 Modal gestureEnabled (#1243)
* Fix Modal Gestures

* Update StackNavigator.md for gesturesEnabled to include modals again

* Remove modal gesture todo

* Gesture response distance top, side => vertical, horizontal
2017-04-26 13:55:25 +01:00
Mike Grabowski
d58da53e9e Remove navigationOptions from component props (#1231) 2017-04-26 13:36:00 +02:00
Mike Grabowski
7ef31e0d49 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
Satyajit Sahoo
de56f94107 Switch pager when swipe and animations are disabled (#1234) 2017-04-26 09:45:01 +05:30
Satyajit Sahoo
7a1545e337 Fix lazy prop not passed (#1235) 2017-04-26 09:41:27 +05:30
Satyajit Sahoo
6d4c665495 BREAKING: Update React Native TabView (#1218) 2017-04-26 01:17:29 +05:30
Kevin Cooper
64d8e644e5 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 05:48:54 -04:00
Mike Grabowski
710b6b008e Export all the things (#1219)
* Initial

* Add missing title

* Fix style and ref issues
2017-04-25 10:53:09 +02:00
Aaron Cannon
8e06b0f9fa Force the back button to be recognized as such by screen readers. (#1155)
* Force the back button to be recognized as such by screen readers.

* Update HeaderBackButton.js

* Update HeaderBackButton.js

* Update HeaderBackButton.js

* Format remaining issues
2017-04-24 13:29:04 -05:00
Melih
8eb384e4fe Update Screen-Nav-Options.md (#1211)
* Update Screen-Nav-Options.md

* Apply some tweaks
2017-04-24 21:22:37 +03:00
Kevin Cooper
f35a3cde77 Improve CircleCI infrastructure (#1173)
* [Example] Get tests passing on ReduxExample and NavigationPlayground

* [CI] Use more vague versioning so we're always up to date

* [CI] Test that the example apps run without error

* [CI] Install the current local version of react-nav before testing

* Fix tabs => spaces in ReduxExample/package.json

* Remove LinkingExample entirely

It's now part of NavigationPlayground.
2017-04-24 13:54:58 -04:00
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