Julian Hundeloh
908fe6b444
fix: make onDismiss optional for Dialog and Modal ( #890 )
2019-03-07 12:24:40 +02:00
Julian Hundeloh
d81de72938
fix: add onLongPress prop to typescript types (Card) ( #892 )
2019-03-05 18:16:59 +02:00
Óscar Carretero
e2b4ba4da7
feat: add ListSubheader component ( #739 )
...
* feat: add ListSubheader component
* feat: update ListSection in order to use ListSubheader
The `title` property is set as deprecated.
* test: update ListSection tests
* docs: update ListSection example
* feat: add ListSubheader typings
* docs: add ListSubheader usage example
* test: update snapshot
* refactor: remove warning
* fix: revert styles
2019-03-01 12:48:17 +02:00
R M
53e3bae7e3
feat: add a contentStyle prop to Button
2019-02-25 19:03:29 +01:00
Travis Collins
d29eb93d02
fix: pass down accessible from Card props to Touchable for Appium tests ( #812 )
2019-02-21 14:21:43 +01:00
Pedro Henrique
0780e9b3c1
fix: update typescript types for button ( #847 )
...
Add uppercase property
2019-02-18 16:08:51 +05:30
Julian Hundeloh
75e7c52991
fix: fix typescript types (Avatar, ProgressBar) ( #842 )
...
* fix: update types
* fix: fix typo
2019-02-17 13:27:44 +02:00
Guilherme Lisboa
7fbd6b7902
fix: fix typings for cards.d.ts ( #840 )
2019-02-14 18:01:32 +01:00
buncis
3983edd0bf
fix: update TextInput Typing ( #833 )
2019-02-12 20:22:00 +01:00
Julian Hundeloh
ad6f253df8
feat: add card title component ( #796 )
...
* feat: card title
* fix: add action prop
* fix: harmonize props with List.Item
* fix: set fixed width of left element
* fix: optimize height
2019-02-06 10:21:01 +01:00
Julian Hundeloh
fb6762ee10
feat: ActivityIndicator component ( #723 )
...
This component serves as a drop-in replacement for the component that is delivered by React Native out of the box. It's design tries to imitate the indeterminate circular progress indicator from the Material guidelines:
https://material.io/design/components/progress-indicators.html#circular-progress-indicators
2019-02-04 08:34:56 +01:00
Julian Hundeloh
2bca3d8278
feat: introduce animated property on IconButton
2019-01-29 20:50:12 +01:00
Grzegorz Gawrysiak
b799a1e5f8
feat: allow to change background for FAB Group ( #758 )
...
### Motivation
It's currently possible to change the background color for FAB and also items within FAB.Group components. Changing the background color in FAB Group causes the overlay background to change.
This PR makes it possible to change the background for the FAB Group main button.
Current behavior:
<img width="377" alt="screen shot 2019-01-25 at 17 41 56" src="https://user-images.githubusercontent.com/7827311/51761486-797b0280-20cd-11e9-93de-1eaf1ba64ff8.png ">
### Test plan
https://snack.expo.io/ryjNEaO7E
2019-01-28 12:13:43 +01:00
Yukiya Nakagawa
4c918ffb9b
fix: fix TypeScript typings for TextInput methods ( #753 )
...
### Motivation
* paper version: v2.6.1
* typescript version: v3.2.2
The `TextInput` class has public methods `isFocused`, `clear`, `focus`, `blur`.
https://github.com/callstack/react-native-paper/blob/v2.6.1/src/components/TextInput.js#L348-L374
However, they are not declared in d.ts as below.

### Test plan
Typecheck for below function.
```typescript
import { TextInput } from "react-native-paper";
function doAnything(textInput: TextInput) {
textInput.isFocused();
textInput.clear();
textInput.focus();
textInput.blur();
}
```
2019-01-24 10:59:28 +01:00
Satyajit Sahoo
e55f6cc205
fix: update typescript types for bottom navigation
2019-01-23 10:48:08 +01:00
Julian Hundeloh
1de5095d13
feat: add Badge component
2019-01-22 15:02:36 +01:00
Julian Hundeloh
b68fac70b0
feat: add Avatar component
2019-01-22 12:55:16 +01:00
Satyajit Sahoo
d969f021c6
fix: make type optional for helper text in TS definitions
2019-01-22 11:57:34 +01:00
Satyajit Sahoo
c863e4c756
feat: hide bottom navigation when keyboard is shown. closes #676
2019-01-21 12:51:45 +01:00
Julian Hundeloh
1059b50d12
feat: add animated visibility for FAB ( #720 )
...
* feat: animated FAB
* feat: animated FAB
* fix: decrease hide animation duration.
2019-01-07 12:35:55 +01:00
Satyajit Sahoo
23b963b3d6
fix: rename right to numeric for tables
2018-12-10 12:54:26 +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
KevinG
da9f234343
fix: pass down testID from chip props to touchable for Detox tests. ( #661 )
2018-11-22 18:19:26 +01:00
aaska
a3c3a9dfe0
updating typescript definition for Drawer.Item ( #667 )
2018-11-22 12:12:02 +01:00
Shen Junru
eb153f9840
fix: fix TouchableRipple props types for typescript ( #662 )
...
Fix TouchableRipple props types
2018-11-20 17:06:35 +01:00
Shen Junru
a87c1dd85b
fix: connect ts declaration with @types/react-native ( #627 )
...
* fix: connect ts declaration with @types/react-native
* fix: ts declaration
* fix: ts declaration
2018-11-08 10:32:53 +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
doomsower
37d911118d
fix: ts declaration of TouchableRipple ( #615 )
...
* fix: ts declaration of TouchableRipple
2018-10-24 13:03:31 +02:00
Yukiya Nakagawa
2969b1d062
fix: fix Snackbar static constants type for typescript ( #609 )
...
### Motivation
Below `Snackbar` usage has error.
<img width="332" alt="2018-10-18 20 18 21" src="https://user-images.githubusercontent.com/434227/47150896-19790100-d313-11e8-8794-256703ab654b.png ">
And error message:
```
path/to/my/component.tsx:131:17 - error TS2322: Type 'string' is not assignable to type 'number | undefined'.
131 duration={Snackbar.DURATION_SHORT}
~~~~~~~~
node_modules/react-native-paper/typings/components/Snackbar.d.ts:10:3
10 duration?: number;
~~~~~~~~
The expected type comes from property 'duration' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<Snackbar> & Readonly<{ children?: ReactNode; }> & Readonly<SnackbarProps>'
```
Because `duration` was defined as a `string` in the type definition file. I fixed it.
### Test plan
Typecheck for below jsx.
```jsx
<Snackbar
visible={true}
duration={Snackbar.DURATION_SHORT}>
Foo
</Snackbar>
```
2018-10-18 14:17:46 +02:00
Kacper Wiszczuk
0a2349ad9c
fix: fix types for component wrapping other components ( #579 )
...
Fixes #578
2018-10-07 13:41:49 +02:00
Kacper Wiszczuk
9e0fe32e14
feat: add typescript support ( #561 )
2018-10-04 12:04:10 +02:00