Commit Graph

2229 Commits

Author SHA1 Message Date
Jacob Lauritzen
f6d69f9ce4 Add 'save-pattern' to docs (#2806)
* Add save-pattern to docs, #145

* Sync style

* Language clarity

* Typo
2017-10-25 03:19:58 +02:00
Anthony Garritano
2c97cd9a4c 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 10:55:38 -04:00
Spencer Carli
d1ad085183 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 03:51:00 -05:00
Lorenzo Sciandra
94f3dba635 Adding a FAQ about performance (#2802)
* adding faq about perfs

* adding to table of content

* was missing an s

* wording
2017-10-23 14:34:21 +01:00
Tien Pham
94e3a16dd7 Fix typos (#2811) 2017-10-23 18:44:15 +07:00
Lorenzo Sciandra
5d27e3b06d Revert "fix broken link to the Navigation Actions guide (#2809)" (#2812)
This reverts commit 34ede7c79f.
2017-10-23 12:27:44 +01:00
Octavian
f4d44e4ac7 fix broken link to the Navigation Actions guide (#2809) 2017-10-23 11:12:08 +02:00
Hirokazu Hata
7e6958f677 Remove unused imported vars (#2718) 2017-10-23 01:21:49 +09:00
Adam Miskiewicz
7745af4bdf Redirect to root domain 2017-10-20 15:27:36 -07:00
Adam Miskiewicz
cabb7bc7e5 Don't use docker_layer_caching option 2017-10-20 15:09:32 -07:00
Adam Miskiewicz
62029b8975 Fix circleci.yml typo 2017-10-20 15:07:17 -07:00
Adam Miskiewicz
7754d96574 Make sure Docker is installed in CircleCI deploy process 2017-10-20 15:04:35 -07:00
Adam Miskiewicz
a7015d4e3d Enabled docker support in CircleCI 2017-10-20 14:59:01 -07:00
Adam Miskiewicz
9298c524e3 Deploy to Heroku using Docker 2017-10-20 14:54:25 -07:00
Chris Hunter
a99b84f6a8 Add tests for navigators (#2796)
Add minimal unit tests for the DrawerNavigator, StackNavigator and
TabNavigator.
2017-10-20 10:35:54 -05:00
Spencer Carli
80670fcc46 1.0.0-beta.15 2017-10-18 08:24:12 -05:00
Spencer Carli
4b50c18a1f Fix tabbar bottom issue on Android. (#2774) 2017-10-18 03:16:22 -05:00
Dave Pack
94fe9fcc72 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 16:24:56 -07:00
Spencer Carli
1bf98c1ddc 1.0.0-beta.14 2017-10-17 11:11:45 -05:00
Spencer Carli
6fa8115127 [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 04:01:30 -05:00
robertkongsvmx
6df54480ef Issue-2662: Add support for testID and accessibilityLabel for tab bar items (#2684) 2017-10-15 17:45:22 -07:00
Lorenzo Sciandra
5b2bb884f5 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 22:20:01 +01:00
Finian
b4a13bd191 Add allowFontScaling option for TabView and headerTitleAllowFontScaling for HeaderTitle (#2377) (#2721) 2017-10-15 03:57:09 -05:00
Chid Gilovitz
cb9e05a841 Update Routers.md (#2750)
Added import line to code example.
2017-10-14 19:31:46 +08:00
Lucas Padilha
edf8ce8d6e 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 10:04:22 -03:00
Akshay Kadam
d6fef5c22c Typo: 'create' was written twice 😂 (#2727) 2017-10-11 18:30:49 +05:30
Pat Needham
4301f1e766 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 22:21:39 -04:00
Lucas Padilha
301ea45365 added property inside drawerConfig to backgroundColor (drawerBackgroundColor) (#2698) 2017-10-08 06:40:08 -03:00
Vojtech Novak
05b71be0fd remove ineffective invariant usages, fixes #2258 (#2693)
* remove ineffective invariant usages

* fix flow err

* fix tests

* fix tests

* use throw
2017-10-05 12:59:13 +02:00
David Lewis
49c5990244 Suggest flex: 1 for embedded navigator (#2639) 2017-10-04 00:01:52 +02:00
Neo
1c42cd69b3 add doc for transitionConfig (#1827)
* add doc for transitionConfig

* address review
2017-10-03 16:54:19 -05:00
Dan Gurney
990208b1c4 Fix "drawerLockMode" terminology for screenProps (#2667)
Should be "drawerLockMode" instead of "lockMode"
2017-10-03 12:21:49 -04:00
Lorenzo Sciandra
2187354041 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 15:05:39 +01:00
Spencer Carli
90acb9e406 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
89dc7214f1 Updates examples to react-native 0.48.4 and expo sdk 21. (#2675) 2017-09-29 14:06:56 -07:00
Vojtech Novak
38c2c06ead 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 22:51:06 +02:00
Spencer Carli
768e9d1b21 Remove RelativeImageStub providesModule 2017-09-28 14:57:17 -05:00
Ashoat Tevosyan
f5d66882ad Remove @providesModule declarations in src/utils to avoid Flow conflicts with fbjs package (#2665) 2017-09-28 15:42:14 -04:00
Spencer Carli
9952f4d633 1.0.0-beta.13 2017-09-27 09:55:06 -05:00
Alexei Malashkevich
a761d320db Adding search to docs website (#2606)
* Adding search to docs website

* fix eslint errors
2017-09-27 17:25:27 +03:00
Alessandro Annini
b9d31896b7 Added js highlighting (#2610) 2017-09-25 22:23:47 +02:00
Masayuki Iwai
e977fce886 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-26 04:16:13 +09:00
Ashoat Tevosyan
8392f67b1f Fix Flow types (and update RN version) (#2619)
* Fix .flowconfig to stop ignoring modules and properly include React Native libraries

Currently, there are numerous ignored libraries that are hiding type errors. Actually, they're causing type errors too. This sort of thing only patches over actual problems, so we have to revert them to get a config we can build upon.

* Update react-native/flow-bin dependencies

We want to have Flow types working with the latest packages.

* Update flow-typed libraries (auto-generated)

* Fix typing of navigation prop used by withNavigation HOC

The current typing is clearly a typo, as it is circular. `NavigationScreenProp` should be used to type the navigation prop

* Fix typing of easing function

What's funny is that I fixed this before in d71ed75133. @skevy reintroduced the mistyped function in 9436d03fe8, which didn't trigger any Flow errors because .flowconfig was ignoring the entire react-native package

* Correct typing of View and Text style prop

The current code thinks it can import these, but this isn't true, and was being hidden because the .flowconfig ignored the whole react-native package. There's no easy to type Text and View at the current moment, as far as I can tell. Importing the highly generic `StyleObj` seems like the best bet, and is what I have being using in my projects.

* Import NavigationScreenComponent using full path

* Updating yarn.lock files

* Get rid of library overrides in flow-typed/react-native.js and flow/react-navigation.js

* Add @flow to src/react-navigation.js and make last three params to createNavigator optional

* Make screenProps and navigationOptions optional in NavigationNavigatorProps

* yarn run format

* Readd react-navigation/node_modules ignore to NavigationPlayground's .flowconfig

Realized this line I removed in the first commit is necessary when using npm link/yarn link, which is what the CircleCI build does

* Make all DrawerViewConfig's params optional

Some of these params are marked as optional because they have defaults. However, the only place `DrawerViewConfig` is used is as the input the function that then applies the defaults

* Make all props in NavigationNavigatorProps optional

`NavigationNavigatorProps` is used to type the props of the component that is output by the `StackNavigator`, `TabNavigator`, etc. component factories. This component does not need to have any props specified.

* Make second param to `DrawerNavigator` factory optional

`DrawerNavigator`, just like `TabNavigator` and `StackNavigator`, can be called with just a single argument (ie. omitting the config)

* Upgrade to RN 0.48.4 to address https://github.com/facebook/react-native/issues/15810
2017-09-25 12:29:34 -04:00
Jeff Mendez
b5e98bb47d drawerLockMode (#1377)
* added drawerLockMode with cabilities to update it on the fly

* fixed incorrect name on markdown for usage

* added handling if screenProps is not being used

* Fix linting error

* Use drawerLockMode instead of lockMode

* Correct docs

* Fix flow issues

* Make drawerLockMode optional
2017-09-21 13:53:46 -04:00
Matt Hamil
cbe7757bb4 Reverting last commit (#2626) 2017-09-20 15:08:11 -05:00
Matt Hamil
0ff1016d7d Merge branch 'master' into master 2017-09-20 14:40:37 -05:00
Sakamoto, Kazunori
d10aaaac2e Refactor .eslintrc to be more readable. (#2595)
- Replace 0, 1 and 2 with "off", "warn" and "error" because strings seem more readable than numbers.
2017-09-16 07:21:08 +09:00
Sakamoto, Kazunori
023f598cfc Employ pre-commit hook for formatting code. (#2597)
This change comes thanks to @plasticine's great idea (https://github.com/react-community/react-navigation/pull/2581#issuecomment-329661371).
- Add husky and lint-staged to use pre-commit hook.
- Automate formatting JavaScript code using ESLint and Prettier before committing changes.
2017-09-16 07:17:09 +09:00
andry-baka
5d8869e24e Doc Improvement: goBack key doc improvement (#2035)
* chore(Doc Improvement): goBack key doc improvement

* chore(Doc improvement): fix wording

* chore(Doc Improvement): fix uppercase/lowercase wording
2017-09-16 04:43:35 +07:00
Tomas Reimers
84bfd563fa Update documentation on Title. (#2092) 2017-09-15 14:36:44 -07:00