Commit Graph

95 Commits

Author SHA1 Message Date
satyajit.happy
5303e8ffb5 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.13
 - @react-navigation/compat@5.0.0-alpha.7
 - @react-navigation/core@5.0.0-alpha.14
 - @react-navigation/drawer@5.0.0-alpha.13
 - @react-navigation/example@5.0.0-alpha.12
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.12
 - @react-navigation/material-top-tabs@5.0.0-alpha.11
 - @react-navigation/native@5.0.0-alpha.11
 - @react-navigation/stack@5.0.0-alpha.24
2019-10-06 16:44:17 +02:00
satyajit.happy
070c46ba64 chore: fix react and react-native versions 2019-10-04 14:36:49 +02:00
satyajit.happy
d75915d1f3 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.12
 - @react-navigation/compat@5.0.0-alpha.6
 - @react-navigation/core@5.0.0-alpha.13
 - @react-navigation/drawer@5.0.0-alpha.12
 - @react-navigation/example@5.0.0-alpha.10
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.11
 - @react-navigation/material-top-tabs@5.0.0-alpha.10
 - @react-navigation/native@5.0.0-alpha.10
 - @react-navigation/stack@5.0.0-alpha.22
2019-10-03 21:33:06 +02:00
satyajit.happy
832ed882bc refactor: use react-native-safe-area-context 2019-10-03 21:31:09 +02:00
satyajit.happy
8318c49331 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.11
 - @react-navigation/compat@5.0.0-alpha.5
 - @react-navigation/core@5.0.0-alpha.12
 - @react-navigation/drawer@5.0.0-alpha.11
 - @react-navigation/example@5.0.0-alpha.9
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.10
 - @react-navigation/material-top-tabs@5.0.0-alpha.9
 - @react-navigation/native@5.0.0-alpha.9
 - @react-navigation/routers@5.0.0-alpha.9
 - @react-navigation/stack@5.0.0-alpha.21
2019-10-03 19:47:41 +02:00
satyajit.happy
a8851b730d chore: upgrade deps 2019-10-03 17:35:24 +02:00
osdnk
9810a06061 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.10
 - @react-navigation/compat@5.0.0-alpha.4
 - @react-navigation/core@5.0.0-alpha.11
 - @react-navigation/drawer@5.0.0-alpha.10
 - @react-navigation/example@5.0.0-alpha.8
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.9
 - @react-navigation/material-top-tabs@5.0.0-alpha.8
 - @react-navigation/routers@5.0.0-alpha.8
 - @react-navigation/stack@5.0.0-alpha.20
