mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-13 17:45:46 +08:00
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
This commit is contained in:
committed by
Satyajit Sahoo
parent
eb153f9840
commit
e1b81c2f42
@@ -107,6 +107,7 @@ class Card extends React.Component<Props, State> {
|
||||
render() {
|
||||
const {
|
||||
children,
|
||||
elevation: cardElevation,
|
||||
onLongPress,
|
||||
onPress,
|
||||
style,
|
||||
|
||||
Reference in New Issue
Block a user