Commit Graph

133 Commits

Author SHA1 Message Date
Kacper Wiszczuk
1d3d9024a2 feat: Initial enzyme setup 2018-08-18 13:34:52 +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
Satyajit Sahoo
505d58d65d docs: rename RadioGroup to RadioButtonGroup and fix docs 2018-03-18 18:46:52 +01:00
Dawid
29f21bc029 feat: Implements radio group component. (#214)
* feat: Implements radio group component.

* Removes stylesheet import and change flow props types.

* Feat: Change RadioGroup to pass props using context.

* Feat: Adds example.

* Fix flow errors in withRadioGroup component.

* feat: Add docs to withRadioGroup component.

* feat: Add comment to withRadio prop.

* Change RadioGroup to use create-react-context.

* refactor: small changes in radioGroup component api.
2018-03-16 00:45:29 +01:00
Satyajit Sahoo
316f3f53ca chore: tweak how vector icons are imported 2018-03-07 13:38:29 +01:00
Satyajit Sahoo
c48ba8a1c4 feat: add bottom navigation component (#258) 2018-03-05 13:47:05 +01:00
Satyajit Sahoo
8542439e9f refactor: remove screen props from example 2018-03-04 17:30:30 +01:00
Satyajit Sahoo
1766fd10b6 refactor: use create-react-context for theming 2018-03-03 14:31:08 +01:00
Satyajit Sahoo
e54ba17257 chore: fix card example 2018-03-03 13:16:49 +01:00
Satyajit Sahoo
865ca05f19 fix: handle status bar automatically on Expo. fixes #251 2018-03-03 13:07:19 +01:00
Satyajit Sahoo
4b4492831d fix: fix toolbar issues with dark prop 2018-03-03 12:37:59 +01:00
Satyajit Sahoo
228749346c fix: rework portal to isolate rendering of portals. fixes #216 (#261) 2018-03-03 12:14:15 +01:00
Michał Pierzchała
3e1cfa8e93 chore: use eslint-config-callstack-io (#250) 2018-02-26 13:17:25 +01:00
ferrannp
d8e7c17178 docs: make screenshots for Dialog 2018-02-22 16:37:03 +01:00
Satyajit Sahoo
cf5c9b9a43 BREAKING: remove GridView for now 2018-02-22 12:29:47 +01:00
Satyajit Sahoo
91bf179df0 docs: Improvements to the documentation 2018-02-21 15:40:25 +01:00