553 Commits

Author SHA1 Message Date
Louis Lagrange
701337024e Set initialLayout in defaultProps on Android (#2843)
* Revert "Workaround nested TabNavigation swipe issue (#2733)"

This reverts commit 7b88a475bc283ce01fc9b6d57d0c28f4b34879d0.

* Set initialLayout in defaultProps on Android

This reverts the previous PR (#2733) and takes into account #2385
In order to fix https://github.com/react-native-community/react-native-tab-view/issues/312

* Don't use window's dimensions
2017-10-30 11:17:55 +01:00
fxwan
7b88a475bc Workaround nested TabNavigation swipe issue (#2733)
* Workaround nested TabNavigation swipe issue

* Add prop types
2017-10-29 08:37:45 +00:00
Terrance Wood
817e360a53 Avoid one frame delay using TabNavigator (#2385)
* Added optional initialLayout func prop to TabNavigatorConfig.

* Fix default initialLayout prop type.

* Fix default initialLayout prop type.

* Fix lint error.

* Normalized capitalization and punctuation for TabNavigator.md.

* Added react-native-tab-view link to initialLayout prop documentation in TabNavigator.md.

* Update TabView.js
2017-10-28 16:21:55 +01:00
Bruno
468a8ca9be Added iconContainerStyle prop to Drawer (#2825)
* Added iconContainerStyle prop to Drawer

* Updated DrawerNavigator docs

* Improved code quality

* Improved code with eslint
2017-10-28 10:07:17 -05:00
94cstyles
e6505054bd Fix stack navigator animations (#1493) (#2520)
* Fix animation (#1493)

* Rewrite the file animatedInterpolate.js. To increase readability.

* Rename the variable, To increase readability.

* minor renaming
2017-10-26 22:25:59 +02:00
Freddy Harris
c5ffe41b91 Fix impossible to renderTitle in full width on ios (#2641)
* Fix impossible to renderTitle in full width on ios

* Fix test and add a test
2017-10-26 08:59:34 -05:00
James Lin
283518b54a fix redirect bug in stacks in tab (#2674) 2017-10-25 15:58:18 +01:00
Duong Le
3a63950ec8 Add custom style for DrawerItem (#2764)
* Add custom style of DrawerItem

* Update itemStyle to DrawerNavigator doc

* rename style to itemsContainerStyle [BREAKING CHANGE]

* update

* update

* fix issue comma

* update DrawerNavigator-test
2017-10-25 09:38:31 +01:00
Jacob Lauritzen
4df002daab Add 'save-pattern' to docs (#2806)
* Add save-pattern to docs, #145

* Sync style

* Language clarity

* Typo
2017-10-24 20:19:58 -05:00
Anthony Garritano
2ee85482ba Pass transition and modal props to transitionConfigurer (#2383)
* Pass transition and modal props to transitionConfigurer

* Make arguments passed to transitionConfigurer required

* Update docs with params passed to transitionConfigurer
2017-10-24 15:55:38 +01:00
Spencer Carli
5e26ced280 Add a "Quick Start" guide. (#2775)
* Give docs some more room to breath

* Working on the new docs

* New intro

* Writing installation guide

* Finish tab intro.

* Write intro to drawernavigator.

* Add some space

* Rename guide

* Minimize changes

* Fix links

* Edits
2017-10-24 09:51:00 +01:00
Lorenzo Sciandra
f43e85e1c3 Adding a FAQ about performance (#2802)
* adding faq about perfs

* adding to table of content

* was missing an s

* wording
2017-10-23 15:34:21 +02:00
Tien Pham
6a9ed3414a Fix typos (#2811) 2017-10-23 13:44:15 +02:00
Lorenzo Sciandra
4951a6d9d1 Revert "fix broken link to the Navigation Actions guide (#2809)" (#2812)
This reverts commit 34ede7c79fccc17e9e7dd40fec1192781f729350.
2017-10-23 13:27:44 +02:00
Octavian
34ede7c79f fix broken link to the Navigation Actions guide (#2809) 2017-10-23 10:12:08 +01:00
Hirokazu Hata
176a26baa8 Remove unused imported vars (#2718) 2017-10-22 18:21:49 +02:00
Adam Miskiewicz
ef9875417d
Redirect to root domain 2017-10-20 15:27:36 -07:00
Adam Miskiewicz
a57ed0ab6a
Don't use docker_layer_caching option 2017-10-20 15:09:32 -07:00
Adam Miskiewicz
5fd1df1b1a
Fix circleci.yml typo 2017-10-20 15:07:17 -07:00
Adam Miskiewicz
58a19ce264
Make sure Docker is installed in CircleCI deploy process 2017-10-20 15:04:35 -07:00
Adam Miskiewicz
c33f7f83cc
Enabled docker support in CircleCI 2017-10-20 14:59:01 -07:00
Adam Miskiewicz
c5851fc940
Deploy to Heroku using Docker 2017-10-20 14:54:25 -07:00
Chris Hunter
1ca407b5ec Add tests for navigators (#2796)
Add minimal unit tests for the DrawerNavigator, StackNavigator and
TabNavigator.
2017-10-20 16:35:54 +01:00
Spencer Carli
1b761cf9d1 1.0.0-beta.15 v1.0.0-beta.15 2017-10-18 08:24:12 -05:00
Spencer Carli
642af12ecb Fix tabbar bottom issue on Android. (#2774) 2017-10-18 09:16:22 +01:00
Dave Pack
3e37ee6d0c Fixes default drawerWidth to match Material UI patterns. (#2773)
* Fixes default drawerWidth to match material ui patterns.

Previously: calculated based on device width regardless of orientation and did not recalculate when orientation changed.
Now: calculates based on minimum of device height/width, remains constant and guaranteed to always fit screen regardless of orientation.

This is the expected behavior based on observing Google apps (e.g. Gmail). This is also better than recalculating on every orientation change, which would result in variable width drawers and awkward empty space when in landscape in most cases.

* Remove console.log
2017-10-17 18:24:56 -05:00
Spencer Carli
29e451193d 1.0.0-beta.14 v1.0.0-beta.14 2017-10-17 11:11:45 -05:00
Spencer Carli
36ffc4f31a [iOS 11] Handle landscape tabbar correctly. (#2676)
* Handle the ios11 tabbar correctly

* Fix an issue when showLabel is false

* Add a basic test for the tabbarbottom

* Add check for ios version number

* Tests shall pass

* make things work for all the versions

* Again, fix the tests
2017-10-16 10:01:30 +01:00
robertkongsvmx
82c2cdbe09 Issue-2662: Add support for testID and accessibilityLabel for tab bar items (#2684) 2017-10-15 19:45:22 -05:00
Lorenzo Sciandra
3ae4b31a9d Updating the README (#2752)
* update the README

* Fixing a couple formats

* rephrase intro

* reordering and relinking

* small reorder

* typo

* couple more changes

* couple tweaks

* libraries section
2017-10-15 16:20:01 -05:00
Finian
f84fe15272 Add allowFontScaling option for TabView and headerTitleAllowFontScaling for HeaderTitle (#2377) (#2721) 2017-10-15 09:57:09 +01:00
Chid Gilovitz
5576b84d8a Update Routers.md (#2750)
Added import line to code example.
2017-10-14 12:31:46 +01:00
Lucas Padilha
09e396002f added drawerBackgroundColor for documentation (#2723)
* added property inside drawerConfig to backgroundColor (drawerBackgroundColor)

* Adjusting documentation for PR deployment (# 2698)

* add example in the doc
2017-10-11 14:04:22 +01:00
Akshay Kadam
2dca5b2135 Typo: 'create' was written twice 😂 (#2727) 2017-10-11 14:00:49 +01:00
Pat Needham
27d496c268 Fix Querystring params not set for nested URI (issue #2251) (#2695)
* fix issue #2251 by including queryString to get nested action

* only use nested query string when original queryString exists, and include test cases
2017-10-09 21:21:39 -05:00
Lucas Padilha
df788fd9ac added property inside drawerConfig to backgroundColor (drawerBackgroundColor) (#2698) 2017-10-08 10:40:08 +01:00
Vojtech Novak
e4a7b7e073 remove ineffective invariant usages, fixes #2258 (#2693)
* remove ineffective invariant usages

* fix flow err

* fix tests

* fix tests

* use throw
2017-10-05 11:59:13 +01:00
David Lewis
c08be7fb43 Suggest flex: 1 for embedded navigator (#2639) 2017-10-03 17:01:52 -05:00
Neo
81d8d91085 add doc for transitionConfig (#1827)
* add doc for transitionConfig

* address review
2017-10-03 16:54:19 -05:00
Dan Gurney
5e001155fb Fix "drawerLockMode" terminology for screenProps (#2667)
Should be "drawerLockMode" instead of "lockMode"
2017-10-03 17:21:49 +01:00
Lorenzo Sciandra
c1d181eccd Fixing Intro Guide (#2679)
* Fixing Intro Guide

Fixes #832 - the code in this page was wrong, that export default was causing errors.

I've also modified a few phrases here and there to help the comprehension.

* more fixes, for CRNA
2017-10-03 09:05:39 -05:00
Spencer Carli
a8556b0df2 Improve StatusBar/Header Behavior (#2669)
* Track orientation change

* Add tests for withOrientation

* Better variable naming
2017-09-29 16:11:30 -05:00
Dave Pack
c4541f44af Updates examples to react-native 0.48.4 and expo sdk 21. (#2675) 2017-09-29 16:06:56 -05:00
Vojtech Novak
ef82f1b5ff Update ISSUE_TEMPLATE.md (#2668)
the problem I see with many bug reports in this repo is that people write a very vague description of what their problem is and expect to get some help. I tried to:

1 . emphasise how important it is to include a runnable reproduction
2 . cut down on some extra words at the beginning of the template so it's more to the point
2017-09-29 15:51:06 -05:00
Spencer Carli
1a62bf7955 Remove RelativeImageStub providesModule 2017-09-28 14:57:17 -05:00
Ashoat Tevosyan
a79d86b152 Remove @providesModule declarations in src/utils to avoid Flow conflicts with fbjs package (#2665) 2017-09-28 14:42:14 -05:00
Spencer Carli
e139e83a1a 1.0.0-beta.13 v1.0.0-beta.13 2017-09-27 09:55:06 -05:00
Alexei Malashkevich
4202892a5d Adding search to docs website (#2606)
* Adding search to docs website

* fix eslint errors
2017-09-27 09:25:27 -05:00
Alessandro Annini
2f0e386a24 Added js highlighting (#2610) 2017-09-25 15:23:47 -05:00
Masayuki Iwai
69397af74d Make GESTURE_RESPONSE_DISTANCE_* configurable. (#2172)
* Make gestureResponseDistance configurable.

* Fix format.

* Set vertical and horizontal distance individually.

* Fix type error.

* Move gestureResponseDistance to NavigationStackScreenOptions.

* Add documentation.
2017-09-25 20:16:13 +01:00