Alan Foster
36642ebb69
Reduce rerenders on header back button ( #1913 )
2017-06-19 12:07:07 +05:30
Matt Hamil
75b4f2371f
Merge branch 'master' into master
2017-06-12 14:17:18 -05:00
Koen Punt
3f0577f97a
pass screenProps to TabBarComponent ( #1841 )
...
To support for example filtering the tabs based on a property passed to a parent navigator, I need to have to access to the screenProps in the tab bar
2017-06-12 19:20:31 +05:30
Matt Hamil
7e96ad4189
Fixed issue with back button
2017-06-06 17:24:13 -05:00
Matt Hamil
484c729154
Updated to react-navigation v1.0.0-beta.11
2017-06-06 14:24:27 -05:00
Matt Hamil
528b1ad812
Stack pushes are now idempotent
2017-06-06 14:15:15 -05:00
James Gillmore
8d91753e9c
change TabNavigator type to NavigatorTypes.TABS ( #1628 )
2017-06-03 12:41:06 -07:00
William Schurman
a60d1d529f
Correct sizing of header back button image on iOS ( #1687 )
2017-06-03 12:22:10 -07:00
Gabriel Bull
77b04f342d
Removed dependency on fbjs ( #1698 )
2017-06-03 12:21:08 -07:00
Kyle Herock
e8ec07d9e3
Expose CardStackTransitioner as export ( closes #1326 ) ( #1676 )
2017-05-24 12:15:55 -07:00
Gabriel Bull
89db9ea204
Added tabStyle property ( #1667 )
2017-05-24 11:33:23 +05:30
Adam Miskiewicz
269311c2a3
Fix flow error in CardStack
2017-05-23 21:51:30 -07:00
Gregory
9027e1a88f
Fix backAndroid warning ( #1520 )
2017-05-19 08:57:33 -07:00
Daniel Friesen
03698c9a69
Allow the routes outputted by DrawerView.Items to be overridden ( #1039 )
2017-05-19 09:23:19 +05:30
Adam Miskiewicz
296becd5d1
Tweak iOS animation easing, gesture tweaks
2017-05-16 23:04:33 -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
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
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
ashoat
d71ed75133
Fix type of Easing function to match type in react-native module
2017-05-07 11:33:43 +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
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
Mike Grabowski
c25e0265c4
Fix glitch ( #1264 )
2017-04-26 14:56:10 -07: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
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
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
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
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
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
Mike Grabowski
a252b46c50
Breaking: Replace containerOptions with just props ( #1100 )
2017-04-19 14:10:50 +05:30