Skip to content

Commit 84ffc00

Browse files
authored
Creating new app after react-native 0.60.6
1 parent 6800d2b commit 84ffc00

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

docs/CreateNewApp.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,15 @@
66

77
#### Create react native project
88
```sh
9-
npm install -g react-native-cli
10-
react-native init DesktopSampleApp --version [email protected]
9+
npx react-native init MyProject --version 0.60.6
1110
```
1211

13-
#### Add desktop rnpm plugin
12+
#### Add desktop support by invoking `react-native-desktop-qt-init` package
1413
```sh
15-
cd DesktopSampleApp
16-
yarn add git+https://github.com/status-im/rnpm-plugin-desktop-qt.git --dev
14+
cd MyProject
15+
npx https://github.com/vkjr/react-native-desktop-qt-init.git
1716
```
18-
RNPM plugin gives you access to a new command that generates desktop files for your project.
19-
20-
21-
#### Generate desktop files
22-
```sh
23-
react-native desktop-qt
24-
```
25-
This command will add `react-native-desktop-qt` package to your project and generate `desktop` folder with desktop project.
17+
This command will add `react-native-desktop-qt` package to your project and generate `desktop` folder with desktop project files.
2618

2719

2820
#### Run the project
@@ -31,12 +23,12 @@ If you're using macOS, run these commands in 2 different shells (from `DesktopSa
3123
npm start #starts bundler
3224
```
3325
```sh
34-
node node_modules/react-native/js-executor.js #starts js server
26+
node node_modules/react-native-desktop-qt/js-executor.js #starts js server
3527
```
3628

3729
Afterwards, in a 3rd shell execute:
3830
```sh
39-
react-native run-desktop
31+
npx react-native run-desktop
4032
```
4133
Compilation of desktop project will start. Then it will run:
4234

0 commit comments

Comments
 (0)