524 Commits

Author SHA1 Message Date
Adam Miskiewicz
fc1472dc84
Restore jest-setup.js file 2017-05-15 19:02:46 -07:00
Adam Miskiewicz
1cd16bcf4a
Convert NavigationPlayground project to a CRNA project 2017-05-15 18:57:22 -07:00
Adam Miskiewicz
d145332fdf
Remove old NavigationPlayground code (and ExpoNavigationPlayground) 2017-05-15 18:57:22 -07:00
Daniel Schmidt
b19beda0a7 Add NavigationPlayground Expo Demo (#1523)
* use react-navigation as dependency
* add expo based playground app
* name expo playground demo in the docs
* add ci task to deploy playground demo
2017-05-15 16:55:10 -07:00
Miguel Oller
ed0a818aee Exclude __tests__ from published files (#1525) 2017-05-15 10:33:14 -07:00
Adam Miskiewicz
a61b4478f0
Make sure root deps are installed before running yarn in example folders 2017-05-14 23:16:02 -07:00
Adam Miskiewicz
9edb4ef5e8
More CI parallelization optimizations 2017-05-14 23:14:22 -07:00
Adam Miskiewicz
aa84a5e316 Migrate to CircleCI v2 (#1517)
Use the new Docker-based, beta version of CircleCI.

This adds a docker image that has the correct deps to run flow, and then migrates from the old circle.yml format to the new.

This gets test runs wayyyyy down. Earlier today, on the old stack, before optimizations, we were at > 9 min for PR builds (aka, CI runs without a website deploy). The build for this PR ran in 1 min 33 seconds. Woo!
2017-05-14 23:08:13 -07:00
Adam Miskiewicz
3b6eee6367
Split test commands into test.sh, respect CIRCLE_NODE_INDEX 2017-05-14 22:11:18 -07:00
Adam Miskiewicz
37c9d07b9d
Paralellize tests 2017-05-14 22:04:55 -07:00
Adam Miskiewicz
ebb20ad632
Hotfix website error (maximum callstack size exceeded 2017-05-14 21:54:56 -07:00
Adam Miskiewicz
e083d4bf86
Fix website build -- needs eslint 2017-05-14 21:42:34 -07:00
Adam Miskiewicz
bf1c1afd64 Add codecov.io badge 2017-05-14 21:32:55 -07:00
Adam Miskiewicz
fe9e30d8a8 Change react-navigation path in example package.json to relative 2017-05-14 21:28:38 -07:00
Adam Miskiewicz
6c09b85d4e Update Circle.yml with more caching 2017-05-14 21:28:38 -07:00
Adam Miskiewicz
c5e2229376 Add codecov.yml 2017-05-14 21:28:38 -07:00
Adam Miskiewicz
96a1c1fddf Add codecov.io support 2017-05-14 21:28:38 -07:00
Adam Miskiewicz
a781c35e75 Run 'flow check' instead of 'flow' in CI 2017-05-14 21:28:38 -07:00
Adam Miskiewicz
1ae3798137 Upgrade to React Native 0.44 + Flow 0.42 2017-05-14 21:28:38 -07:00
Adam Miskiewicz
30ca3c1f80 Fix Flow and Tests (#1510)
* Navigation actions should be string literals to work properly with Flow

* Update StackRouter/TabRouter tests with eslint ignore rule

* Use `expect.objectContaining` so we don't rely on keys
2017-05-14 14:18:09 -07:00
Adam Miskiewicz
f3a958dca1 Update/Fix Prettier + Eslint config for codebase
Run Prettier/Eslint on entire codebase, fix issues
2017-05-14 14:18:09 -07:00
Neo
a301b41479 stop using Animated.spring (#1500)
* stop using Animated.spring

* use layout instead of window.size
2017-05-14 08:40:02 -07:00
Stephen J. Collings
c2f49e52a9 Add testID to HeaderBackButton (#1397) 2017-05-12 15:28:32 -07:00
Kevin Cooper
f575d90986 [Minor] Update Stacks examples for better clarity (#1341)
* Update Stacks{In,Over}Tabs example for better clarity

* Remove redundant navigationOptions in stack examples

* Update text in ReduxExample to clarify which route is being used
2017-05-12 15:27:53 -07:00
Daniel Friesen
625fc5b109 Don’t use Init# keys for reset (#1320)
This Init{index} pattern guarantees that the same keys will always be re-used when doing a RESET.
This behaviour doesn’t match how the rest of the router works and causes bugs.

Namely if you are on `{ routeName: ‘Dashboard’, params: { user: ‘A’ } }` and use RESET to `{ routeName: ‘Dashboard’, params: { user: ‘B’ } }` when the user switches, it will act like a `setParams` action instead of a `RESET` action and the Dashboard will not be re-mounted.
2017-05-12 15:13:33 -07:00
HelloYou
116dfb662e Init to Init-UUID (#1419) 2017-05-12 15:08:22 -07:00
Koen Punt
506214f9ab allow uriPrefix to be a regular expression (#1431)
when accepting both a protocol url and a normal url, it's hard to define a static prefix.
2017-05-12 14:40:10 -07:00
Tim Liu
a9de445015 Variable name consistency (#1452) 2017-05-12 14:37:55 -07:00
kdenz
79a67d9114 Minor update (#1491)
styles.tabIcon leads to nowhere, only has styles.icon
2017-05-12 14:37:15 -07:00
Kohki Makimoto
673b9d2877 Fix incorrect link (#1426) 2017-05-12 14:36:53 -07:00
Satyajit Sahoo
d4b4697f33 Update react-native-tab-view. Fixes #1248, #1163 (#1327) 2017-05-10 13:34:06 +02:00
Koen Punt
ff99d6ec0a accept style prop on Header component
to allow composition of the Header component when using a custom header
component, styling is probably one of the options you want to have.

For example, I need to dynamicly change the height of the header based
on scroll position, and without this change I have to inherit from the
Header component and copy the render function, instead of composing the
Header component in my own component.
2017-05-07 11:39:13 +05:30
Luke Rhodes
31ee86ad5c Pass tintColor to tabBarLabel within navigationOptions 2017-05-07 11:38:14 +05:30
Des Preston
f61ce3d46a clarify title option
If you attempt to use something other than a string, it will throw an error in some situations. #1318 provides more details about the error. If it is expecting a certain type, the docs should clarify that.
2017-05-07 11:35:57 +05:30
ashoat
d71ed75133 Fix type of Easing function to match type in react-native module 2017-05-07 11:33:43 +05:30
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