Skip to content

Commit e0d6217

Browse files
committed
chore: add .nvmrc file specifying node version
1 parent a27364b commit e0d6217

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20

README-project.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,30 @@ Mobile App </h1>
77
## Requirements
88

99
- [React Native dev environment](https://reactnative.dev/docs/environment-setup)
10-
- [Node.js LTS release](https://nodejs.org/en/)
10+
- [Node.js](https://nodejs.org/en/) (version specified in `.nvmrc`)
1111
- [Git](https://git-scm.com/)
1212
- [Watchman](https://facebook.github.io/watchman/docs/install#buildinstall), required only for macOS or Linux users
1313
- [Pnpm](https://pnpm.io/installation)
1414
- [Cursor](https://www.cursor.com/) or [VS Code Editor](https://code.visualstudio.com/download) ⚠️ Make sure to install all recommended extension from `.vscode/extensions.json`
1515

16+
### Node.js Version Management
17+
18+
This project uses a `.nvmrc` file to specify the recommended Node.js version. We recommend using a Node.js version manager such as [fnm](https://github.com/Schniz/fnm) or [nvm](https://github.com/nvm-sh/nvm) to ensure you're using the correct version:
19+
20+
**With fnm:**
21+
```sh
22+
fnm install
23+
fnm use
24+
```
25+
26+
**With nvm:**
27+
```sh
28+
nvm install
29+
nvm use
30+
```
31+
32+
The version manager will automatically read the `.nvmrc` file and switch to the correct Node.js version.
33+
1634
## 👋 Quick start
1735

1836
Clone the repo to your machine and install deps :

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@
1212

1313
This repository is a fork of [Obytes Starter](https://github.com/obytes/react-native-template-obytes), which provides a solid foundation. We periodically sync with the original repo to stay up-to-date with their improvements, while making our own adjustments and optimizations to streamline our setup process.
1414

15+
## 📋 Node.js Version Management
16+
17+
This template specifies a recommended Node.js version in the `.nvmrc` file. We recommend using a Node.js version manager such as [fnm](https://github.com/Schniz/fnm) or [nvm](https://github.com/nvm-sh/nvm) to ensure you're using the correct version.
18+
19+
**With fnm:**
20+
```sh
21+
fnm install
22+
fnm use
23+
```
24+
25+
**With nvm:**
26+
```sh
27+
nvm install
28+
nvm use
29+
```
30+
31+
The version manager will automatically read the `.nvmrc` file and switch to the correct Node.js version for this project.
32+
1533
# Overview
1634

1735
As a team of experienced developers at Rootstrap, we have spent years building high-quality React Native applications. Our initial starter kit was designed for React Native CLI apps. However, with the strong recommendation to work with Expo since React Native 0.75, we recognized the need to adapt quickly and leverage the best tools available.

0 commit comments

Comments
 (0)