Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for javascript template when initialize latest React Native #2291

Open
flixyudh opened this issue Feb 9, 2024 · 1 comment
Open

Comments

@flixyudh
Copy link

flixyudh commented Feb 9, 2024

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
@ajitaro
Copy link

ajitaro commented Mar 1, 2024

good idea for bootstrapping our small project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants