Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when i creating react native app most of my files are in kotlin instead of java

Whenever I create a react native app, most of my file are in kotlin e.g MainActivity.kt, please is there a way to make my default files to be in java?

like image 944
Cyril Ang-numbaala Avatar asked Oct 31 '25 06:10

Cyril Ang-numbaala


1 Answers

react native 0.73.x generates Kotlin template by default.

To install java template, follow, react native guideline to install react native 0.72.10 which was the last react native version with default java template.

Create a new project with this cmd.

npx [email protected] init AwesomeProject --version 0.72.10

you can also install template with --template argument, but the react native docs are not clear on that as how to generate java template with latest react native version.

https://reactnative.dev/docs/environment-setup

like image 65
Azhar Rasheed Avatar answered Nov 01 '25 21:11

Azhar Rasheed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!