2019-09-27 17:30:35 +02:00
satyajit.happy
8b78d617c0 feat: export some more type aliases 2019-09-25 23:09:58 +02:00
Dulmandakh
1fd5a868a3 feat: export BottomTabBar props type (#109) 2019-09-25 16:41:40 +02:00
satyajit.happy
98a9487cda chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.9
 - @react-navigation/compat@5.0.0-alpha.2
 - @react-navigation/core@5.0.0-alpha.10
 - @react-navigation/stack@5.0.0-alpha.17
2019-09-17 18:44:55 +02:00
satyajit.happy
30e510d123 fix: provide navigation prop in header 2019-09-17 18:13:42 +02:00
satyajit.happy
2537145d81 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.8
 - @react-navigation/compat@5.0.0-alpha.1
 - @react-navigation/core@5.0.0-alpha.9
 - @react-navigation/drawer@5.0.0-alpha.9
 - @react-navigation/example@5.0.0-alpha.7
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.8
 - @react-navigation/native@5.0.0-alpha.8
 - @react-navigation/stack@5.0.0-alpha.16
2019-09-16 23:45:20 +02:00
Brent Vatne
d16c20cd39 feat: make example run as bare react-native project as well (#85) 2019-09-08 18:10:44 +02:00
satyajit.happy
4e0ebb05f9 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.7
 - @react-navigation/drawer@5.0.0-alpha.8
 - @react-navigation/example@5.0.0-alpha.4
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.7
 - @react-navigation/material-top-tabs@5.0.0-alpha.7
 - @react-navigation/routers@5.0.0-alpha.7
 - @react-navigation/stack@5.0.0-alpha.10
2019-08-31 10:22:57 +02:00
Michal Osadnik
f1b976b68c chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.6
 - @react-navigation/core@5.0.0-alpha.4
 - @react-navigation/drawer@5.0.0-alpha.6
 - @react-navigation/example@5.0.0-alpha.3
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.6
 - @react-navigation/material-top-tabs@5.0.0-alpha.6
 - @react-navigation/native@5.0.0-alpha.5
 - @react-navigation/routers@5.0.0-alpha.6
 - @react-navigation/stack@5.0.0-alpha.8
2019-08-29 10:40:13 +01:00
satyajit.happy
a9d4813b47 fix: allow making params optional. fixes #80 2019-08-28 22:05:48 +02:00
Janic Duplessis
b4a5c3c35e fix: types path (#75) 2019-08-28 11:36:37 +01:00
Michal Osadnik
d5b4210eb2 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.5
 - @react-navigation/drawer@5.0.0-alpha.5
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.5
 - @react-navigation/material-top-tabs@5.0.0-alpha.5
 - @react-navigation/routers@5.0.0-alpha.5
 - @react-navigation/stack@5.0.0-alpha.6
2019-08-28 11:22:18 +01:00
Michal Osadnik
3703ab6353 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.4
 - @react-navigation/core@5.0.0-alpha.3
 - @react-navigation/drawer@5.0.0-alpha.4
 - @react-navigation/example@5.0.0-alpha.2
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.4
 - @react-navigation/material-top-tabs@5.0.0-alpha.4
 - @react-navigation/native@5.0.0-alpha.3
 - @react-navigation/routers@5.0.0-alpha.4
 - @react-navigation/stack@5.0.0-alpha.5
2019-08-27 11:06:59 +01:00
satyajit.happy
935c588000 refactor: rename BaseActions tCommonActions 2019-08-27 08:45:37 +02:00
satyajit.happy
9e1104c31f feat: add hook to scroll to top on tab press 2019-08-24 12:14:49 +05:30
satyajit.happy
1a8281d37d refactor: change order of type parameters 2019-08-22 11:37:17 +05:30
satyajit.happy
b0a0857b0a refactor: typecheck events in navigation helpers 2019-08-22 11:33:15 +05:30
satyajit.happy
4e07461526 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.3
 - @react-navigation/core@5.0.0-alpha.2
 - @react-navigation/drawer@5.0.0-alpha.3
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.3
 - @react-navigation/material-top-tabs@5.0.0-alpha.3
 - @react-navigation/native@5.0.0-alpha.2
 - @react-navigation/routers@5.0.0-alpha.3
 - @react-navigation/stack@5.0.0-alpha.4
2019-08-22 10:10:06 +05:30
satyajit.happy
f18231541b fix: fix path to typescript definitions 2019-08-22 10:09:16 +05:30
satyajit.happy
e70f5273ac chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.2
 - @react-navigation/drawer@5.0.0-alpha.2
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.2
 - @react-navigation/material-top-tabs@5.0.0-alpha.2
 - @react-navigation/routers@5.0.0-alpha.2
 - @react-navigation/stack@5.0.0-alpha.3
2019-08-22 07:40:13 +05:30
satyajit.happy
91958617dc chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.1
 - @react-navigation/core@5.0.0-alpha.1
 - @react-navigation/drawer@5.0.0-alpha.1
 - @react-navigation/example@5.0.0-alpha.1
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.1
 - @react-navigation/material-top-tabs@5.0.0-alpha.1
 - @react-navigation/native@5.0.0-alpha.1
 - @react-navigation/routers@5.0.0-alpha.1
 - @react-navigation/stack@5.0.0-alpha.1
2019-08-22 04:31:54 +05:30
satyajit.happy
6b4fc74592 fix: fix peer deps and add git urls 2019-08-22 04:30:58 +05:30
satyajit.happy
c1a2fd6da4 chore: set access to public 2019-08-22 04:00:51 +05:30
satyajit.happy
6970ad7b7b docs: add basic README files 2019-08-21 19:12:40 +05:30
satyajit.happy
1c2e5de07a chore: configure publishing packages 2019-08-21 18:12:43 +05:30
satyajit.happy
4128654324 chore: navigation-ex -> react-navigation 2019-08-21 16:09:10 +05:30
satyajit.happy
6b9af77fab chore: configure lerna with bob 2019-08-21 14:27:07 +05:30
satyajit.happy
14b353b6ef docs: document screen options for all navigators 2019-08-20 16:44:23 +05:30
satyajit.happy
f0b80ce0f6 feat: implement various navigators 2019-08-19 01:07:48 +05:30
satyajit.happy
f4ac5c3e1a wip 2019-08-18 23:33:00 +05:30
satyajit.happy
e4e009fb33 wip 2019-08-18 23:32:59 +05:30
satyajit.happy
0799b43046 wip 2019-08-18 23:32:59 +05:30
satyajit.happy
80b7f1d102 fix: correctly reset _isTabPress property 2019-08-18 23:32:56 +05:30
satyajit.happy
b56de41653 chore: upgrade react-native-tab-view 2019-08-18 23:32:55 +05:30
satyajit.happy
242625aa29 fix: use the JUMP_TO action for tab change
The index change event fires after swipe animation. If you quickly navigate to a new screen in stack before animation finishes, the index change event will fire after the previous navigation event. By this time, the tab navigator is not focused anymore. Using the JUMP_TO action instead of NAVIGATE avoids this issue.
2019-08-18 23:32:54 +05:30
Frederik Winkelsdorf
4adb3a9223 fix: increase padding for iOS horizontal label alignment (#114)
Fixes #113.

20 looks more natural on iPad
2019-08-18 23:32:53 +05:30
satyajit.happy
3c7918dfbe fix: specify default values for getAccessibilityX
fixes #116
2019-08-18 23:32:51 +05:30
Benoit Dion
8f70ebb0d6 feat: add ability to render label beside the icon (#103) 2019-08-18 23:32:49 +05:30
satyajit.happy
d0e43bd346 chore: improve the examples 2019-08-18 23:32:49 +05:30
Satyajit Sahoo
ccb2d38089 feat: hide tab bar when keyboard is shown (#112)
Closes #16

When the statusbar is not translucent, the view resizes when the keyboard is shown on Android. The tab bar stays above the keyboard. This PR makes the tab bar hide automatically when the keyboard is shown.

The behaviour is enabled by default and can be disabled with `keyboardHidesTabBar: false` in `tabBarOptions`
2019-08-18 23:32:47 +05:30
Kevin Fawcett
73e9b4cb8f feat: add accessibility role and state to bottom bar (#90)
### Motivation

Exposing `accessibilityRole` and `accessibilityStates` through props in the same way as `accessibilityLabel`. This allows screen readers to announce things like: `Selected. Banana. Button.`

Reasonable defaults were provided, however, consumers can provide custom overrides in the cases where the role might be `imagebutton` or the state might be `disabled`.

### Test plan

Select a button with VoiceOver (iOS) or Talkback (Android) enabled. The screen reader should read something like `Selected. <AccessibilityLabel>. Button.` or something slightly different depending on which platform you are on. Buttons that are not focused should not have `Selected` announced.
2019-08-18 23:32:47 +05:30
Vojtech Novak
ce3670b36e fix: fix hit slop for bottom tab bar (#110) 2019-08-18 23:32:46 +05:30
Satyajit Sahoo
d8b4774138 feat: upgrade react-native-tab-view to 2.0
BREAKING CHANGES:

- Animated nodes are not from `react-native-reanimated`, which means custom tab bars need to be updated
- Changed behaviour: `activeTintColor` and `inactiveTintColor` also controls opacity now
- Removed props: `animationsEnabled`, `optimizationsEnabled`
- Dropped support for React < 16.3, which means the minimum supported React Native version is 0.56

New features:

- Added prop: `lazyPlaceholderComponent`
2019-08-18 23:32:43 +05:30
Satyajit Sahoo
df52eb05a9 chore: upgrade expo to 32.0.0 2019-08-18 23:32:42 +05:30