Skip to content

Commit 4f3cfb1

Browse files
committed
Support yarn 4.5.0 and start migrating ipad example app to expo
1 parent 5189711 commit 4f3cfb1

File tree

48 files changed

+11269
-8697
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+11269
-8697
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ node_modules/
3636
npm-debug.log
3737
yarn-error.log
3838

39+
# yarn
40+
.yarn/*
41+
!.yarn/cache
42+
!.yarn/patches
43+
!.yarn/plugins
44+
!.yarn/releases
45+
!.yarn/sdks
46+
!.yarn/versions
47+
3948
# BUCK
4049
buck-out/
4150
\.buckd/

.yarn/releases/yarn-4.5.0.cjs

Lines changed: 925 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.5.0.cjs

apps/external-display-example/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ In the output, you'll find options to open the app in a
2121
- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
2222
- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
2323
- [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
2524

2625
You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
2726

apps/external-display-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"expo-system-ui": "~3.0.7",
1313
"react": "18.2.0",
1414
"react-native": "0.74.5",
15-
"react-native-external-display": "0.6.6",
15+
"react-native-external-display": "workspace:*",
1616
"react-native-gesture-handler": "^2.20.0",
1717
"react-native-webview": "^13.12.3"
1818
},
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
{
2-
"extends": "expo/tsconfig.base",
2+
"extends": "../../node_modules/expo/tsconfig.base",
33
"compilerOptions": {
44
"strict": true,
55
"paths": {
6-
"@/*": [
7-
"./*"
8-
]
6+
"@/*": ["./*"]
97
}
108
},
11-
"include": [
12-
"**/*.ts",
13-
"**/*.tsx",
14-
".expo/types/**/*.ts",
15-
"expo-env.d.ts"
16-
]
9+
"include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"]
1710
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
node_modules/
2+
.expo/
3+
dist/
4+
npm-debug.*
5+
*.jks
6+
*.p8
7+
*.p12
8+
*.key
9+
*.mobileprovision
10+
*.orig.*
11+
web-build/
12+
13+
ios/
14+
android/
15+
16+
# macOS
17+
.DS_Store
18+

apps/ipad-multiscenes-headless-example/.yarn/releases/yarn-4.5.0.cjs

Lines changed: 925 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# IPadMultiScenesHeadlessExample
2+
3+
## Usage
4+
5+
To use this example, you can use Split View feature by default, or use Stage Manager (iOS 16.0+).
6+
7+
To enable Stage Manager on iPad simulator:
8+
9+
- Option 1 - Setting: Choose Home Screen & Multitasking. Tap Stage Manager at the bottom of the Home Screen & Multitasking screen.
10+
- Option 2 - Command: `xcrun simctl spawn booted defaults write -g SBChamoisWindowingEnabled -bool true`
11+
12+
Please visit [Multiple Scenes support on iPad targets](../../docs/IOSMultipleScenesSupport.md) for more details.
13+
14+
## Expo
15+
16+
This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
17+
18+
## Get started
19+
20+
1. Install dependencies
21+
22+
```bash
23+
yarn install
24+
```
25+
26+
2. Run expo prebuild
27+
28+
```bash
29+
yarn expo prebuild --platform ios
30+
```
31+
32+
3. Run the iOS App. Ensure you have an iPad simulator open.
33+
34+
```bash
35+
yarn ios
36+
```
37+
38+
In the output, you'll find options to open the app in a
39+
40+
- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
41+
- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
42+
43+
You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
44+
45+
## Learn more
46+
47+
To learn more about developing your project with Expo, look at the following resources:
48+
49+
- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
50+
- [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.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"expo": {
3+
"name": "ipad-multiscenes-headless-example",
4+
"slug": "ipad-multiscenes-headless-example",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"scheme": "myapp",
8+
"userInterfaceStyle": "automatic",
9+
"splash": {
10+
"resizeMode": "contain",
11+
"backgroundColor": "#ffffff"
12+
},
13+
"ios": {
14+
"supportsTablet": true,
15+
"bundleIdentifier": "com.externaldisplay.ipad-example",
16+
"infoPlist": {
17+
"UIApplicationSceneManifest": {
18+
"UIApplicationSupportsMultipleScenes": true
19+
},
20+
"UIRequiresFullScreen": false
21+
}
22+
},
23+
"plugins": ["./withMultipleSceneSupport.js"]
24+
}
25+
}

0 commit comments

Comments
 (0)