689 Commits

Author SHA1 Message Date
Ihor
5aaf4a86be Delete unused import component 2017-05-07 11:26:34 +05:30
Rich Gilbank
4c953e0e8f Fixes NavigationActions docs links 2017-05-07 11:25:06 +05:30
zakster12
d4ce9b08ab Changed View to Animated.View for TabBarBottom (#1360) 2017-05-04 16:41:57 +05:30
Satyajit Sahoo
b8dbbe964e Hide overflow on individual pages in tab view (#1271) 2017-04-28 15:23:25 +02:00
Koen Punt
b532f8cc19 fix toggle header example (#1286) 2017-04-28 12:58:13 +02:00
Koen Punt
c04ea5b492 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
961cf13268 skip Transitioner animation after swiped back (#1036)
* fix gesture

* add easing

* skip Transitioner animation after swiped back

* Run format
2017-04-27 07:47:57 -07:00
Gabriel Handford
d32f6e4ac6 Fix navigator links (#1259) 2017-04-27 13:37:05 +05:30
Mike Grabowski
004e9632f6 Release v1.0.0-beta.9. v1.0.0-beta.9 2017-04-26 23:59:37 +02:00
Mike Grabowski
c25e0265c4 Fix glitch (#1264) 2017-04-26 14:56:10 -07:00
Mike Grabowski
f2dd70a29e 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
7be9f79144 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-26 14:45:04 -07:00
Neo
1d6fd37663 remove 30px offset workaround for screen’s shadow disappearing (#1110)
* remove 30px offset workaround for screen’s shadow disappearing

* Run prettier
2017-04-26 10:38:33 -07:00
Neo
d3fb9447b7 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 17:15:25 +02:00
Dave Bennett
aa7fe56bb4 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 18:25:25 +05:30
Mike Grabowski
a14ac29c30 Remove navigationOptions from component props (#1231) 2017-04-26 17:06:00 +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
Satyajit Sahoo
8df3fa9db1 Switch pager when swipe and animations are disabled (#1234) 2017-04-26 06:15:01 +02:00
Satyajit Sahoo
cfc8c1fed1 Fix lazy prop not passed (#1235) 2017-04-26 06:11:27 +02:00
Satyajit Sahoo
0cd3eaa97a BREAKING: Update React Native TabView (#1218) 2017-04-25 21:47:29 +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
Mike Grabowski
c39dd9d45f Export all the things (#1219)
* Initial

* Add missing title

* Fix style and ref issues
2017-04-25 14:23:09 +05:30
Aaron Cannon
7bd748a6be 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 11:29:04 -07: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
Kevin Cooper
85c2235a3c 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 10:54:58 -07:00
maxkomarychev
75921cfddd Respect gesturesEnabled (#1147)
* Use flag value from screen details

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

* Update docs
2017-04-24 10:51:08 -07:00
Mike Grabowski
47285bf5d6 Update docs on headerLeft/Right (#1203) 2017-04-24 10:47:42 -07:00
Mike Grabowski
cbc21bb7af Add issue template (#1199)
* Add issue template

* Ask for screenshot

* Update ISSUE_TEMPLATE.md
2017-04-24 19:40:43 +02:00
Mike Grabowski
be09d50f22 Update router guide (#1207) 2017-04-24 09:27:06 -07:00
Neo
6b8cb793b4 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 14:31:44 +02:00
Mike Grabowski
bbe9caff06 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 17:31:22 +05:30
Tomas Roos
23e310742c 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
5905501183 Update Redux-Integration.md (#1184) 2017-04-24 11:52:47 +02:00
Mike Grabowski
0f6b328687 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
c8062d014c docs: add remark about nesting (#1121)
This relates to #709
2017-04-23 20:21:15 +02:00
Kevin Cooper
5c12c41d96 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 17:33:57 +02:00
Ville Immonen
261ea8aa05 Get truncated back button title from the previous scene (#1167) 2017-04-23 17:14:21 +02:00
Ville Immonen
c384e3371c Add a config to override the truncated back title (#1137)
Fixes #1136.
2017-04-22 08:26:31 +02:00
Thomas Subera
046acd2b5e Allow tabBarLabel to be also a function again (#1156)
This fixes #1024
2017-04-22 08:11:45 +02:00
Rasool Dastoori
afe3c2be9e Update react-native-tab-view version (#1138)
Fix RTL support for `TabNavigator`
2017-04-21 22:11:32 +05:30
Adam Miskiewicz
e94c9c1061
v1.0.0-beta.8 2017-04-19 20:32:49 -07:00
Mike Grabowski
a252b46c50 Breaking: Replace containerOptions with just props (#1100) 2017-04-19 14:10:50 +05:30
Mike Grabowski
ba98f7a1ae Fix hashbang behaviour (#1095) 2017-04-18 15:25:12 +02:00
Joe McKie
2bbfc03cd0 Bump dependency versions to reflect current RN 2017-04-18 15:04:47 +02:00
Mike Grabowski
ce5be229ed Upgrade React Native (#1093)
* Upgrade RN

* Clean up
2017-04-18 14:28:47 +02:00
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