Skip to content

Commit 979cf93

Browse files
committed
feat(template): switch template demo app to TypeScript
The current React Native template is TypeScript by default. release-npm
1 parent 110a8ac commit 979cf93

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

template/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ node_modules
33
package-lock.json
44
dist
55
app/**/*
6-
!app/App.js
6+
!app/App.tsx

template/create-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ execSync(`npx react-native init ${appName}`, {
1313
stdio: 'inherit',
1414
})
1515

16-
copyFileSync('app/App.js', `${appName}/App.js`)
16+
copyFileSync('app/App.tsx', `${appName}/App.tsx`)
1717

1818
rmSync('app', { recursive: true })
1919

0 commit comments

Comments
 (0)