549 Commits

Author SHA1 Message Date
Satyajit Sahoo
10cb0b201c chore: release 2.1.2 v2.1.2 2018-10-08 03:29:29 +02:00
Satyajit Sahoo
53b5c0f681 chore: automate release with relase-it. fixes #275 2018-10-08 03:28:02 +02:00
Kacper Wiszczuk
0837f8c2e8 fix: fix Typescript withTheme return type (#582)
Fix Typescript type for `withTheme`.

```typescript
const Wrapped = withTheme(Component);
render = () => <Wrapped theme={somePartialTheme} />
```
2018-10-07 21:56:31 +02:00
Dawid
4e9056286b fix: fix small issue in docs (Showcase section). (#581)
While i was trying to update React and Flow versions, i found a small issue in docs.  We were trying to access `android` and `ios` properties on wrong object.
2018-10-07 19:55:25 +02:00
Kacper Wiszczuk
0a2349ad9c fix: fix types for component wrapping other components (#579)
Fixes #578
2018-10-07 13:41:49 +02:00
Satyajit Sahoo
6a334ad212 chore: release 2.1.1 v2.1.1 2018-10-05 17:00:12 +02:00
Kacper Wiszczuk
6b6a3d1383 fix: fix withTheme typescript type (#577) 2018-10-05 16:52:01 +02:00
Satyajit Sahoo
0c40b6e511 chore: release 2.1.0 v2.1.0 2018-10-04 17:24:16 +02:00
Lucas Vieira
23d2761bbe fix: fix caption font size (#572)
Fixes #563
2018-10-04 15:13:36 +02:00
Grzegorz Gawrysiak
b4fe2b5f7d fix: Card action buttons alignment (#559)
### Motivation

Fixes #556. It appears like the default card actions padding is slightly wrong. The issue affects buttons as well.

This is somehow a possibly minor, but breaking change for existing projects, so I'll try to explain what's going on.

### Resources

Cards
![screen shot 2018-09-27 at 22 50 47](https://user-images.githubusercontent.com/7827311/46173876-d2659600-c2a7-11e8-8506-1b95d17a58c2.png)
According to MD guidelines the card actions padding is 8. The content's padding is 16. Cards use the "compact" buttons with smaller padding - 8 instead of standard 16.

Buttons
![screen shot 2018-09-27 at 22 09 27](https://user-images.githubusercontent.com/7827311/46172613-3d14d280-c2a4-11e8-8f7d-502c4f007cf8.png)
The standard horizontal padding is 16. Although it's different for card action buttons. Notice the min-width value, which is 64, but the buttons section doesn't really describe the compact buttons.

### Solution

The example provided by @brunohkbx presented a case where it got caught into the min-width trap. The text was too small and caused a larger button padding. If you run this [expo snack](https://snack.expo.io/HyqcT35KX), it presents the same case, just with different button text. First goes too far to the right, second goes too far to the left.

The first thing to fix was the card actions padding - switch from 4 to 8. It results in:
<img width="377" alt="screen shot 2018-09-27 at 22 21 01" src="https://user-images.githubusercontent.com/7827311/46172934-2a4ecd80-c2a5-11e8-9364-17911a79cce3.png">
So it works for the expo examples case, but not really for the [mentioned issue](#556). It still gives an extra button padding due to too short text (min-width).

After removing the min-width from compact buttons, it seems like it's finally there:
<img width="376" alt="screen shot 2018-09-27 at 22 13 03" src="https://user-images.githubusercontent.com/7827311/46173141-b95be580-c2a5-11e8-88dd-82a15f5981a5.png">

Finally, it also switches the dialog actions to 8 padding, since that's basically the same thing.

### Test plan

https://snack.expo.io/HydBnn5t7
Snapshot tests updated
2018-10-04 14:25:31 +02:00
Grzegorz Gawrysiak
526b8c1544 fix: Fix flow issues with ref (#551) 2018-10-04 12:19:25 +02:00
Waquid Valiya Peedikakkal
60e0782981 feat: RTL usage for icons (#566) 2018-10-04 12:08:24 +02:00
Kacper Wiszczuk
9e0fe32e14 feat: add typescript support (#561) 2018-10-04 12:04:10 +02:00
Dawid
224d473e51 docs: improve docs for fab component by adding styles. (#568)
* docs: improve docs for fab component by adding styles.

* refactor: remove unecessary white space.

* refactor: improve fab docs.
2018-10-03 11:52:55 +02:00
Kacper Wiszczuk
ce97029dc9 fix: Update test snapshots (#558) 2018-09-27 22:31:00 +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
Iyad Thayyil
de7b124922 fix: Surface View to Animated.View (#557) 2018-09-26 22:15:37 +02:00
Kacper Wiszczuk
768094119c feat: add custom render to TextInput component 2018-09-26 15:56:40 +02:00
Satyajit Sahoo
9966be7704 chore: fix lint 2018-09-26 15:51:10 +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
41cb7165dd fix: StatusBar.currentHeight is Android-only 2018-09-21 13:55:06 +02:00
Grzegorz Gawrysiak
f145b98eab fix: Remove style prop from touchable (#550) 2018-09-20 12:45:25 +02:00
Tomasz Czajęcki
81b0177f0b docs: fix wrong URL to 'getting started' (#545)
I've noticed that link to the _getting started_ page in the docs seems to not working as expected since `*.html` extension is added anyway and it makes the link broken:
`https://callstack.github.io/react-native-paper/getting-started.html.html`.

### Motivation

The documentation is important part of the library and should be working properly.

### Test plan

Enter `/docs`, install using `yarn` and run it with `yarn start`.

> **NOTE:** _the current version works on localhost and breaks only in the prod env. Suggested change will probably work in both, but needs to be verified by someone who knows the deployment process._
2018-09-13 12:52:07 +02:00
Antonio Moreno Valls
241ddb3e8c docs: update RadioButton docs with new version 2.0.1 (#542)
### Motivation

Update documentation with new version `2.0.1` of `react-native-paper`. RadioButton props are quite different from version 1 to 2, so docs needed an update.
### Test plan

See docs.
2018-09-11 17:18:09 +02:00
Satyajit Sahoo
7b27b7cde7 chore: release v2.0.1 v2.0.1 2018-09-05 11:02:21 +02:00
Satyajit Sahoo
70f37b8785 fix: get label's background color from backgroundColor style of input 2018-09-04 19:59:40 +02:00
Satyajit Sahoo
b82f183178 docs: add more screenshots 2018-09-04 19:59:40 +02:00
Dawid
6afc38e8b1 fix: fix issue with sibling components being clipped. fixes #527 2018-09-04 16:19:08 +02:00
Satyajit Sahoo
abb71cb008 chore: upgrade component-docs 2018-09-04 15:34:21 +02:00
Satyajit Sahoo
2d7f50ce08 BREAKING: rename tintColor to color in bottom navigation 2018-09-04 15:00:53 +02: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
1b6e652e7f fix: fix dismissable prop of modal which broke in 7b0cd50 2018-09-04 13:11:15 +02:00
Satyajit Sahoo
68ff8e48a2 docs: remove outdated slack link 2018-09-03 22:09:13 +02:00
Satyajit Sahoo
f1522237ba docs: update examples to be runnable 2018-09-03 17:20:53 +02:00
Satyajit Sahoo
06f929bd5c BREAKING: change left and right props to render callbacks 2018-09-03 17:04:58 +02:00
Satyajit Sahoo
6cc83d2be2 docs: add link to try examples on snack 2018-09-03 13:20:41 +02:00
Satyajit Sahoo
389163200c fix: remove flex: 1 from input, it messes up height 2018-09-03 00:06:09 +02:00
Satyajit Sahoo
00361a063c chore: release v2.0.0-alpha.9 v2.0.0-alpha.9 2018-09-02 21:13:27 +02:00
Satyajit Sahoo
e3ee3a28bf docs: update link to the snack in README 2018-09-02 20:46:07 +02:00
Satyajit Sahoo
3128ee7be8 chore: update branding in the documentation 2018-09-02 20:32:50 +02:00
Satyajit Sahoo
d9e1739fd0 chore: also build docs for 1.0 2018-09-02 20:25:11 +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
f6e42f363c chore: upgrade component-docs 2018-09-02 03:41:27 +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
Satyajit Sahoo
e0086991a7 chore: release v2.0.0-alpha.8 v2.0.0-alpha.8 2018-09-01 14:01:10 +02:00
Lucas Vieira
a25b33a7e6 docs: add onDismiss to Modal Usage docs (#489) 2018-09-01 12:58:54 +02:00
Travis Nuttall
a44a679987 docs: fix link to platform adaptation guidelines (#479) 2018-09-01 12:57:21 +02:00