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:
Julian Hundeloh
2018-11-21 11:25:18 +01:00
committed by Satyajit Sahoo
parent eb153f9840
commit e1b81c2f42

View File

@@ -107,6 +107,7 @@ class Card extends React.Component<Props, State> {
render() {
const {
children,
elevation: cardElevation,
onLongPress,
onPress,
style,