Skip to content

Commit 69c41c4

Browse files
Add expo dependencies
1 parent 1af8863 commit 69c41c4

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

bin/create-expo-app.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ program
1313
.action(create)
1414
.parse(process.argv);
1515

16-
const dependencies = ['@appandflow/touchable', 'react-navigation'];
16+
const dependencies = ['react-native-kondo'];
1717
const devDependencies = [
1818
'@types/expo',
1919
'@types/jest',
@@ -35,14 +35,20 @@ const devDependencies = [
3535
'ts-jest',
3636
'typescript',
3737
];
38+
const expoDependencies = [
39+
'react-navigation',
40+
'react-native-gesture-handler',
41+
'react-native-reanimated',
42+
'react-native-screens',
43+
];
3844
const pkgScripts = {
3945
lint: 'eslint . --ext .js,.jsx,.ts,.tsx',
4046
prettier: "prettier --write '**/*'",
4147
test: 'jest',
4248
tsc: 'tsc',
4349
};
4450

45-
async function create(appName) {
51+
const create = async appName => {
4652
try {
4753
await execa('expo', ['init', '--npm', '--template', 'blank', appName], {
4854
stdio: 'inherit',
@@ -58,6 +64,9 @@ async function create(appName) {
5864
await execa('npm', ['i', '-D', ...devDependencies], {
5965
cwd: targetDirectory,
6066
});
67+
await execa('expo', ['install', ...expoDependencies], {
68+
cwd: targetDirectory,
69+
});
6170
await fs.copy(
6271
path.resolve(__dirname, '../template'),
6372
path.resolve(targetDirectory),
@@ -79,4 +88,4 @@ async function create(appName) {
7988
console.error(e.stderr || e);
8089
process.exit(1);
8190
}
82-
}
91+
};

0 commit comments

Comments
 (0)