Skip to content

Commit f77786c

Browse files
committed
Create Expo example app
1 parent 40c2cbd commit f77786c

25 files changed

+1711
-6
lines changed

.github/actions/ci-setup/action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,23 @@ runs:
2626
- name: Check for bun.lock changes
2727
run: git diff --exit-code -- bun.lock
2828
shell: bash
29+
30+
- name: Install example dependencies
31+
run: |
32+
if ! bun install --frozen-lockfile 2>&1 | tee output.txt; then
33+
if grep -q "error: lockfile had changes, but lockfile is frozen" output.txt; then
34+
echo "::group::Lockfile diff"
35+
git diff bun.lock
36+
echo "::endgroup::"
37+
fi
38+
rm output.txt
39+
exit 1
40+
fi
41+
rm output.txt
42+
shell: bash
43+
working-directory: example
44+
45+
- name: Check for example bun.lock changes
46+
run: git diff --exit-code -- bun.lock
47+
shell: bash
48+
working-directory: example

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
- name: Check TypeScript
3030
run: bun run check-typescript
3131

32+
- name: Check Example TypeScript
33+
run: bun run check-typescript
34+
working-directory: example
35+
3236
- name: Check Biome
3337
run: bun run check-biome
3438

.gitignore

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1-
node_modules
1+
# debug
2+
npm-debug.*
3+
yarn-debug.*
4+
yarn-error.*
5+
6+
# dependencies
7+
node_modules/
8+
9+
# Expo
10+
.expo/
11+
dist/
12+
expo-env.d.ts
13+
web-build/
14+
15+
# local env files
16+
.env*.local
17+
18+
# macOS
19+
.DS_Store
20+
*.pem
21+
22+
# Metro
23+
.metro-health-check*
24+
25+
# Native
26+
*.jks
27+
*.key
28+
*.mobileprovision
29+
*.orig.*
30+
*.p8
31+
*.p12
32+
.kotlin/
33+
34+
# typescript
35+
*.tsbuildinfo
36+
237
lib
38+
node_modules
339
out-tsc

.syncpackrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@
4141
"workspaces"
4242
],
4343
"sortPackages": true,
44-
"source": ["package.json"],
44+
"source": ["package.json", "example/package.json"],
4545
"versionGroups": [
46+
{
47+
"dependencies": ["@types/react", "react"],
48+
"policy": "sameRange"
49+
},
4650
{
4751
"dependencies": ["$LOCAL"],
4852
"dependencyTypes": ["dev"],

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"files": {
1010
"ignoreUnknown": false,
11-
"includes": ["**/*", "!package.json"]
11+
"includes": ["**/*", "!package.json", "!example/package.json"]
1212
},
1313
"formatter": {
1414
"enabled": true,

bun.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
],
1313
"ignoreRegExpList": ["/from\\s+(['\"]).*\\1/"],
1414
"dictionaryDefinitions": [],
15-
"words": ["bunx", "pacocoursey"],
15+
"words": ["bunx", "weakref"],
1616
"ignoreWords": []
1717
}

example/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
3+
# The following patterns were generated by expo-cli
4+
5+
expo-env.d.ts
6+
# @end expo-cli

example/app.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"expo": {
3+
"name": "example",
4+
"slug": "example",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/images/icon.png",
8+
"scheme": "example",
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+
"edgeToEdgeEnabled": true
20+
},
21+
"web": {
22+
"bundler": "metro",
23+
"output": "static",
24+
"favicon": "./assets/images/favicon.png"
25+
},
26+
"plugins": [
27+
"expo-router",
28+
[
29+
"expo-splash-screen",
30+
{
31+
"image": "./assets/images/splash-icon.png",
32+
"imageWidth": 200,
33+
"resizeMode": "contain",
34+
"backgroundColor": "#ffffff"
35+
}
36+
]
37+
],
38+
"experiments": {
39+
"typedRoutes": true
40+
}
41+
}
42+
}

example/app/_layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import {Stack} from "expo-router"
2+
3+
export default function RootLayout() {
4+
return <Stack />
5+
}

0 commit comments

Comments
 (0)