Tech_Tracker_Expo/app/(tabs)/explore.tsx

89 lines
3.4 KiB
TypeScript

import Ionicons from '@expo/vector-icons/Ionicons';
import { Image, Platform } from 'react-native';
import { Collapsible } from '@/components/Collapsible';
import { ExternalLink } from '@/components/ExternalLink';
import ParallaxScrollView from '@/components/ParallaxScrollView';
import { Text, View } from 'react-native';
export default function TabTwoScreen() {
return (
<ParallaxScrollView
headerBackgroundColor={{ light: '#D0D0D0', dark: '#353636' }}
headerImage={<Ionicons size={310} name="code-slash" className='bottom-24 left-9 absolute' />}>
<View className="flex flex-row gap-2">
<Text>Explore</Text>
</View>
<Text>This app includes example code to help you get started.</Text>
<Collapsible title="File-based routing">
<Text>
This app has two screens:{' '}
<Text>app/(tabs)/index.tsx</Text> and{' '}
<Text>app/(tabs)/explore.tsx</Text>
</Text>
<Text>
The layout file in <Text>app/(tabs)/_layout.tsx</Text>{' '}
sets up the tab navigator.
</Text>
<ExternalLink href="https://docs.expo.dev/router/introduction">
<Text>Learn more</Text>
</ExternalLink>
</Collapsible>
<Collapsible title="Android, iOS, and web support">
<Text>
You can open this project on Android, iOS, and the web. To open the web version, press{' '}
<Text>w</Text> in the terminal running this project.
</Text>
</Collapsible>
<Collapsible title="Images">
<Text>
For static images, you can use the <Text>@2x</Text> and{' '}
<Text>@3x</Text> suffixes to provide files for
different screen densities
</Text>
<Image source={require('@/assets/images/react-logo.png')} style={{ alignSelf: 'center' }} />
<ExternalLink href="https://reactnative.dev/docs/images">
<Text>Learn more</Text>
</ExternalLink>
</Collapsible>
<Collapsible title="Custom fonts">
<Text>
Open <Text>app/_layout.tsx</Text> to see how to load{' '}
<Text style={{ fontFamily: 'SpaceMono' }}>
custom fonts such as this one.
</Text>
</Text>
<ExternalLink href="https://docs.expo.dev/versions/latest/sdk/font">
<Text>Learn more</Text>
</ExternalLink>
</Collapsible>
<Collapsible title="Light and dark mode components">
<Text>
This template has light and dark mode support. The{' '}
<Text>useColorScheme()</Text> hook lets you inspect
what the user's current color scheme is, and so you can adjust UI colors accordingly.
</Text>
<ExternalLink href="https://docs.expo.dev/develop/user-interface/color-themes/">
<Text>Learn more</Text>
</ExternalLink>
</Collapsible>
<Collapsible title="Animations">
<Text>
This template includes an example of an animated component. The{' '}
<Text>components/HelloWave.tsx</Text> component uses
the powerful <Text>react-native-reanimated</Text> library
to create a waving hand animation.
</Text>
{Platform.select({
ios: (
<Text>
The <Text>components/ParallaxScrollView.tsx</Text>{' '}
component provides a parallax effect for the header image.
</Text>
),
})}
</Collapsible>
</ParallaxScrollView>
);
}