cli
cli copied to clipboard
Support for javascript template when initialize latest React Native
Describe the Feature
React Native use typescript
by default starting from v0.71, but I'm not familiar with typescript
so I keep use javascript
instead. even tough typescript
not blocking me to use javascript
but I'm concern about typescript
related packages that already packed.
Last time, I've tried to remove any typescript
related packages base on Adding TypeScript to an Existing Project documentation but things get complicated to setup babel and jest that already use typescript.
I've tried to search how to initialize React Native with javascript but I'm not found it yet, also there's so many post about how to use javascript
instead of typescript
in React Native
So Is it possible to support javascript template while keeping typescript
as default when initialize React Native?
Possible Implementations
I think about add --use-js
or --javascript
argument when initialize React Native, something like this:
# init React Native with typescript
npx react-native@latest init MyApp
# init React Native with javascript
npx react-native@latest init MyApp --use-js # or --javascript
Related Issues
Several links that can be used for consideration to support javascript :
- I want to init my project using pure js template
- React Native Init Command Generating Typescript Project
- why react native project is creating in typescript ?
- Whenever I try to create New React Native APP using npx react-native init APP_NAME command it creates typescript instead of javascript project