Mike Grabowski
e2f5e7fd49
Automatically generate prop-types from Flow ( #1033 )
...
* Automatically generate prop-types from Flow
* Remove propTypes usage
* Fix flow
* Modify some eslint settings
* Fix flowtype
* Lint tweaks
* use prop-types pkg
2017-04-13 15:19:30 -07:00
Mike Grabowski
4c55887990
Fix regressions in Header ( #1027 )
...
* Fix warnings and errors with Header
* bring back deleted docs
* headerLeft can be null
2017-04-13 22:56:42 +02:00
Mike Grabowski
52e24dd380
pass cardstack style ( #1029 )
2017-04-13 09:32:09 -07:00
Mike Grabowski
2dc869fedd
Navigate to nested router within stack ( #1025 )
2017-04-13 09:28:47 -07:00
Mike Grabowski
93976d358e
Introducing flat options ( #984 )
...
* Initial commit
* Remove HybridExample (#985 )
* Remove HybridExample
* Remove last mention of HelloHybrid
* Remove console log
* Fix flow and example
* Fix routers api docs
* Keep options in single place
* chore
* Fix styling
* Organise miscs
* Better flow type for screen options
* Flow test website and add more types to options
* navigationOptions instead of prevOptions makes more sense
* Fixes
* Fix up docs
* Fix
* Update route decl
* Provide error when removed API is used
* Remove lock
* Add validators
* Make StacksOverTabs config valid again
* Do not return
* Fix redbox
2017-04-12 15:49:08 -07:00
Mauro Gabriel Titimoli
511cd3e1be
Add support to navigation to other tabs passing params ( #969 )
2017-04-09 08:54:30 -07:00
Navid Taha
96a34db809
Add iconStyle prop to tabBarOptions for TabBarTop ( #965 )
2017-04-08 23:32:52 +05:30
Jamie Parkinson
31c538413e
Add pressColor to StackNavigator header options ( #926 )
...
* Add pressColor to StackNavigator header options
* Rename pressColor -> pressColorAndroid for StackNavigator
2017-04-07 09:02:43 -07:00
Aaron Cannon
297470099d
Added the Header accessibility trait to the header title ( #948 )
...
Without this trait, VoiceOver on IOS does not identify the title as a header, which it is.
2017-04-07 12:09:26 +05:30
taiki-t
0fa801d4ee
Fix setParams with nested routers ( #929 )
...
This fixes the setParams problem with:
https://github.com/react-community/react-navigation/pull/789
2017-04-06 09:22:06 -07:00
Norman Rzepka
d211492a4c
Query string parsing capabilities for deep linking ( #510 )
...
* adds query string parsing capabilities to URI handling
* improves query params test case
* adds test with empty query value
2017-04-04 22:03:52 -07:00
Scott Brady
e402eba3a7
Reset specific StackRouter with key ( #789 )
...
* First test
* Allow a key to be passed for which scene should handle the action
* Adding key to NavigationResetAction
* Added test
* Add reset test with key
* Only apply this change if it is a RESET action
* Fix logic error, only check if the action is null if it is a RESET
2017-04-04 17:26:37 -07:00
Bruno Lemos
3eb7b12f85
Fix gesturesEnabled regression ( #886 )
...
Closes #818
Regression caused by 11cab8eab6
2017-04-02 08:15:49 +05:30
Grzegorz Mandziak
3cee5c30fa
Possibility to overwrite label's style if defined as string. ( #731 )
...
* Added option to overwrite label style for only if label is as string defined in navigationOptions in DrawerNavigation.
* update doc for labelStyle prop
* change title to label
2017-03-30 09:20:56 +05:30
Stoicescu Cristi
05f0361971
Workaround for screenProps in TabViewAnimated ( #862 )
2017-03-30 09:07:06 +05:30
Neo
7edd9a79aa
remove ReactComponentWithPureRenderMixin ( #809 )
...
`ReactComponentWithPureRenderMixin` is useless in this file, and it has been removed from the core of latest `react`
build fails on master branch of `react-native` for this error
2017-03-29 00:34:10 -07:00
Javier Olaechea
da5ec61027
Drawer sidebar description ( #617 )
...
* Fix typo in DrawerScreen.js
* Fix the description of the DrawerSidebar Component
2017-03-16 11:57:40 -07:00
Adam Miskiewicz
11cab8eab6
Resolve gesture issues in CardStack
2017-03-15 16:03:09 -07:00
Satyajit Sahoo
f16e634d70
Remove top margin from drawer view ( #642 )
2017-03-10 09:34:22 -08:00
YinYin Chiu
a2c9a14045
Pass transitionProps
, prevTransitionProps
and isModal
to custom TransitionConfig
( #565 )
2017-03-10 18:25:07 +05:30
juhasuni
725f6d77b0
Fix issue where initialRouteParams were not set ( #150 )
2017-03-10 18:16:30 +05:30
Daniel Schmidt
af787e56fe
move from react-native-drawer-layout to react-native-drawer-layout-polyfill
...
This enables us to use the native DrawerLayoutAndroid on android devices
2017-03-07 19:12:21 +05:30
Gant
37ea268d3f
screen props warning removed
2017-03-06 01:30:27 +05:30
Mike Grabowski
e650f341e3
Change <Header /> layout back to absolute
( #562 )
2017-03-03 17:43:30 +05:30
andrey
0c8f9f7424
Accept tabBar label to be a function ( #524 )
...
* Accept tabBar label to be a function
* label as a function in TabBarBottom
* label as a function in TabBarTop
2017-03-02 09:38:06 +01:00
Álvaro Medina Ballester
420450c31a
Fix TabBarBottom item layout ( #499 )
...
Instead of `flexGrow`, `TabBarBottom` should use `flex` in order to match iOS HIG for UITabBar. Otherwise, if labels with different length are set, the layout of the tab bar isn't consistent with what iOS users expect (tab highlighted with red border):

After the change, this is how the tab bar looks:
<img width="429" alt="screen shot 2017-02-27 at 15 14 35" src="https://cloud.githubusercontent.com/assets/289640/23364470/7f652e76-fcff-11e6-9e84-8a0efa7d9c5d.png ">
2017-02-27 19:52:47 +05:30
Igor Ovsiannikov
fa8370b378
fix typo ( #496 )
2017-02-27 13:45:42 +01:00
Igor Ovsiannikov
1ca18dee13
Add router prop for the DrawerNavigator content component ( #487 )
2017-02-26 20:49:08 +05:30
Mike Grabowski
49133c3dfe
Fix glitches in Header when calling replace
( #418 )
...
* Change the way we store computed layout
We cannot store layouts under `index` because when calling `replace`, there are two competing layouts
on the same index, which will cause an infinite loop (are almost infinite) of flickering / jumping title.
* Disable transition at all when index didn't change
2017-02-23 22:19:56 -08:00
Mike Grabowski
26b165200f
Add onNavigationStateChange ( #453 )
...
* Support
* Revert consoleg
* Add very bad doc
* Improve docs
* Surpress flow
2017-02-23 22:18:06 -08:00
Mike Grabowski
71e8c95b34
Add React.Element support for TabBar/Drawer and fix docs ( #451 )
...
* Initial impl
* Fix up some docs and support more for drawer
* Fix comments
* Support TabBar
* Make flow more correct
* Clarify even more
* Rename all the things lol
* Also rename renderLabel to getLabel
2017-02-23 20:39:11 +05:30
Vlad Zhukov
16d57bcf40
fix ( #454 )
2017-02-23 15:35:08 +01:00
Luke San Antonio Bialecki
423aa85354
Fix low header when scene doesn't take up entire screen ( #446 )
...
Adds a nested View around the content in CardStack so that the content expands
and puts the header bar at the top of the screen.
2017-02-23 06:47:51 +01:00
Mike Grabowski
f54578c0f9
Fix a header on Android ( #437 )
2017-02-22 12:28:53 +01:00
Mike Grabowski
4d1e531c6b
Fix header positions
2017-02-22 14:25:26 +05:30
William Schurman
7229708d22
Fix null style warning in Header component ( #422 )
2017-02-21 19:23:19 +01:00
James Isaac
15caee76f3
Merge action params into navigator's child screens ( #306 )
2017-02-21 03:29:46 +05:30
Ashoat
2d0a7fa4ed
Make it possible for a screen to set gesturesEnabled ( #385 )
...
Closes #292
2017-02-21 02:52:15 +05:30
Mike Grabowski
2bb81d8c63
Fix backgrounds ( #399 )
2017-02-20 09:10:10 -08:00
Mike Grabowski
79f21277cb
Add back button label to header ( #257 )
2017-02-20 05:09:56 +05:30
Corentin de Boisset
4b2f94544a
Pass navigation prop to TabBarComponent ( #396 )
2017-02-20 05:02:12 +05:30
Satyajit Sahoo
6aff0ac366
More gestures cleanup ( #353 )
...
* More gestures cleanup
* Fix flow
2017-02-17 10:56:37 -08:00
lintonye
2273ef1c14
CardStack: Don't overwrite custom transitionConfig with default ( #99 )
...
* Don't overwrite transitionConfg with default
* Call this.props.transitionConfig as a function
* Update flow definition of transitionConfig
2017-02-17 08:42:20 -08:00
juhasuni
02a388073c
Remove 'appBar' child component to fully support header styling ( #341 )
2017-02-16 19:30:33 +05:30
Jakub Stasiak
2f1105dd08
Exported withNavigation to web ( #330 )
2017-02-16 01:41:44 +05:30
Mike Grabowski
a41e8b58a0
Overwrite 1x.ios as well
2017-02-16 00:30:08 +05:30
Satyajit Sahoo
24e7db361f
Fix gesture recognition in card stack ( #324 )
2017-02-13 13:50:15 -08:00
Satyajit Sahoo
a7b1243053
Fix flow ( #305 )
...
* Fix Flow and Android build
* Enable flow on CI
* Fix and suppress flow errors
2017-02-13 08:26:30 -08:00
Jeremy Lu
546fc657d5
Add showIcon
to tabBarOptions
so that icons can be hidden on iOS ( #291 )
2017-02-11 04:27:31 +05:30
Matt Revell
a7002f2151
[FLOW] Fix missing "type" in flow import.
...
Fixes: Named import from module `../TypeDefinition` `ContextWithNavigation` is a type, but not a value. In order to import it, please use `import type`.
2017-02-10 22:07:47 +05:30