Neo
81d8d91085
add doc for transitionConfig ( #1827 )
...
* add doc for transitionConfig
* address review
2017-10-03 16:54:19 -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
Tomas Reimers
3ad142b818
Update documentation on Title. ( #2092 )
2017-09-15 16:36:44 -05:00
Nicholas Thompson
be1da2c4c9
Clarify headerBackTitle usage ( #1649 )
...
* Clarify headerBackTitle usage
* Updating text to that suggested by @pvinis
See https://github.com/react-community/react-navigation/pull/1649#discussion_r118195443
2017-06-22 20:47:16 -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
Tim Liu
a9de445015
Variable name consistency ( #1452 )
2017-05-12 14:37:55 -07:00
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
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
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
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
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
Mike Grabowski
47285bf5d6
Update docs on headerLeft/Right ( #1203 )
2017-04-24 10:47:42 -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
Ville Immonen
c384e3371c
Add a config to override the truncated back title ( #1137 )
...
Fixes #1136 .
2017-04-22 08:26:31 +02:00
Edwin Tsatsu
c5f8c8b34d
removed reptiton of headerBackTitle text ( #1076 )
2017-04-17 07:15:06 -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
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
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
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
Ashoat
2d0a7fa4ed
Make it possible for a screen to set gesturesEnabled ( #385 )
...
Closes #292
2017-02-21 02:52:15 +05:30
Mike Grabowski
79f21277cb
Add back button label to header ( #257 )
2017-02-20 05:09:56 +05:30
kameyin
fe968c2003
React Native Buttons use title, not label.
2017-02-09 13:10:54 +05:30
William Schurman
b9bc386a4b
Pass through screenProps to nested navigators
...
This changes the behaviour of screenProps so that the props no longer get splatted.
Components will receive this as `this.props.screenProps`.
2017-02-09 01:27:56 +05:30
juhasuni
307632b575
Expose onTransitionStart/End props to StackNavigator ( #230 )
...
* Add onTransitionStart/End options to StackNavigator 'stackConfig'
* Add documentation for onTransitionStart/End options
* Define onTransitionStart/End props optional
2017-02-08 08:53:41 -08:00
Daniel Hood
eece5ad56a
Add titleStyle to header ( #176 )
2017-02-05 03:42:33 +05:30
juhasuni
a64eb46c9c
Add support for cardStyle prop ( #106 )
...
* Add support for cardStyle prop
* Add documentation for cardStyle prop
2017-02-01 19:31:24 -08:00
Jeremy Lu
b805978d9b
Add screenProps example and improve docs ( #101 )
2017-02-02 02:57:05 +05:30
Mike Grabowski
7a20389e04
Refactor header, tintColor support, redesign iOS back button ( #109 )
2017-02-02 02:50:12 +05:30
Gustavo Machado
5f4c335e51
Minor fix in the "Screen Navigation Options" sample (state undefined) ( #41 )
...
The current code as it was, depended on the "state" param, but the title was being defined as a string template literal.
2017-01-27 23:12:42 +05:30
Mike Grabowski
7c0fcc6cf5
Add header.left property ( #29 )
...
* Add header.left property
* Add docs
* Updates
* Update
* Remove unused param
* Update'
* fix
* Make sure to guard undefined defaultProps
2017-01-27 16:48:26 +00:00
Mike Grabowski
a60607385b
Allow CardStack default header to receive a custom style
2017-01-27 17:42:12 +05:30
Mike Grabowski
0c99035562
Implement default navigationOptions ( #1 )
...
* Bring back 222 impl.
* Add it for TabNavigator
* Fix eslint issues and flow in the file
* First attempt at the docs
* Include docs
* Fix some typos
2017-01-27 11:33:03 +00:00
Adam Miskiewicz
b5c485d841
reactjs/react-navigation -> react-community/react-navigation
2017-01-26 13:16:26 -08:00
Adam Miskiewicz
c37ad8a0a9
Initial public release of React Navigation
2017-01-26 11:53:33 -08:00