File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
Pressable ,
14
14
Keyboard ,
15
15
} from 'react-native' ;
16
+ import { scale , verticalScale } from 'react-native-size-matters' ;
16
17
17
18
import { supabase } from '~/utils/supabase' ;
18
19
@@ -105,7 +106,7 @@ export default function Home() {
105
106
< LottieView
106
107
source = { require ( '../../assets/animations/chef.json' ) }
107
108
ref = { animation }
108
- style = { { height : 300 , width : 300 } }
109
+ style = { { height : scale ( 300 ) , width : scale ( 300 ) } }
109
110
loop
110
111
autoPlay
111
112
/>
@@ -115,7 +116,7 @@ export default function Home() {
115
116
{ recipe ? (
116
117
< ScrollView
117
118
showsVerticalScrollIndicator = { false }
118
- contentContainerStyle = { { paddingBottom : 200 } } >
119
+ contentContainerStyle = { { paddingBottom : verticalScale ( 200 ) } } >
119
120
< FontAwesome
120
121
name = "star"
121
122
size = { 24 }
@@ -133,7 +134,7 @@ export default function Home() {
133
134
autoPlay
134
135
ref = { animation }
135
136
source = { require ( '../../assets/animations/recipe.json' ) }
136
- style = { { width : 300 , height : 300 } }
137
+ style = { { width : scale ( 300 ) , height : scale ( 300 ) } }
137
138
/>
138
139
< Text className = "text-center text-xl text-white" >
139
140
Let's start with your ingredients for the best recipe!
You can’t perform that action at this time.
0 commit comments