From e1b81c2f4215545ca29fcf990dffd3ecc1ae8cfa Mon Sep 17 00:00:00 2001 From: Julian Hundeloh Date: Wed, 21 Nov 2018 11:25:18 +0100 Subject: [PATCH] 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 --- src/components/Card/Card.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Card/Card.js b/src/components/Card/Card.js index dd5fcb2..43f22ef 100644 --- a/src/components/Card/Card.js +++ b/src/components/Card/Card.js @@ -107,6 +107,7 @@ class Card extends React.Component { render() { const { children, + elevation: cardElevation, onLongPress, onPress, style,