Skip to content

Commit 704d03e

Browse files
committed
fix(cli): improve startup command
1 parent 7bde2a3 commit 704d03e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Follow instructions for your given `development OS` and `target OS`.
3131
To create a new project using the boilerplate simply run :
3232

3333
```
34-
npx react-native init MyApp --template @thecodingmachine/react-native-boilerplate
34+
npx react-native@latest init MyApp --template @thecodingmachine/react-native-boilerplate
3535
```
3636

3737
Assuming you have all the requirements installed, you can run the project by running:

documentation/src/components/Quickstart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function Quickstart() {
2121
<code className="flex items-center border-0 min-h-[65px] w-[110%] p-2 bg-neutral-100 dark:bg-neutral-900 rounded-md">
2222
<span className="text-black dark:text-white">
2323
<span className="text-red-400">npx </span>
24-
<span className="text-blue-400">react-native init </span>
24+
<span className="text-blue-400">react-native@latest init </span>
2525
MyApp
2626
<span className="text-neutral-500 text-sm"> --template @thecodingmachine/react-native-boilerplate</span>
2727
</span>
@@ -31,7 +31,7 @@ export default function Quickstart() {
3131
type="button"
3232
className="transition-all ease-in mt-5 hover:bg-green-700 hover:text-white hover:text text-md text-white
3333
font-bold py-3 px-4 rounded bg-green-500 shadow-lg shadow-green-500/50"
34-
onClick={() => { navigator.clipboard.writeText('npx react-native init MyApp --template @thecodingmachine/react-native-boilerplate'); }}
34+
onClick={() => { navigator.clipboard.writeText('npx react-native@latest init MyApp --template @thecodingmachine/react-native-boilerplate'); }}
3535
>
3636
Copy and test it
3737
<span className="ml-3">🧪</span>

0 commit comments

Comments
 (0)