139 Commits

Author SHA1 Message Date
Jordan Hayashi
eb6646f6da Make TabNavigator code example formatting consistent (#462)
* Make TabNavigator code example formatting consistent

* Fix typo in StackRouter docs
2017-03-06 22:50:12 -08:00
Gant
37ea268d3f screen props warning removed 2017-03-06 01:30:27 +05:30
Felipe Matos
da8f85895a Fix typo (#554) 2017-03-03 16:32:59 +01:00
Mike Grabowski
e650f341e3 Change <Header /> layout back to absolute (#562) 2017-03-03 17:43:30 +05:30
Neo
bbab489a6a Update Screen-Tracking.md (#549) 2017-03-03 12:28:58 +05:30
Taylor Hurt
99583d2a64 Update Screen-Tracking.md (#545)
* Update Screen-Tracking.md

updated names in the onNavigationStateChange example function

* Update Screen-Tracking.md
2017-03-02 16:01:50 +01:00
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
Bartol Karuza
2df983516b add import to clarify source of helper (#517)
* add import to clarify source of helper

It took me a while to figure out where 'addNavigationHelpers' comes from, maybe adding the import in the doc here will help the next guy.

* add spaces around imported value

* removed empty line
2017-03-01 13:18:08 +01:00
Mike Grabowski
e44dee158f [Docs] Link every heading automatically (#459)
* Link every heading automatically

* Factor in nav height

* Make it like in React
2017-02-27 22:38:51 -08:00
Adam Miskiewicz
29a6564261
v1.0.0-beta.6 v1.0.0-beta.6 2017-02-27 18:40:16 -08: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):

![screen shot 2017-02-27 at 11 23 27](https://cloud.githubusercontent.com/assets/289640/23364131/07103c5a-fcfe-11e6-8b7a-d7bc28ca3080.png)

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
Javier Cuevas
fdb5faae7e Fix redux documentation (#450)
I think the navigation key for the redux store should be `nav` and not `navReducer`.
2017-02-23 10:57:10 +01:00
Satyajit Sahoo
e0c1c95e6f Remove screen tracking without redux (#449)
This is a hack and we shouldn't put it in official documentation.
2017-02-23 10:40:40 +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
Matt Hamil
fb856ba06d Move Navigation Containers and containerOptions into Navigators API docs (#409)
* Removed Navigation Containers and containerOptions

Cut out text to move to navigators docs page

* Moved nav containers section to Navigators API docs
2017-02-21 20:45:19 -08:00
Mike Grabowski
62025cc8be Update StackNavScreen docs (#411)
Remove confusing mention of `color`
2017-02-21 20:15:42 -08:00
Angelo
8e1b6e9042 Updated the reducer (#431)
When the drawer opens / close, the result of AppNavigator.router.getStateForAction(action, state); is null. So the nav state in the store is null which causes errors. This solves that.
2017-02-21 20:15:30 -08:00
David Cameron
3a1766cb78 Update 2017-01-Introducing-React-Navigation.md (#410) 2017-02-22 07:19:59 +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
hysan
257ce3eff9 Updated Hello Mobile Navigation for clarity (#265)
Per request [#228](https://github.com/react-community/react-navigation/issues/228), I've updated the the Hello Mobile Navigation guide to try and make it more approachable to newcomers like myself. I changed the order of some of the explanations and broke out passing params into its own section. This should make the guide easier to follow as only one new concept is introduced per section; a common principle in teaching methodology.

I'm open to suggestions as I am also a newcomer to both React Native and React Navigation. So it's very possible that there are concepts that I've misunderstood or am not explaining well.
2017-02-20 10:02:34 -08:00
Mike Grabowski
2bb81d8c63 Fix backgrounds (#399) 2017-02-20 09:10:10 -08:00
Kyle Kamperschroer
b4d6507c84 Add a simple motiviation section to the README (#35) 2017-02-20 05:18:35 +05:30
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
Satyajit Sahoo
d6b5b28811 Update react-native-tab-view (#366)
Fixes #209
2017-02-17 08:28:10 -08:00
rmevans9
e30ac63f79 Make future proof (and also fix it for the current beta) (#322) 2017-02-16 19:54:16 +05:30
juhasuni
02a388073c Remove 'appBar' child component to fully support header styling (#341) 2017-02-16 19:30:33 +05:30
Adam Miskiewicz
330cc054f6
1.0.0-beta.5
Fix broken `yarn publish`
v1.0.0-beta.5
2017-02-15 19:11:46 -08:00
Adam Miskiewicz
5c478ec244
1.0.0-beta.4 2017-02-15 18:57:31 -08:00
Adam Miskiewicz
7967fb81d2
Update yarn.lock to include react 15.4.2 2017-02-15 18:56:55 -08:00
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
João Luís Lima
67d64807da adds button to photo screen (#301) 2017-02-12 22:05:12 -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
Mike Grabowski
4f1bd4c888 Fix style prop for header 2017-02-10 22:06:59 +05:30