File tree Expand file tree Collapse file tree 3 files changed +20
-22
lines changed Expand file tree Collapse file tree 3 files changed +20
-22
lines changed Original file line number Diff line number Diff line change @@ -272,17 +272,7 @@ const FabButton = () => {
272
272
className = 'absolute bottom-7 right-5 z-10'
273
273
>
274
274
< Press
275
- style = { {
276
- shadowColor : '#000' ,
277
- shadowOffset : {
278
- width : 2 ,
279
- height : 2 ,
280
- } ,
281
- elevation : 6 ,
282
- shadowOpacity : 0.5 ,
283
- height : 60 ,
284
- width : 60 ,
285
- } }
275
+ style = { fabStyles . fabShadow }
286
276
onPress = { ( ) => navigation . navigate ( 'DeveloperOptions' ) }
287
277
activeOpacity = { 0.9 }
288
278
activeScale = { 0.95 }
Original file line number Diff line number Diff line change
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ const fabStyles = StyleSheet . create ( {
4
+ fabShadow : {
5
+ shadowColor : '#000' ,
6
+ shadowOffset : {
7
+ width : 2 ,
8
+ height : 2 ,
9
+ } ,
10
+ elevation : 6 ,
11
+ shadowOpacity : 0.5 ,
12
+ height : 60 ,
13
+ width : 60 ,
14
+ } ,
15
+ } )
16
+
17
+ export default fabStyles
Original file line number Diff line number Diff line change 1
1
import { PlaySolidIcon } from '@assets/icons/icons'
2
2
import Press from '@components/Press'
3
+ import fabStyles from '@screens/Home/styles/fabStyles'
3
4
import Animated , { ZoomIn , ZoomOut } from 'react-native-reanimated'
4
5
5
6
export default function RunButton ( { onPlay } : { onPlay : ( ) => void } ) {
@@ -10,17 +11,7 @@ export default function RunButton({ onPlay }: { onPlay: () => void }) {
10
11
className = 'absolute bottom-7 right-5 z-10'
11
12
>
12
13
< Press
13
- style = { {
14
- shadowColor : '#000' ,
15
- shadowOffset : {
16
- width : 2 ,
17
- height : 2 ,
18
- } ,
19
- elevation : 6 ,
20
- shadowOpacity : 0.5 ,
21
- height : 60 ,
22
- width : 60 ,
23
- } }
14
+ style = { fabStyles . fabShadow }
24
15
activeOpacity = { 0.9 }
25
16
activeScale = { 0.95 }
26
17
className = 'items-center justify-center rounded-full bg-accent'
You can’t perform that action at this time.
0 commit comments