Repository navigation
Expand file tree
/
Copy pathApp.js
More file actions
77 lines (71 loc) · 2.11 KB
/
Copy pathApp.js
File metadata and controls
77 lines (71 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import * as React from 'react';
import { View, Text, TouchableOpacity, Image, StyleSheet } from 'react-native';
import { NavigationContainer, useNavigation } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import TextScreen from './src/pages/TextScreen';
import LoginScreen from "./src/pages/LoginScreen";
const styles = StyleSheet.create({
homeContainer: {
flex: 1,
alignItems: 'center',
justifyContent: 'flex-start', // Değişen kısım
backgroundColor: '#a6cfe3',
paddingHorizontal: 20,
},
homeLogo: {
width:400,
height: 400,
marginBottom: 20,
},
button: {
backgroundColor: '#1579eb',
paddingVertical: 10,
paddingHorizontal: 30,
borderRadius: 48,
marginTop: 20,
},
title: {
fontSize: 24,
fontWeight: 'bold',
textAlign: 'center',
marginBottom: 20,
},
description: {
fontSize: 16,
textAlign: 'center',
marginBottom: 20,
},
});
function HomeScreen({ navigation }) {
return (
<View style={styles.homeContainer}>
<Image
style={styles.homeLogo}
source={require('./assets/home.png')}
/>
<Text style={styles.title}>Unleash Your Imagination</Text>
<Text style={styles.description}>
Create Images from Words
With Image AI, you can easily bring your imagination to life.
All you need to do is express the image in your mind with words.
Our artificial intelligence will analyze your text and transform it into a unique picture.
</Text>
<TouchableOpacity style={styles.button} onPress={() => navigation.navigate('Text')}>
<Text style={{ color: 'white' }}>Start</Text>
</TouchableOpacity>
</View>
);
}
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Login" component={LoginScreen} />
<Stack.Screen name="Image AI" component={HomeScreen} />
<Stack.Screen name="Text" component={TextScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;