Commit Graph

2267 Commits

Author SHA1 Message Date
satyajit.happy
52064c7f96 fix: add peer dep on react-navigation 2019-09-09 22:07:13 +02:00
Satyajit Sahoo
c28cc52d38 refactor: migrate project to TypeScript (#161) 2019-09-09 12:08:22 +02:00
Brent Vatne
2160b65605 chore: release 2.4.0 2019-09-03 17:11:32 -07:00
Brent Vatne
3550163f56 feat: add theme support 2019-09-03 17:10:40 -07:00
Brent Vatne
0c6b66236b feat: simplify installation instructions 2019-09-03 16:29:43 -07:00
satyajit.happy
1c36bbb323 docs: add documentation link 2019-08-31 13:12:11 +02:00
satyajit.happy
13a9dcf976 chore: release 2.3.0 2019-07-25 15:41:02 +02:00
satyajit.happy
d37d3dd7bd feat: upgrade react-native-tab-view closes #118 2019-07-25 15:37:37 +02:00
satyajit.happy
8e68bdb3e4 chore: release 2.2.0 2019-06-21 22:31:31 +02:00
satyajit.happy
c98f6f15ae feat: upgrade react-native-tab-view closes #118 2019-06-21 22:26:08 +02:00
satyajit.happy
43bef6f357 chore: release 2.1.3 2019-05-20 13:30:03 +02:00
satyajit.happy
682c48e485 chore: fix badges and repo link 2019-05-19 21:25:52 +02:00
satyajit.happy
e2b64af7d8 fix: correctly reset _isTabPress property 2019-05-16 11:37:36 +02:00
satyajit.happy
6f76249ca9 chore: upgrade react-native-tab-view 2019-05-14 16:32:31 +02:00
satyajit.happy
409937ce3a chore: release 2.1.2 2019-04-23 20:41:47 +02:00
satyajit.happy
1a9f3542d7 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-04-23 20:36:44 +02:00
Frederik Winkelsdorf
eaed48b71b fix: increase padding for iOS horizontal label alignment (#114)
Fixes #113.

20 looks more natural on iPad
2019-04-23 12:28:59 +02:00
satyajit.happy
476a8bb6a3 docs: remove alpha from installation instructions 2019-04-18 22:34:52 +02:00
satyajit.happy
36ca386528 chore: release 2.1.1 2019-04-10 12:39:08 +02:00
satyajit.happy
5e8b156285 chore: remove unnecessary precommit script 2019-04-10 12:38:31 +02:00
satyajit.happy
3ff10fa16d fix: specify default values for getAccessibilityX
fixes #116
2019-04-10 12:30:57 +02:00
satyajit.happy
aec0083e4a chore: release 2.1.0 2019-04-02 00:00:16 +02:00
satyajit.happy
2430acfcb5 chore: don't run unit tests on CI coz we don't have any 2019-04-01 23:56:20 +02:00
Benoit Dion
533c2e5a08 feat: add ability to render label beside the icon (#103) 2019-04-01 17:53:35 -04:00
satyajit.happy
723afe6d76 chore: improve the examples 2019-04-01 22:17:14 +02:00
satyajit.happy
ce89efdf8f chore: release 2.0.0 2019-04-01 15:40:20 +02:00
Satyajit Sahoo
70a479da84 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-03-31 00:05:50 +01:00
Kevin Fawcett
7c77f60398 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-03-30 12:55:25 -04:00
satyajit.happy
4b096e9641 chore: update react-native-tab-view 2019-03-29 13:23:07 +01:00
Vojtech Novak
35d85f1ad1 fix: fix hit slop for bottom tab bar (#110) 2019-03-21 14:51:12 +01:00
Mark
13996e8a97 docs: fix typo in README (#105) 2019-03-08 10:59:25 +00:00
Satyajit Sahoo
533de9e0c7 docs: update README 2019-03-06 23:58:50 +01:00
Satyajit Sahoo
959d2e136a chore: release 2.0.0-alpha.0 2019-03-06 23:47:54 +01:00
Satyajit Sahoo
5976ec8420 chore: add npm script for release 2019-03-06 23:47:06 +01:00
Satyajit Sahoo
6486c4b7dd 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-02-26 22:40:51 +01:00
Satyajit Sahoo
6dfe7033ab chore: upgrade expo to 32.0.0 2019-03-02 02:51:10 +01:00
Satyajit Sahoo
9015796b88 chore: setup husky, commitlint and release-it 2019-03-02 01:38:01 +01:00
Satyajit Sahoo
af6a7f1ccf chore: upgrade node on ci 2019-03-02 01:33:48 +01:00
Satyajit Sahoo
421207dab3 chore: fix running on ci 2019-03-02 01:30:57 +01:00
Krzysztof Magiera
856f7f4036 fix: change opacity for hidden tabs only when not using rn-screens (#80)
When using react-native screens we don't need to hide invisible tabs using opacity. This in conjunctions with "active" property normally used by screens where causing blinking effect when new tabs got activated as in some cases opacity would update in a different UI transaction (this would only surface on Android).

This change removes the use of `opacity` style when react-native-screens are active and solely relies on `active` property in that case. When rn-screens are off we fallback to rendering `View` and use `opacity` as before (this is now done in `ResourceSavingScene`).

### Motivation

Fix blinking effect on Android when switching tabs [#5382](https://github.com/react-navigation/react-navigation/issues/5382)

### Test plan

1) Run RN-screens sample app with and w/o screens enabled or try the code from this snack -> https://snack.expo.io/rklSkM-xE
2) Try this on a low end Android device for consistent repro
3) Switch between tabs and see the content disappear for one frame with screens ON when this change isn't active and see this issue gone with this change applied
2018-12-18 16:38:25 +01:00
Brent Vatne
75375ba5d2 Release 1.0.1 2018-11-30 12:53:35 -08:00
mmtootmm
1659bead1c Fix renderPager undefined override (#70) 2018-12-01 05:49:36 +09:00
Brent Vatne
94451702d3 Update devDependencies 2018-11-17 09:16:38 +07:00
Brent Vatne
f9fba03863 Release 1.0.0 2018-11-17 09:12:13 +07:00
Brent Vatne
a2c6410296 Fix active and inactive tint colors - thanks to @CrazyPython - Original: https://github.com/react-navigation/react-navigation-tabs/pull/35 2018-11-17 09:11:27 +07:00
Jonny Burger
23890f296f implement onTabLongPress event handler (#66)
* implement onTabLongPress event handler

* style fix

* defaultHandler for long press
2018-11-09 18:45:18 +01:00
Brent Vatne
b9ec69b0da chore: release 1.0.0-alpha.5 2018-10-31 16:26:39 -07:00
Brent Vatne
f86fe1ce7f fix: tweak hitSlop on bottom tab bar buttons 2018-10-31 16:26:02 -07:00
Brent Vatne
53f03ad9ac chore: fix flow error 2018-10-31 16:25:46 -07:00
Yao Hui Chua
36ea405145 Fix bottom tab voiceover (#61)
* Fix bottom tab voiceover

* Remove isBottom check

* Update MaterialTopTabBar

* Remove unnecessary props on route
2018-11-05 11:46:37 +08:00