147 Commits

Author SHA1 Message Date
Kacper Wiszczuk
9e0fe32e14 feat: add typescript support (#561) 2018-10-04 12:04:10 +02:00
Dawid
d3a7c48eee Add implementation of banner component. (#441)
* feat: initial implementation of banner component.

* feat: add props description.

* refactor: Change the way banner is structured.

* refactor: small refactor of banner component and example.

* refactor: remove some not needed logic from banner and add example.

* refactor: refactor of banner props description and little clean up in component.

* refactor: simplify implementation of banner

* feat: add snapshot tests for banner.

* feat: add banner gif.

* fix: fix example.

* fix: reduce banner gif size.

* fix: reduce gif size even more.
2018-09-27 13:58:08 +02:00
Drew Rothstein
2397715aa4 feat: add onLongPress to Card (#538)
* feat: add onLongPress to Card

* feat: add onLongPress to Card: disable correction

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
2018-09-25 10:49:58 +03:00
Satyajit Sahoo
137124da85 feat: pass color prop to left and right items 2018-09-04 14:54:46 +02:00
Satyajit Sahoo
6785992d8f docs: improve examples 2018-09-04 13:48:30 +02:00
Satyajit Sahoo
0da377684a chore: wrap dialogs in example with portal 2018-09-04 13:16:43 +02:00
Satyajit Sahoo
06f929bd5c BREAKING: change left and right props to render callbacks 2018-09-03 17:04:58 +02:00
Satyajit Sahoo
61c6fef264 BREAKING: replace ListSection.* and DrawerSection.* with List.* and Drawer.* (#524) 2018-09-02 03:46:33 +02:00
Satyajit Sahoo
27c196fad2 BREAKING: replace icon and avatar props of ListItem with left and right
Fixes #365
2018-09-02 03:00:12 +02:00
Satyajit Sahoo
4de442d670 chore: fix example app 2018-09-01 14:08:09 +02:00
iyad
ce97d1558b chore: add RTL toggle to example app. closes #503 2018-09-01 02:00:03 +02:00
Julian Hundeloh
89db7c14ab feat: disabled FAB. closes #445 2018-09-01 01:06:36 +02:00
Julian Hundeloh
3b09171aff BREAKING: add status prop to checkbox and radio 2018-09-01 00:42:22 +02:00
Satyajit Sahoo
f1cde8a3fc BREAKING: TextInput redesign (#522) 2018-09-01 00:31:40 +02:00
Iyad Thayyil
4a7d2e6466 fix: broken menu button of example app (#510)
<!-- Please provide enough information so that others can review your pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Motivation

<!-- What existing problem does the pull request solve? Can you solve the issue with a different approach? -->

### Test plan

<!-- List the steps with which we can test this change. Provide screenshots if this changes anything visual. -->
2018-08-29 11:43:28 +02:00
Jakub Kłobus
2c27321968 refactor: use @callstack/react-theme-provider 2018-07-25 15:02:43 +02:00
Satyajit Sahoo
1c8cf5c732 BREAKING: remove Portal wrapper from components (#439)
Currently, we wrap certain components such as FAB.Group and Snackbar in Portal by default.
This means they are always rendered on top of everything and there's no way to control it.
This makes it hard to integrate with navigation libraries such as React Navigation.
The PR removes the Portal wrapper by default and exports PortalHost so users can control where the components are rendered.

In future React Navigation could provide an API to render things on top of the screen and users would be able to take advantage of it.
2018-07-06 12:21:09 +02:00
Satyajit Sahoo
773c4f5da1 docs: point to snack to try the example app 2018-06-06 13:38:15 +02:00
Satyajit Sahoo
42325501e8 chore: updates to make it work with Snack git import 2018-06-06 13:38:05 +02:00
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
7f887ecd36 chore: persist navigation state in example app 2018-06-04 17:02:34 +02:00
Grzegorz Gawrysiak
1d3276a2ab BREAKING: Redesign Chips. Closes #369 2018-06-04 15:46:45 +02:00
Satyajit Sahoo
c4e5582adf feat: support using BottomNavigation.SceneMap inside component's render 2018-06-03 23:34:10 +02:00
Satyajit Sahoo
d9a3d77d34 BREAKING: rename Toolbar to Appbar and add Appbar.Header 2018-05-31 16:05:38 +02:00
Satyajit Sahoo
8959640f56 chore: upgrade deps 2018-05-31 07:44:55 +02:00
Dawid
bc5d967772 BREAKING: redesign Snackbar 2018-05-26 22:51:08 +02:00
Satyajit Sahoo
1d511ccfc7 BREAKING: use static properties for related components 2018-05-26 02:16:11 +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
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
3485402a1f BREAKING: rename Paper to Surface 2018-05-26 02:11:11 +02:00
Luke Walczak
e1c795e7de feat: add FABGroup component for FAB with speed dial (#218)
Fixes #210
2018-05-25 12:14:53 +02:00
Satyajit Sahoo
629b57aed2 feat: add extended FAB according to material design
https://material.io/design/components/buttons-floating-action-button.html\#extended-fab
2018-05-11 15:51:02 +02:00
Grzegorz Gawrysiak
b9aa79503c feat: add Chip component 2018-05-06 18:33:30 +02:00
Satyajit Sahoo
772b82ac36 fix: center icon in button along with text 2018-05-06 17:05:20 +02:00
K. P. Sroka
7c054c0028 feat: implement helper and error text support in TextInput (#243) 2018-05-05 18:06:14 +02:00
Grzegorz Gawrysiak
b6462b7a4f feat: add ListAccordion component 2018-05-05 17:39:42 +02:00
Satyajit Sahoo
174af0debb chore: use ListItem in example 2018-05-05 17:05:10 +02:00
Satyajit Sahoo
9fb3df0504 fix: fix icon styling in Searchbar 2018-05-05 16:46:54 +02:00
Satyajit Sahoo
df7fcd248e feat: support render function for icon prop 2018-05-05 16:25:07 +02:00
Dawid
870a4570e3 feat: add snackbar component 2018-05-01 11:13:21 +02:00
Satyajit Sahoo
89fd20e220 docs: update bottom navigation docs. fixes #270 2018-04-30 14:06:53 +02:00
Satyajit Sahoo
4e3e9290bb refactor: rename SearchBar -> Searchbar for consistency 2018-04-19 20:44:36 +02:00
Satyajit Sahoo
1fabaae6f5 refactor: flow tweaks 2018-04-18 10:38:58 +02:00
Satyajit Sahoo
090ce9484d fix: loosen flow types of bottom navigation 2018-04-17 14:39:44 +02:00
Satyajit Sahoo
a3bbb4e934 chore: update dependencies and fix flow 2018-04-17 09:07:23 +02:00
Satyajit Sahoo
85decc73b0 fix: support static properties in withTheme HOC 2018-04-17 07:26:35 +02:00
Grzegorz Gawrysiak
7b2948f570 feat: Add ListSection and ListItem components 2018-04-12 17:29:01 +02:00
Satyajit Sahoo
a8137337ac refactor: don't use deprecated React lifecycles. closes #285 2018-04-05 12:07:20 +02:00