Skip to content

Commit 9e04179

Browse files
fix(example): use animated borderRadius for correct elevation outline
1 parent 2c01b0b commit 9e04179

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

example/src/demos/ShadowDemo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ export function ShadowDemo() {
1818
shadowRadius: 16,
1919
shadowOffset: { width: 0, height: 8 },
2020
elevation: 12,
21+
borderRadius: 16,
2122
}
2223
: {
2324
shadowOpacity: 0,
2425
shadowRadius: 0,
2526
shadowOffset: { width: 0, height: 0 },
2627
elevation: 0,
28+
borderRadius: 16,
2729
}
2830
}
2931
transition={{
@@ -58,7 +60,6 @@ const styles = StyleSheet.create({
5860
box: {
5961
width: 100,
6062
height: 100,
61-
borderRadius: 16,
6263
backgroundColor: '#fff',
6364
shadowColor: '#000',
6465
alignItems: 'center',

0 commit comments

Comments
 (0)