Home > Enterprise >  how to use JavaScript with react-native?
how to use JavaScript with react-native?

Time:01-14

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

CodePudding user response:

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.

CodePudding user response:

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

  • Related