Commit Graph

2252 Commits

Author SHA1 Message Date
Brent Vatne
66620c5aff Release 0.7.0 2018-09-06 14:46:57 -07:00
Jonny Burger
324806e232 Upgrade react-native-safe-area-view (#44)
* Update react-native-safe-area-view

* import SafeAreaView from react-navigation
2018-09-06 14:46:41 -07:00
Brent Vatne
3e57028079 Pass horizontal prop into tabBarIcon for bottom tabs, fix default background color, fix text sizes 2018-09-06 14:44:23 -07:00
Brent Vatne
6b410bb3cd Release 0.6.0 2018-08-02 12:08:12 -07:00
Brent Vatne
1d808bdd06 Fix formatting and flow errors 2018-08-02 12:07:58 -07:00
Nicolas Charpentier
03cd7566ac feat: lazy initialized MaterialTopTabNavigator routes (#9)
Routes in `MaterialTopTabNavigator` are now lazy initialized like in `MaterialBottomTabNavigator`.

A scene visibility is computed from multiple states and props:

To handle the pan between tabs, we check if you're currently swiping between tabs and the prop `lazyOnSwipe` is true (default value) or if the tab have been already loaded, we'll check if this tab is a sibling of the focused tab. Then, we'll display the tab if it's a sibling.

~With the prop `animationEnabled` to true, we shouldn't hide a tab before the transition is done. So we're waiting `COMPLETE_TRANSITION` action to hide it. Also, if the prop `sceneAlwaysVisible` is true (default value), we won't hide scenes between A and D while transitioning.~

If the current tab has not been loaded and must not be visible, we do not render it.

I'll update the docs accordingly to this PR.

![tabs-2](https://user-images.githubusercontent.com/7189823/38261082-3bd30d04-3737-11e8-854e-684430db771f.gif)

<!--
#### Default behavior
Tabs are lazy initialized on swipe or focus and are always visible while transitioning.

![tabs-1](https://user-images.githubusercontent.com/7189823/38260989-060f5808-3737-11e8-87ed-d138fec6022b.gif)

#### Hide tabs between while transitioning

```js
{
  sceneAlwaysVisible: false,
}
```

![tabs-2](https://user-images.githubusercontent.com/7189823/38261082-3bd30d04-3737-11e8-854e-684430db771f.gif)

#### Fallback to only lazy initialized tabs on focus

```js
{
  lazyOnSwipe: false,
}
```

![tabs-3](https://user-images.githubusercontent.com/7189823/38261164-7bcc6018-3737-11e8-8758-de71d28218ae.gif)

-->
2018-07-25 20:41:02 -04:00
Vojtech Novak
8c6f4fb5dc Update BottomTabBar.js (#41) 2018-07-24 00:08:28 +02:00
Satyajit Sahoo
3027fd191d refactor: remove unused getLabel method 2018-06-18 11:04:27 +02:00
Loch Wansbrough
b4d0c80483 Allows use of custom safe area inset (#32) 2018-06-14 11:43:45 -07:00
Brent Vatne
cc28600968 chore: release 0.5.1 2018-06-06 13:12:38 -07:00
Brent Vatne
eb8e1de6dc fix: remove tab icon wrapper to fix adaptive icons 2018-06-06 13:11:52 -07:00
Brent Vatne
307b3a1505 chore: release v0.5.0 2018-06-05 12:12:27 -07:00
Brent Vatne
d90b44446e fix: change prepublish to prepare to fix warning 2018-06-05 12:12:11 -07:00
Brent Vatne
db9afb30d2 feat: add an option to swap out TouchableWithoutFeedback for another component (#27) 2018-06-05 12:05:15 -07:00
Satyajit Sahoo
8475f694ec chore: release v0.4.1 2018-06-05 14:43:18 +02:00
Satyajit Sahoo
09422dd5b3 fix: typo in accessibilityLabel 2018-06-05 14:42:48 +02:00
Satyajit Sahoo
0c5e5ee2b2 chore: release v0.4.0 2018-06-05 14:32:09 +02:00
Satyajit Sahoo
2efce8e402 chore: add a precommit hook 2018-06-03 21:32:32 +02:00
Daniel Basedow
45d1f60aa4 feat: add accessibilityLabel and testID options (#26) 2018-06-03 18:15:24 +02:00
Satyajit Sahoo
0354185c3b chore: upgrade to latest react-native-tab-view 2018-06-02 19:32:48 +02:00
Satyajit Sahoo
cf95ad4c94 chore: improve the example app 2018-06-02 18:51:20 +02:00
Brent Vatne
caafd18c6a Release 0.3.0 2018-05-24 11:22:01 -07:00
Brent Vatne
0970f020e1 Merge pull request #24 from react-navigation/@satya164/on-press
feat: add defaultHandler argument to tabBarOnPress. fixes #22
2018-05-24 11:12:23 -07:00
Satyajit Sahoo
c623620f43 chore: fix flow 2018-05-24 14:46:23 +02:00
Satyajit Sahoo
3feeb0f87e feat: add lazy option. fixes #23 2018-05-24 14:13:56 +02:00
Satyajit Sahoo
afe8388d8c fix: use react-lifecycles-compat for async mode compatibility 2018-05-24 13:58:33 +02:00
Ashoat Tevosyan
325c65aa5f fix: fix tabBarOnPress with MaterialTopTabs and fix isFocused (#21)
* Hook up tabBarOnPress

* Move onTabPress logic to createTabNavigator

* Use old logic for determining focus state

* Use navigation.isFocused()

* Reorder jumpTo/onTabPress

* react-native-tab-view@0.0.78
2018-05-16 09:38:39 -04:00
Brent Vatne
078e7b802a feat: put material bottom tabs in another repository 2018-05-04 11:12:01 -07:00
Brent Vatne
652b8b7cab chore: release 0.1.0-alpha.8 2018-04-30 17:07:29 -07:00
Brent Vatne
0e7d56fb1c fix: import SceneView from react-navigation default export 2018-04-30 17:06:55 -07:00
Brent Vatne
0eb4deae55 chore: release 0.1.0-alpha.7 2018-04-25 16:48:12 -07:00
Brent Vatne
089fb65c65 Merge pull request #12 from ericvicenti/@ericvicenti/navigate-fix
Fix tab action in for react nav v2
2018-04-25 23:46:54 +00:00
Satyajit Sahoo
20e08440fb chore: upgrade react-native-paper 2018-04-19 16:02:26 +02:00
Brent Vatne
18c56bb194 chore: release 0.1.0-alpha.6 2018-04-04 19:31:47 -07:00
Brent Vatne
ba2d119ab3 fix: iPad / horizontal layout works as expected in BottomTabBar 2018-04-04 19:31:07 -07:00
Brent Vatne
9020c35bf2 chore: release 0.1.0-alpha.5 2018-04-04 18:16:40 -07:00
Brent Vatne
53084696ac chore: update lockfile 2018-04-04 18:16:19 -07:00
Brent Vatne
4633baa98a fix: NavigationActions.popToTop no longer exists, belongs to StackActions now 2018-04-04 18:15:45 -07:00
Satyajit Sahoo
297835aa57 chore: release 0.1.0-alpha.4 2018-04-02 15:01:25 +02:00
Satyajit Sahoo
830b5d0b6d chore: update dependencies and fix flow 2018-04-02 15:00:45 +02:00
Satyajit Sahoo
b532943549 feat: use resource saving view for scenes. fixes #3 2018-03-26 13:04:57 +02:00
Satyajit Sahoo
546786e8a4 docs: fix badges 2018-03-27 14:12:22 +02:00
Grzegorz Gawrysiak
1db0a4a16f chore: add the missing babel-cli (#6) 2018-03-27 12:44:36 +02:00
Satyajit Sahoo
68b8611525 fix: remove extra extension. fixes #5 2018-03-27 10:28:23 +02:00
Satyajit Sahoo
7989f3ab46 docs: update README 2018-03-26 15:01:10 +02:00
Satyajit Sahoo
2f9145372c feat: export tab bars 2018-03-24 03:15:12 +01:00
Satyajit Sahoo
65d0c9e317 refactor: upgrade react-native-tab-view 2018-03-24 03:06:43 +01:00
Satyajit Sahoo
eaea9e929b feat: export individual navigators separately. fixes #2 2018-03-24 02:53:47 +01:00
Brent Vatne
b3e0be1595 Fix incorrect method name and release 0.1.0-alpha.3 2018-03-22 20:50:18 -07:00
Brent Vatne
48c72a3133 Release 0.1.0-alpha.2 2018-03-22 20:45:42 -07:00