Skip to content

Commit 6b56751

Browse files
authored
refactor floatingbutton style yo use shadows preset (#3071)
1 parent 3d0cecb commit 6b56751

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/floatingButton/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {PropsWithChildren, PureComponent} from 'react';
22
import {StyleSheet, Animated} from 'react-native';
33
import {Constants, asBaseComponent} from '../../commons/new';
4-
import {Colors, Spacings} from '../../style';
4+
import {Colors, Shadows, Spacings} from '../../style';
55
import View from '../view';
66
import Image from '../image';
77
import Button, {ButtonProps} from '../button';
@@ -222,11 +222,7 @@ const styles = StyleSheet.create({
222222
height: '100%'
223223
},
224224
shadow: {
225-
shadowColor: Colors.$backgroundNeutralIdle,
226-
shadowOffset: {height: 5, width: 0},
227-
shadowOpacity: 0.35,
228-
shadowRadius: 12,
229-
elevation: 2
225+
...Shadows.sh20.bottom
230226
},
231227
secondaryMargin: {
232228
marginTop: Spacings.s4,

0 commit comments

Comments
 (0)