Commit Graph

454 Commits

Author SHA1 Message Date
Julian Hundeloh
63349a727d fix: ref set to null on updates (#410)
### Motivation

The ref function is called twice on updates (see https://reactjs.org/docs/refs-and-the-dom.html#caveats-with-callback-refs). This behaviour causes the variable `this._manager` sometimes to be null during rendering and in that case actions are pushed to the queue again. Since the queue is only processed once (during componentDidMount), somes changes will never be visible. The simple solution is to bind the ref-function as mentioned in the link above.

### Test plan

Dynamically change `visible` parameter of Modal. The Modal won't be visible on the second time.
2018-06-06 13:10:33 +02:00
Satyajit Sahoo
adb970d968 chore: release v2.0.0-alpha.4 v2.0.0-alpha.4 2018-06-05 14:23:20 +02:00
Satyajit Sahoo
e09b7429e7 fix: properly center icons in bottom navigation 2018-06-05 14:22:32 +02:00
Satyajit Sahoo
7e1938e1de fix: accessibility improvements (#411) 2018-06-05 14:15:56 +02:00
Satyajit Sahoo
c0f0a2a865 fix: hide icon from screen readers 2018-06-04 23:47:46 +02:00
Satyajit Sahoo
7f887ecd36 chore: persist navigation state in example app 2018-06-04 17:02:34 +02:00
Satyajit Sahoo
ecf30e4c7e fix: disable chip elevation on iOS
Animating the elevation for Chip looks glitchy on iOS
2018-06-04 17:01:55 +02:00
Satyajit Sahoo
d131912533 chore: release v2.0.0-alpha.3 v2.0.0-alpha.3 2018-06-04 16:36:26 +02:00
Satyajit Sahoo
233bf45244 fix: vertically center label on iOS 2018-06-04 16:35:58 +02:00
Satyajit Sahoo
a5a01e27d9 chore: release v2.0.0-alpha.2 v2.0.0-alpha.2 2018-06-04 15:47:43 +02:00
Grzegorz Gawrysiak
1d3276a2ab BREAKING: Redesign Chips. Closes #369 2018-06-04 15:46:45 +02:00
Satyajit Sahoo
2688e0bbe2 docs: update docs regarding babel and flow. fixes #392 2018-06-04 11:58:35 +02:00
Satyajit Sahoo
302f4e220a fix: close speed dial on pressing action in FABGroup 2018-06-04 11:57:47 +02:00
Satyajit Sahoo
3b18d4cefb fix: fix flow error in FABGroup 2018-06-04 11:36:47 +02:00
Satyajit Sahoo
bad3c54329 feat: make bottom navigation accessible 2018-06-04 01:56:06 +02:00
Satyajit Sahoo
e7393aff8c chore: release v2.0.0-alpha.1 v2.0.0-alpha.1 2018-06-03 23:47:48 +02:00
Satyajit Sahoo
3dc48719f3 fix: make sure tabs are vertically centered
https://github.com/react-navigation/react-navigation-material-bottom-tab-navigator/issues/4
2018-06-03 23:47:22 +02:00
Satyajit Sahoo
c4e5582adf feat: support using BottomNavigation.SceneMap inside component's render 2018-06-03 23:34:10 +02:00
Satyajit Sahoo
d8182b48f2 refactor: simplify dialog logic 2018-06-03 17:55:39 +02:00
Satyajit Sahoo
b6bc327e39 refactor: simplify appbar logic 2018-06-03 17:55:08 +02:00
Dawid
a2a3bc34d5 fix: show ripple in same position where user touched (#394) 2018-06-03 16:37:31 +02:00
Satyajit Sahoo
bedfd24bfa refactor: remove extra view wrapper from portal 2018-06-03 16:35:55 +02:00
Julian Hundeloh
397da928cb fix: make Modal nestable (#398) 2018-06-03 16:33:50 +02:00
Satyajit Sahoo
b838b40cf8 fix: check if component is valid before cloning. fixes #407 2018-06-03 16:33:31 +02:00
Satyajit Sahoo
d9a3d77d34 BREAKING: rename Toolbar to Appbar and add Appbar.Header 2018-05-31 16:05:38 +02:00
Satyajit Sahoo
5fc7f33331 chore: use latest node image on ci 2018-05-31 08:19:00 +02:00
Satyajit Sahoo
8959640f56 chore: upgrade deps 2018-05-31 07:44:55 +02:00
Satyajit Sahoo
2f5154f4d3 BREAKING: update toolbar design on iOS 2018-05-30 17:54:32 +02:00
Satyajit Sahoo
651e3e1b23 fix: faster tab switching for bottom navigation 2018-05-26 23:10:00 +02:00
Dawid
bc5d967772 BREAKING: redesign Snackbar 2018-05-26 22:51:08 +02:00
Satyajit Sahoo
54660ef0b8 chore: update drawer item snapshot 2018-05-26 02:22:59 +02:00
Satyajit Sahoo
1d511ccfc7 BREAKING: use static properties for related components 2018-05-26 02:16:11 +02:00
Satyajit Sahoo
c3bf6b09ae BREAKING: drop dark prop in favor of color prop in various components 2018-05-26 02:14:31 +02:00
Satyajit Sahoo
160e36d1d2 chore: release v2.0.0-alpha.0 2018-05-26 02:14:31 +02:00
Satyajit Sahoo
a522b60c5f refactor: remove elevation handling from Portal implementation 2018-05-26 02:14:05 +02:00
Grzegorz Gawrysiak
734cd9892a BREAKING: Drawer redesign (#377)
Drawer redesign for 2.0. Changes:
- changed the active state styling
- colors are now theme based, not fixed
- theme based roundness
- removed the "color" prop - it can be now controller with the primaryColor (see [the expo app example](https://github.com/callstack/react-native-paper/pull/377/files#diff-cf8d6e3323746c5c486de08cb0c333c3R59))
- added snapshot tests

<img width="248" alt="screen shot 2018-05-16 at 23 59 54" src="https://user-images.githubusercontent.com/7827311/40146708-e58bf92c-5966-11e8-8916-e76cb42e2f86.png">
<img width="248" alt="screen shot 2018-05-17 at 00 00 02" src="https://user-images.githubusercontent.com/7827311/40146727-f26662a4-5966-11e8-9cee-dc01e3cd5599.png">

Fixes #358.

Snapshot tests added. Run `yarn test`.
2018-05-26 02:14:05 +02:00
Grzegorz Gawrysiak
c696883da4 refactor: use touchable disabled prop (#372) 2018-05-26 02:11:12 +02:00
Satyajit Sahoo
951572fb07 feat: add ability to hide tab labels in bottom navigation 2018-05-26 02:11:12 +02:00
Satyajit Sahoo
fa694fbf80 feat: add support for active and inactive tint color in bottom navigation 2018-05-26 02:11:12 +02:00
Satyajit Sahoo
9ad9532051 BREAKING: remove default margins. fixes #334 2018-05-26 02:11:12 +02:00
Satyajit Sahoo
991ac5e6ce BREAKING: simplify bottom navigation design
https://material.io/design/components/bottom-navigation.html
2018-05-26 02:11:12 +02:00
Satyajit Sahoo
37091c7616 BREAKING: redesign button. fixes #356 2018-05-26 02:11:11 +02:00
Satyajit Sahoo
fb361299e4 BREAKING: change default theme colors 2018-05-26 02:11:11 +02:00
Satyajit Sahoo
8fede4a086 BREAKING: Change default roundness and error color 2018-05-26 02:11:11 +02:00
Satyajit Sahoo
3485402a1f BREAKING: rename Paper to Surface 2018-05-26 02:11:11 +02:00
Satyajit Sahoo
65ad2a0457 BREAKING: Remove support for React elements for icon prop
Use render callback instead
2018-05-26 02:11:11 +02:00
Satyajit Sahoo
8c5bc5165b BREAKING: remove SearchBar export 2018-05-26 02:11:10 +02:00
Satyajit Sahoo
1924945f9f chore: release v1.9.1 v1.9.1 2018-05-26 02:04:29 +02:00
Satyajit Sahoo
5525f55d6d fix: fix statusbar style in FABGroup 2018-05-26 02:04:06 +02:00
Satyajit Sahoo
204604aa7e chore: release v1.9.0 v1.9.0 2018-05-26 02:00:01 +02:00