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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With