File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ export default function Home() {
96
96
/>
97
97
</ View >
98
98
) }
99
- { recipe && (
99
+
100
+ { recipe ? (
100
101
< ScrollView
101
102
showsVerticalScrollIndicator = { false }
102
103
contentContainerStyle = { { paddingBottom : 200 } } >
@@ -109,6 +110,19 @@ export default function Home() {
109
110
/>
110
111
< Text className = "p-4 text-lg text-white" > { recipe } </ Text >
111
112
</ ScrollView >
113
+ ) : (
114
+ < View className = "flex-1 items-center p-6" >
115
+ < LottieView
116
+ loop
117
+ autoPlay
118
+ ref = { animation }
119
+ source = { require ( '../../assets/animations/recipe.json' ) }
120
+ style = { { width : 400 , height : 400 } }
121
+ />
122
+ < Text className = "text-center text-2xl font-semibold text-white" >
123
+ Let's start with your ingredients for the best recipe!
124
+ </ Text >
125
+ </ View >
112
126
) }
113
127
</ LinearGradient >
114
128
</ View >
You can’t perform that action at this time.
0 commit comments