Skip to content

Commit 8773710

Browse files
committed
Initial commit
Generated by create-expo-app 3.2.0.
0 parents  commit 8773710

38 files changed

+14827
-0
lines changed

.gitignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
expo-env.d.ts
11+
12+
# Native
13+
*.orig.*
14+
*.jks
15+
*.p8
16+
*.p12
17+
*.key
18+
*.mobileprovision
19+
20+
# Metro
21+
.metro-health-check*
22+
23+
# debug
24+
npm-debug.*
25+
yarn-debug.*
26+
yarn-error.*
27+
28+
# macOS
29+
.DS_Store
30+
*.pem
31+
32+
# local env files
33+
.env*.local
34+
35+
# typescript
36+
*.tsbuildinfo
37+
38+
app-example

README.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Welcome to your Expo app 👋
2+
3+
This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
4+
5+
## Get started
6+
7+
1. Install dependencies
8+
9+
```bash
10+
npm install
11+
```
12+
13+
2. Start the app
14+
15+
```bash
16+
npx expo start
17+
```
18+
19+
In the output, you'll find options to open the app in a
20+
21+
- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
22+
- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
23+
- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
24+
- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo
25+
26+
You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
27+
28+
## Get a fresh project
29+
30+
When you're ready, run:
31+
32+
```bash
33+
npm run reset-project
34+
```
35+
36+
This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.
37+
38+
## Learn more
39+
40+
To learn more about developing your project with Expo, look at the following resources:
41+
42+
- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
43+
- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
44+
45+
## Join the community
46+
47+
Join our community of developers creating universal apps.
48+
49+
- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
50+
- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.

app.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"expo": {
3+
"name": "ClipScribe",
4+
"slug": "ClipScribe",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/images/icon.png",
8+
"scheme": "myapp",
9+
"userInterfaceStyle": "automatic",
10+
"newArchEnabled": true,
11+
"ios": {
12+
"supportsTablet": true
13+
},
14+
"android": {
15+
"adaptiveIcon": {
16+
"foregroundImage": "./assets/images/adaptive-icon.png",
17+
"backgroundColor": "#ffffff"
18+
}
19+
},
20+
"web": {
21+
"bundler": "metro",
22+
"output": "static",
23+
"favicon": "./assets/images/favicon.png"
24+
},
25+
"plugins": [
26+
"expo-router",
27+
[
28+
"expo-splash-screen",
29+
{
30+
"image": "./assets/images/splash-icon.png",
31+
"imageWidth": 200,
32+
"resizeMode": "contain",
33+
"backgroundColor": "#ffffff"
34+
}
35+
]
36+
],
37+
"experiments": {
38+
"typedRoutes": true
39+
}
40+
}
41+
}

app/(tabs)/_layout.tsx

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { Tabs } from 'expo-router';
2+
import React from 'react';
3+
import { Platform } from 'react-native';
4+
5+
import { HapticTab } from '@/components/HapticTab';
6+
import { IconSymbol } from '@/components/ui/IconSymbol';
7+
import TabBarBackground from '@/components/ui/TabBarBackground';
8+
import { Colors } from '@/constants/Colors';
9+
import { useColorScheme } from '@/hooks/useColorScheme';
10+
11+
export default function TabLayout() {
12+
const colorScheme = useColorScheme();
13+
14+
return (
15+
<Tabs
16+
screenOptions={{
17+
tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint,
18+
headerShown: false,
19+
tabBarButton: HapticTab,
20+
tabBarBackground: TabBarBackground,
21+
tabBarStyle: Platform.select({
22+
ios: {
23+
// Use a transparent background on iOS to show the blur effect
24+
position: 'absolute',
25+
},
26+
default: {},
27+
}),
28+
}}>
29+
<Tabs.Screen
30+
name="index"
31+
options={{
32+
title: 'Home',
33+
tabBarIcon: ({ color }) => <IconSymbol size={28} name="house.fill" color={color} />,
34+
}}
35+
/>
36+
<Tabs.Screen
37+
name="explore"
38+
options={{
39+
title: 'Explore',
40+
tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color} />,
41+
}}
42+
/>
43+
</Tabs>
44+
);
45+
}

