76 lines
2.4 KiB
TypeScript
Raw Normal View History

2025-01-28 08:19:46 -06:00
import { Image, StyleSheet, Platform } from 'react-native';
import { HelloWave } from '@/components/HelloWave';
import ParallaxScrollView from '@/components/ParallaxScrollView';
import { ThemedText } from '@/components/ThemedText';
import { ThemedView } from '@/components/ThemedView';
export default function HomeScreen() {
return (
<ParallaxScrollView
headerBackgroundColor={{ light: '#A1CEDC', dark: '#1D3D47' }}
headerImage={
<Image
source={require('@/assets/images/partial-react-logo.png')}
style={styles.reactLogo}
/>
2025-01-28 08:45:02 -06:00
}
>
2025-01-28 08:19:46 -06:00
<ThemedView style={styles.titleContainer}>
2025-01-28 08:45:02 -06:00
<ThemedText type='title'>Welcome!</ThemedText>
2025-01-28 08:19:46 -06:00
<HelloWave />
</ThemedView>
<ThemedView style={styles.stepContainer}>
2025-01-28 08:45:02 -06:00
<ThemedText type='subtitle'>Step 1: Try it</ThemedText>
2025-01-28 08:19:46 -06:00
<ThemedText>
2025-01-28 08:45:02 -06:00
Edit <ThemedText type='defaultSemiBold'>app/(tabs)/index.tsx</ThemedText> to see changes.
2025-01-28 08:19:46 -06:00
Press{' '}
2025-01-28 08:45:02 -06:00
<ThemedText type='defaultSemiBold'>
2025-01-28 08:19:46 -06:00
{Platform.select({
ios: 'cmd + d',
android: 'cmd + m',
2025-01-28 08:45:02 -06:00
web: 'F12',
2025-01-28 08:19:46 -06:00
})}
</ThemedText>{' '}
to open developer tools.
</ThemedText>
</ThemedView>
<ThemedView style={styles.stepContainer}>
2025-01-28 08:45:02 -06:00
<ThemedText type='subtitle'>Step 2: Explore</ThemedText>
2025-01-28 08:19:46 -06:00
<ThemedText>
Tap the Explore tab to learn more about what's included in this starter app.
</ThemedText>
</ThemedView>
<ThemedView style={styles.stepContainer}>
2025-01-28 08:45:02 -06:00
<ThemedText type='subtitle'>Step 3: Get a fresh start</ThemedText>
2025-01-28 08:19:46 -06:00
<ThemedText>
When you're ready, run{' '}
2025-01-28 08:45:02 -06:00
<ThemedText type='defaultSemiBold'>npm run reset-project</ThemedText> to get a fresh{' '}
<ThemedText type='defaultSemiBold'>app</ThemedText> directory. This will move the current{' '}
<ThemedText type='defaultSemiBold'>app</ThemedText> to{' '}
<ThemedText type='defaultSemiBold'>app-example</ThemedText>.
2025-01-28 08:19:46 -06:00
</ThemedText>
</ThemedView>
</ParallaxScrollView>
);
}
const styles = StyleSheet.create({
titleContainer: {
flexDirection: 'row',
alignItems: 'center',
gap: 8,
},
stepContainer: {
gap: 8,
marginBottom: 8,
},
reactLogo: {
height: 178,
width: 290,
bottom: 0,
left: 0,
position: 'absolute',
},
});