ferrannp
903afcca71
chore: release 2.2.7
v2.2.7
2018-11-22 16:54:32 +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
Rajendran Nadar
57fc5ecaab
chore: fix ambiguous resolution ( #654 )
...
* chore: upgrade expo-cli to v2.3.8
* fix :ambiguous module resolution
* fix: normal-regex to escape-string-regex
2018-11-22 12:14:45 +01:00
aaska
a3c3a9dfe0
updating typescript definition for Drawer.Item ( #667 )
2018-11-22 12:12:02 +01:00
Satyajit Sahoo
1d9340954f
chore: release 2.2.6
v2.2.6
2018-11-21 11:49:34 +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
Shen Junru
eb153f9840
fix: fix TouchableRipple props types for typescript ( #662 )
...
Fix TouchableRipple props types
2018-11-20 17:06:35 +01:00
Satyajit Sahoo
ef674181cd
chore: release 2.2.5
v2.2.5
2018-11-18 08:33:49 +01:00
Luís
60afd02df0
fix: TextInput align top with multiline ( #651 )
2018-11-13 14:32:16 +01:00
Satyajit Sahoo
50cd9f69ee
chore: release 2.2.4
v2.2.4
2018-11-08 17:26:44 +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
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
Satyajit Sahoo
466c2fc2f4
chore: release 2.2.3
v2.2.3
2018-11-07 12:39:31 +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
2e23161ea3
chore: release 2.2.2
v2.2.2
2018-11-06 15:41:08 +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
77fb950de3
docs: update the guides for latest React Native
2018-11-06 15:34:22 +01:00
Satyajit Sahoo
caa63a7d67
chore: release 2.2.1
v2.2.1
2018-11-06 12:14: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
9eb0c4ade0
chore: fix rendering the logo on npm
2018-11-06 00:32:21 +01:00
Satyajit Sahoo
e541704e5d
chore: release 2.2.0
v2.2.0
2018-11-05 23:26:06 +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
doomsower
37d911118d
fix: ts declaration of TouchableRipple ( #615 )
...
* fix: ts declaration of TouchableRipple
2018-10-24 13:03:31 +02: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
Bruno Castro
706c13d888
fix: TextInput example (accept upperCase and lowerCase letters) ( #619 )
...
It should accept both uppercase and lowercase letters
2018-10-23 08:56:57 +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
Rajendran Nadar
39ceec618c
docs: add keyboardavoidingview to text input example ( #588 )
...
Added KeyBoardAvoidingView because it is hard to check the last TextInput in the example
2018-10-18 16:02:43 +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
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.


2018-10-13 19:24:55 +02:00
Altaf Shaikh
ee954e8a8d
fix: RadioButton dialog example should use status props. ( #592 )
...
* fix: use correct props in radio button dialog example
* fix: use correct props in radio button dialog example
2018-10-12 08:23:04 +02:00
Satyajit Sahoo
ec19ad1a05
chore: release 2.1.3
v2.1.3
2018-10-11 14:29:30 +02:00
Satyajit Sahoo
1cf7ae9b1a
chore: fix publishing to npm
2018-10-11 14:27:52 +02:00
Kacper Wiszczuk
b21596c51c
fix: upgrade react-theme-provider ( #584 )
2018-10-09 12:04:26 +02:00