Skip to content

Commit 569c33e

Browse files
committed
feat: add expo SDK 52 template
1 parent a9597dc commit 569c33e

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

bin/const.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export const EXPO_48_BRANCH = 'release/48';
22
export const EXPO_49_BRANCH = 'release/49';
33
export const EXPO_50_BRANCH = 'release/50';
44
export const EXPO_51_BRANCH = 'release/51';
5+
export const EXPO_52_BRANCH = 'release/52';
56
export const LATEST = 'main';

bin/root.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import {
3030
EXPO_48_BRANCH,
3131
EXPO_49_BRANCH,
3232
EXPO_50_BRANCH,
33+
EXPO_51_BRANCH,
34+
EXPO_52_BRANCH,
3335
LATEST,
3436
} from './const.js';
3537

@@ -46,6 +48,7 @@ export enum TYPE_OF_APP {
4648
EXPO_49 = 2,
4749
EXPO_50 = 3,
4850
EXPO_51 = 4,
51+
EXPO_52 = 5,
4952
}
5053

5154
export enum TYPE_OF_RN_NAVIGATION {
@@ -112,6 +115,7 @@ program
112115

113116
list
114117
.option(' Latest ', 0)
118+
.option(' Expo SDK 52 ', TYPE_OF_APP.EXPO_52)
115119
.option(' Expo SDK 51 ', TYPE_OF_APP.EXPO_51)
116120
.option(' Expo SDK 50 ', TYPE_OF_APP.EXPO_50)
117121
.option(' Expo SDK 49 ', TYPE_OF_APP.EXPO_49)
@@ -150,6 +154,14 @@ program
150154
case TYPE_OF_APP.EXPO_50:
151155
template = `-b ${EXPO_50_BRANCH} https://github.com/hyochan/expo-router-starter.git`;
152156

157+
break;
158+
case TYPE_OF_APP.EXPO_51:
159+
template = `-b ${EXPO_51_BRANCH} https://github.com/hyochan/expo-router-starter.git`;
160+
161+
break;
162+
case TYPE_OF_APP.EXPO_52:
163+
template = `-b ${EXPO_52_BRANCH} https://github.com/hyochan/expo-router-starter.git`;
164+
153165
break;
154166
default:
155167
template = `-b ${LATEST} https://github.com/hyochan/expo-router-starter.git`;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)