367 Commits

Author SHA1 Message Date
Satyajit Sahoo
23cdb3cd20 fix: disable ripple effect on Android P
Ripple effect has a lot of issues on Android P https://github.com/facebook/react-native/issues/6480

Let's disable it for now and figure out how to fix/workaround it
2018-12-19 13:37:58 +01:00
Rajendran Nadar
79e1ef2282 feat: add onpress prop for appbar content (#700) 2018-12-18 13:46:04 +05:30
Satyajit Sahoo
c80ca3fa26 chore: use babel-test for testing the babel plugin 2018-12-17 18:32:09 +01:00
Satyajit Sahoo
23b963b3d6 fix: rename right to numeric for tables 2018-12-10 12:54:26 +01:00
Erkan Ertürk
3a8ca88113 docs: fix typo in AppbarContent.js (#692) 2018-12-10 12:28:32 +01:00
Rajendran Nadar
ae9cc91fbf feat: ability to change button text case (#674) 2018-12-10 12:23:09 +01:00
Antonio Moreno Valls
c0f7f90e67 feat: ToggleButton component (#575) 2018-12-10 12:17:18 +01:00
KevinG
0ad98f3bf2 fix: pass down testID from Card props to Touchable for Detox tests (#683) 2018-11-27 12:29:34 +01:00
Julian Hundeloh
68a5b78ac1 feat: DataTable component (#446) 2018-11-27 12:29:01 +01:00
Satyajit Sahoo
268b7bb56a docs: fix vector icons on snack.expo.io. fixes #675 2018-11-23 16:18:48 +01:00
KevinG
da9f234343 fix: pass down testID from chip props to touchable for Detox tests. (#661) 2018-11-22 18:19:26 +01:00
ferrannp
7b52832702 fix: fix flow errors 2018-11-22 16:47:45 +01:00
Ferran Negre
47d9b0ddfa Update types.js 2018-11-22 16:24:41 +01:00
Julian Hundeloh
e1b81c2f42 fix: do not pass on elevation as property (#664)
### Motivation

Otherwise the `elevation` prop will be passed on to `Animated.View` in `Surface` component and cause this warning on web: You are setting the style `{ elevation: ... }` as a prop. You should nest it in a style object. E.g. `{ style: { elevation: ... } }`

### Test plan

n/a
2018-11-21 11:25:18 +01:00
Luís
60afd02df0 fix: TextInput align top with multiline (#651) 2018-11-13 14:32:16 +01:00
Satyajit Sahoo
dec191f5c7 refactor: export types from the main entry instead of /types 2018-11-08 17:26:19 +01:00
Satyajit Sahoo
f295272bf8 fix: use exact types when possible 2018-11-08 17:26:19 +01:00
Satyajit Sahoo
0294209504 fix: merge types with the props of the component used internally 2018-11-08 17:26:19 +01:00
Satyajit Sahoo
aee06f3638 fix: fix chip snapshot tests 2018-11-08 16:39:58 +01:00
Satyajit Sahoo
a95eb10a48 fix: don't pass all props down to Text 2018-11-08 16:39:23 +01:00
Satyajit Sahoo
38b14c1bf2 fix: add a check to ensure Jest doesn't throw error. closes #644 2018-11-07 12:38:35 +01:00
Satyajit Sahoo
e31a33e92d fix: fix textinput not animating on changing error. fixes #611 2018-11-06 15:40:25 +01:00
Satyajit Sahoo
0f52b7c3fb fix: get version from native modules instead of haste. closes #642 2018-11-06 12:13:56 +01:00
Satyajit Sahoo
4aa7addb87 fix: use new Switch API from RN >= 0.57. fixes #571 2018-11-05 23:25:20 +01:00
Satyajit Sahoo
dcc5bf12d7 test: fix list accordion snapshot 2018-11-05 23:25:19 +01:00
Dylan Companjen
124f52f598 fix: change the keyboard appearance according to theme (#593)
If the dark theme is active, currently there is still a light keyboard shown (iOS).
2018-11-05 22:23:45 +01:00
Iyad Thayyil
aed0bfd4c9 fix: add RTL support to searchbar(#565) 2018-11-05 22:22:17 +01:00
Lucas Vieira
decbedbd82 feat: allow List.Accordion to behave as a controlled component (#638)
fixes #616, #635
closes #618
2018-11-05 22:13:41 +01:00
Andrei Barabas
8764f60370 fix: add tests for snackbar visibility on mount 2018-11-05 15:33:32 +01:00
Satyajit Sahoo
e4a48ba7dc test: fix bottom navigation tests 2018-11-05 15:28:10 +01:00
Brent Vatne
627aa90c2b Fix tab focus animation bug from react-native@~0.57 on Android (#637)
* Fix tab focus animation bug from react-native@~0.57
https://github.com/react-navigation/react-navigation-material-bottom-tabs/issues/22

* Add a comment to provide context for the change
2018-11-05 15:23:19 +01:00
Satyajit Sahoo
5265fb4e52 chore: upgrade deps 2018-11-05 15:10:54 +01:00
Dawid
8c13f84387 feat: provide nice error message for users that use Portal without Provider. (#622)
### Motivation

This PR makes clear what is the cause of app crash when user doesn't wrap his components' tree with Provider component.

### Test plan

Render Portal component without wrapping components' tree with Provider component.
Nice error message with link to our docs will be presented.
2018-10-24 12:30:38 +02:00
Julian Hundeloh
d3d17e7f5a fix: make example typescript compatible (#623)
### Motivation

Other PRs break because of this (e.g. see `typescript` deploy script at https://github.com/callstack/react-native-paper/pull/620)

### Test plan

Run `yarn typescript` and it should not break anymore.
2018-10-23 18:08:48 +02:00
Julian Hundeloh
a4579bdb4c fix: hidden snackbar if initially visible (#621)
Problem: snackbar stays hidden if the `visible` property is initially `true`
2018-10-23 14:13:10 +02:00
Satyajit Sahoo
b980c365f7 fix: grow text input to fill available space. fixes #612 2018-10-18 16:56:58 +02:00
Satyajit Sahoo
5a51af4378 fix: fix helper text not shown the first time it's visible 2018-10-18 16:54:26 +02:00
Bruno Castro
56840ee6bf fix: don't update TextInput content if it's not editable (#608)
Prevent component to update current value when it isn't editable

Resolves #589
2018-10-18 16:20:47 +02:00
Andrew Durber
0697fb6ee2 fix: Always show error outline when including when unfocused (#595) (#598)
### Motivation

TextInput with outline in an error state should correctly indicate an error when unfocused. This would also close #595 

### Test plan

It could also be possible to add a different prop `keepOutline` (not 100% on the name) instead of relying on the error state. However I'm unsure how that might be useful. 

![focused-cropped](https://user-images.githubusercontent.com/5732291/46907418-eea13e00-cf09-11e8-8a16-725ef016f88c.png)
![unfocused-cropped](https://user-images.githubusercontent.com/5732291/46907419-eea13e00-cf09-11e8-9539-95020b73ec71.png)
2018-10-13 19:24:55 +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