React Native and IntelliJ
I have IntelliJ Ultimate edition and have followed the JetBrains doc to create the app. This doesn't seem to create anythink other than .idea and node_modules subdirs and a package.json file. So there is nothing that it actually creates. I was under the impression that it would do the same as the command ‘npx create-react-app <app_name>’ where it creates a full framework with app.js, android folder, ios folder, etc.
What is the best way to create a react-native hello world app so I can start using the product for learning react-native?
I tried running the npx command thinking it would add to the app dir, but it issued an error since the dir already existed. I was going to run that command inside the app dir but that would only create another level below the one that IntelliJ created. So at this point I am not sure how to move forward. Any help is very much appreciated.
请先登录再写评论。
At present, WebStorm uses an outdated command to create a React Native project. We discussed this in the context of the following issue: https://youtrack.jetbrains.com/issue/WEB-58913/Change-the-default-command-used-to-create-React-Native-project. Please vote for this issue to raise its priority and get notified of updates.
According to https://reactnative.dev/docs/environment-setup the recommended way to create a project is the following: npx react-native init AwesomeProject.
Thank you for the info.
This worked for me when creating the package (used it with boilerplate hello world app).
npx --package @react-native-community/cli react-native