Skip to content

Commit c946568

Browse files
committed
Search button UI fix
1 parent 1da2a6b commit c946568

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

app/(tabs)/index.tsx

+13-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ import { LinearGradient } from 'expo-linear-gradient';
33
import LottieView from 'lottie-react-native';
44
import { OpenAI } from 'openai';
55
import { useRef, useState } from 'react';
6-
import { View, Dimensions, TextInput, Button, Alert, ScrollView, Text } from 'react-native';
6+
import {
7+
View,
8+
Dimensions,
9+
TextInput,
10+
Button,
11+
Alert,
12+
ScrollView,
13+
Text,
14+
Pressable,
15+
} from 'react-native';
716

817
import { supabase } from '~/utils/supabase';
918

@@ -83,7 +92,9 @@ export default function Home() {
8392
className="m-2 flex-1 text-white"
8493
placeholderTextColor="gainsboro"
8594
/>
86-
<Button title="Search" color="white" onPress={() => generateRecipes(ingredients)} />
95+
<Pressable className="justify-center" onPress={() => generateRecipes(ingredients)}>
96+
<Text className="text-lg text-white">Search</Text>
97+
</Pressable>
8798
</View>
8899
{loading && (
89100
<View className="flex-1 items-center justify-center">

constants/onboard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const onBoardingData: onBoardingDataType[] = [
2727
{
2828
id: 3,
2929
title: 'Cook & Enjoy!',
30-
subtitle: 'Follow easy step-by-step instructions and enjoy meals made just for you.',
30+
subtitle: 'Follow easy step-by-step instructions by AI and enjoy meals made just for you.',
3131
image: <Image source={Onboarding3} style={{ width: 200, height: 200 }} />,
3232
},
3333
];

0 commit comments

Comments
 (0)