Reaktnatywny maszynopis
npx react-native init MyApp --template react-native-template-typescript
Friendly Finch
npx react-native init MyApp --template react-native-template-typescript
npx --ignore-existing react-native init MyApp --template react-native-template-typescript
yarn add --dev typescript @types/jest @types/react @types/react-native @types/react-test-renderer
# or for npm
npm install --save-dev typescript @types/jest @types/react @types/react-native @types/react-test-renderer
Default comand is not working
=====not working. ===) npx react-native init MyApp --template react-native-template-typescript
==============Use this command to install typescript==================
====) npx --ignore-existing react-native init MyApp --template react-native-template-typescript
module.exports = {
preset: 'react-native',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node']
};