app/(tabs)/explore.tsx

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
import { StyleSheet, Image, Platform } from 'react-native';
2+
3+
import { Collapsible } from '@/components/Collapsible';
4+
import { ExternalLink } from '@/components/ExternalLink';
5+
import ParallaxScrollView from '@/components/ParallaxScrollView';
6+
import { ThemedText } from '@/components/ThemedText';
7+
import { ThemedView } from '@/components/ThemedView';
8+
import { IconSymbol } from '@/components/ui/IconSymbol';
9+
10+
export default function TabTwoScreen() {
11+
return (
12+
<ParallaxScrollView
13+
headerBackgroundColor={{ light: '#D0D0D0', dark: '#353636' }}
14+
headerImage={
15+
<IconSymbol
16+
size={310}
17+
color="#808080"
18+
name="chevron.left.forwardslash.chevron.right"
19+
style={styles.headerImage}
20+
/>
21+
}>
22+
<ThemedView style={styles.titleContainer}>
23+
<ThemedText type="title">Explore</ThemedText>
24+
</ThemedView>
25+
<ThemedText>This app includes example code to help you get started.</ThemedText>
26+
<Collapsible title="File-based routing">
27+
<ThemedText>
28+
This app has two screens:{' '}
29+
<ThemedText type="defaultSemiBold">app/(tabs)/index.tsx</ThemedText> and{' '}
30+
<ThemedText type="defaultSemiBold">app/(tabs)/explore.tsx</ThemedText>
31+
</ThemedText>
32+
<ThemedText>
33+
The layout file in <ThemedText type="defaultSemiBold">app/(tabs)/_layout.tsx</ThemedText>{' '}
34+
sets up the tab navigator.
35+
</ThemedText>
36+
<ExternalLink href="https://docs.expo.dev/router/introduction">
37+
<ThemedText type="link">Learn more</ThemedText>
38+
</ExternalLink>
39+
</Collapsible>
40+
<Collapsible title="Android, iOS, and web support">
41+
<ThemedText>
42+
You can open this project on Android, iOS, and the web. To open the web version, press{' '}
43+
<ThemedText type="defaultSemiBold">w</ThemedText> in the terminal running this project.
44+
</ThemedText>
45+
</Collapsible>
46+
<Collapsible title="Images">
47+
<ThemedText>
48+
For static images, you can use the <ThemedText type="defaultSemiBold">@2x</ThemedText> and{' '}
49+
<ThemedText type="defaultSemiBold">@3x</ThemedText> suffixes to provide files for
50+
different screen densities
51+
</ThemedText>
52+
<Image source={require('@/assets/images/react-logo.png')} style={{ alignSelf: 'center' }} />
53+
<ExternalLink href="https://reactnative.dev/docs/images">
54+
<ThemedText type="link">Learn more</ThemedText>
55+
</ExternalLink>
56+
</Collapsible>
57+
<Collapsible title="Custom fonts">
58+
<ThemedText>
59+
Open <ThemedText type="defaultSemiBold">app/_layout.tsx</ThemedText> to see how to load{' '}
60+
<ThemedText style={{ fontFamily: 'SpaceMono' }}>
61+
custom fonts such as this one.
62+
</ThemedText>
63+
</ThemedText>
64+
<ExternalLink href="https://docs.expo.dev/versions/latest/sdk/font">
65+
<ThemedText type="link">Learn more</ThemedText>
66+
</ExternalLink>
67+
</Collapsible>
68+
<Collapsible title="Light and dark mode components">
69+
<ThemedText>
70+
This template has light and dark mode support. The{' '}
71+
<ThemedText type="defaultSemiBold">useColorScheme()</ThemedText> hook lets you inspect
72+
what the user's current color scheme is, and so you can adjust UI colors accordingly.
73+
</ThemedText>
74+
<ExternalLink href="https://docs.expo.dev/develop/user-interface/color-themes/">
75+
<ThemedText type="link">Learn more</ThemedText>
76+
</ExternalLink>
77+
</Collapsible>
78+
<Collapsible title="Animations">
79+
<ThemedText>
80+
This template includes an example of an animated component. The{' '}
81+
<ThemedText type="defaultSemiBold">components/HelloWave.tsx</ThemedText> component uses
82+
the powerful <ThemedText type="defaultSemiBold">react-native-reanimated</ThemedText>{' '}
83+
library to create a waving hand animation.
84+
</ThemedText>
85+
{Platform.select({
86+
ios: (
87+
<ThemedText>
88+
The <ThemedText type="defaultSemiBold">components/ParallaxScrollView.tsx</ThemedText>{' '}
89+
component provides a parallax effect for the header image.
90+
</ThemedText>
91+
),
92+
})}
93+
</Collapsible>
94+
</ParallaxScrollView>
95+
);
96+
}
97+
98+
const styles = StyleSheet.create({
99+
headerImage: {
100+
color: '#808080',
101+
bottom: -90,
102+
left: -35,
103+
position: 'absolute',
104+
},
105+
titleContainer: {
106+
flexDirection: 'row',
107+
gap: 8,
108+
},
109+
});

