cli icon indicating copy to clipboard operation
cli copied to clipboard

Support for javascript template when initialize latest React Native

Open flixyudh opened this issue 1 year ago • 3 comments

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 :

  1. I want to init my project using pure js template
  2. React Native Init Command Generating Typescript Project
  3. why react native project is creating in typescript ?
  4. Whenever I try to create New React Native APP using npx react-native init APP_NAME command it creates typescript instead of javascript project

flixyudh avatar Feb 09 '24 14:02 flixyudh