Brent Vatne
69546190c1
chore: release 1.0.0-alpha.4
2018-10-22 18:18:34 -07:00
Brent Vatne
f1f5445e76
Emit refocus event, add example that uses it
2018-10-22 18:17:31 -07:00
Brent Vatne
6719fa7a6e
chore: bump version
2018-10-16 21:15:19 -07:00
Brent Vatne
080ea4d43d
chore: move core/native to peerDependencies
2018-10-16 21:14:44 -07:00
Brent Vatne
2a55e93f72
Fix example project
2018-10-15 12:10:05 -07:00
Eric Vicenti
f39655f976
move to react-navigation core and native
2018-10-15 11:21:04 -07:00
Brent Vatne
24b6c9b1e5
Published 0.8.4 https://npm.community/t/unable-to-install-newly-published-package-version/2628
2018-10-10 13:43:52 -07:00
Brent Vatne
bfd4d9a677
Release 0.8.3
2018-10-10 13:12:16 -07:00
Brent Vatne
fd2966f67c
Handle case where screensEnabled isn't available (in Snack)
2018-10-10 13:11:30 -07:00
Eric Vicenti
84f22834f9
Distribute source ( #59 )
...
By shipping source files and setting the ‘react-native’ entry point to src, the RN packager can parse the module and provide source maps when debugging from your app. This makes the install slightly heavier but is worth it for the improved ergonomics.
2018-10-09 11:00:07 -07:00
Brent Vatne
9acfc9810e
Release 0.8.2
2018-09-19 16:38:47 -07:00
Brent Vatne
b33e3086aa
More loose peer dependency
2018-09-19 16:38:27 -07:00
Brent Vatne
f968e4f05c
Move react-native-screens to a peer dependency
2018-09-19 16:27:51 -07:00
Brent Vatne
5bd6b28a68
Release 0.8.0
2018-09-19 16:06:56 -07:00
Krzysztof Magiera
8ff96aa3cd
Use react-native-screens when available ( #54 )
...
This change adds support for react-native-screens. Screens package makes it possible to use native primitives to render tabs container and its scenes such that they get properly mounted/unmounted when not visible.
The support has only been added to `createBottomTabNavigator` as the material one renders its own container that's a part of a different package (react-native-tab-view).
2018-09-18 12:07:59 +02:00
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.

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

#### Hide tabs between while transitioning
```js
{
sceneAlwaysVisible: false,
}
```

#### Fallback to only lazy initialized tabs on focus
```js
{
lazyOnSwipe: false,
}
```

-->
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