1

How to use javascript insted of typescript? when ever i create react native app by using npx react-native init ,i get typescript insted of javascript. any idea guys?

i could not find anything online

0

2 Answers 2

2

Using JavaScript Instead of TypeScript

React Native defaults new applications to TypeScript, but JavaScript may still be used. Files with a .jsx extension are treated as JavaScript instead of TypeScript, and will not be typechecked. JavaScript modules may still be imported by TypeScript modules, along with the reverse.

Sign up to request clarification or add additional context in comments.

2 Comments

so there is no way to use --template
You don't need a template as it allows both. all you have to do is replace the .ts files with .js and delete the files for typescript like tsconfig.
0

Using expo and npx create-expo-appcommand let me to create a react native app with js. For more info click here

1 Comment

I don't want to use expo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.