app/(tabs)/index.tsx

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import { Image, StyleSheet, Platform } from 'react-native';
2+
3+
import { HelloWave } from '@/components/HelloWave';
4+
import ParallaxScrollView from '@/components/ParallaxScrollView';
5+
import { ThemedText } from '@/components/ThemedText';
6+
import { ThemedView } from '@/components/ThemedView';
7+
8+
export default function HomeScreen() {
9+
return (
10+
<ParallaxScrollView
11+
headerBackgroundColor={{ light: '#A1CEDC', dark: '#1D3D47' }}
12+
headerImage={
13+
<Image
14+
source={require('@/assets/images/partial-react-logo.png')}
15+
style={styles.reactLogo}
16+
/>
17+
}>
18+
<ThemedView style={styles.titleContainer}>
19+
<ThemedText type="title">Welcome!</ThemedText>
20+
<HelloWave />
21+
</ThemedView>
22+
<ThemedView style={styles.stepContainer}>
23+
<ThemedText type="subtitle">Step 1: Try it</ThemedText>
24+
<ThemedText>
25+
Edit <ThemedText type="defaultSemiBold">app/(tabs)/index.tsx</ThemedText> to see changes.
26+
Press{' '}
27+
<ThemedText type="defaultSemiBold">
28+
{Platform.select({
29+
ios: 'cmd + d',
30+
android: 'cmd + m',
31+
web: 'F12'
32+
})}
33+
</ThemedText>{' '}
34+
to open developer tools.
35+
</ThemedText>
36+
</ThemedView>
37+
<ThemedView style={styles.stepContainer}>
38+
<ThemedText type="subtitle">Step 2: Explore</ThemedText>
39+
<ThemedText>
40+
Tap the Explore tab to learn more about what's included in this starter app.
41+
</ThemedText>
42+
</ThemedView>
43+
<ThemedView style={styles.stepContainer}>
44+
<ThemedText type="subtitle">Step 3: Get a fresh start</ThemedText>
45+
<ThemedText>
46+
When you're ready, run{' '}
47+
<ThemedText type="defaultSemiBold">npm run reset-project</ThemedText> to get a fresh{' '}
48+
<ThemedText type="defaultSemiBold">app</ThemedText> directory. This will move the current{' '}
49+
<ThemedText type="defaultSemiBold">app</ThemedText> to{' '}
50+
<ThemedText type="defaultSemiBold">app-example</ThemedText>.
51+
</ThemedText>
52+
</ThemedView>
53+
</ParallaxScrollView>
54+
);
55+
}
56+
57+
const styles = StyleSheet.create({
58+
titleContainer: {
59+
flexDirection: 'row',
60+
alignItems: 'center',
61+
gap: 8,
62+
},
63+
stepContainer: {
64+
gap: 8,
65+
marginBottom: 8,
66+
},
67+
reactLogo: {
68+
height: 178,
69+
width: 290,
70+
bottom: 0,
71+
left: 0,
72+
position: 'absolute',
73+
},
74+
});

app/+not-found.tsx

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { Link, Stack } from 'expo-router';
2+
import { StyleSheet } from 'react-native';
3+
4+
import { ThemedText } from '@/components/ThemedText';
5+
import { ThemedView } from '@/components/ThemedView';
6+
7+
export default function NotFoundScreen() {
8+
return (
9+
<>
10+
<Stack.Screen options={{ title: 'Oops!' }} />
11+
<ThemedView style={styles.container}>
12+
<ThemedText type="title">This screen doesn't exist.</ThemedText>
13+
<Link href="/" style={styles.link}>
14+
<ThemedText type="link">Go to home screen!</ThemedText>
15+
</Link>
16+
</ThemedView>
17+
</>
18+
);
19+
}
20+
21+
const styles = StyleSheet.create({
22+
container: {
23+
flex: 1,
24+
alignItems: 'center',
25+
justifyContent: 'center',
26+
padding: 20,
27+
},
28+
link: {
29+
marginTop: 15,
30+
paddingVertical: 15,
31+
},
32+
});

0 commit comments

Comments
 (0)