Skip to content

Commit 916b649

Browse files
committed
chore: update template for React Native 0.84 and ReScript 12
- Refactored App component structure and styles. - Updated package dependencies including React, React Native, and ReScript. - Enhanced README with setup instructions and requirements. - Adjusted build scripts and CI configuration for Node.js 22.x. - Improved console output in initialization script. - Updated changelog for version 0.84.0.
1 parent 6524d08 commit 916b649

79 files changed

Lines changed: 2712 additions & 10600 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build.yml‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,17 @@ jobs:
99
strategy:
1010
matrix:
1111
node-version:
12-
- 14.x
13-
- 16.x
12+
- 22.x
1413

1514
steps:
16-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v4
1716
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v4
1918
with:
2019
node-version: ${{ matrix.node-version }}
21-
- name: Install
22-
run: |
23-
yarn install \
24-
--non-interactive \
25-
--frozen-lockfile
26-
- name: Test
27-
run: yarn test
20+
- name: Install root tooling
21+
run: npm install
22+
- name: Test template
23+
run: npm test
2824
env:
2925
CI: true

‎.gitignore‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
*.log
22

3-
# macOS crap
3+
# macOS
44
.DS_Store
55

66
# node
77
node_modules
88

9-
# npm unused lock file (we use yarn.lock)
10-
package-lock.json
9+
# locks — root uses npm; template lock is generated at init/CI
10+
yarn.lock
11+
template/package-lock.json
1112

13+
# ReScript build output
14+
*.res.js
15+
*.res.js.map
16+
lib/
17+
.bsb.lock

‎.npmignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
template/node_modules
2+
template/package-lock.json
3+
**/*.res.js
4+
**/*.res.js.map
5+
**/lib/
6+
.bsb.lock

‎CHANGELOG.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog of `@rescript-react-native/template`
22

3+
## 0.84.0 - 2026-09-15
4+
5+
Updated for
6+
7+
- react-native 0.84
8+
- rescript-react-native 0.84
9+
- rescript 12
10+
- @rescript/react 0.15
11+
- @react-native/new-app-screen + react-native-safe-area-context
12+
- Dropped `bs-platform` / BuckleScript maintainer tooling
13+
314
## 0.64.1 - 2021-05-03
415

516
Fix npm tarball size.

‎README.md‎

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,26 @@
33
[![Version](https://img.shields.io/npm/v/@rescript-react-native/template.svg)](https://www.npmjs.com/@rescript-react-native/template)
44
[![ReScript Forum](https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org)](https://forum.rescript-lang.org/)
55

6-
> React Native template for application developed with ReScript.
6+
> React Native template for applications developed with ReScript.
77
8-
Please carefully read instructions below in order to enjoy Rescript development
9-
experience.
8+
## Requirements
109

11-
## Setup
10+
- Node.js **≥ 22.11**
11+
- A working [React Native environment](https://reactnative.dev/docs/set-up-your-environment)
1212

13-
## Start a ReScript React Native project with this template
13+
## Start a project
1414

1515
```console
16-
npx @react-native-community/cli init MyApp --template @rescript-react-native/template
16+
npx @react-native-community/cli@latest init MyApp --template @rescript-react-native/template
1717
cd MyApp
1818
```
1919

20-
Now that you are ready to go, you can check our documentation on
21-
[how to use ReScript React Native](https://rescript-react-native.github.io/docs/).
20+
Then run the ReScript watcher alongside Metro:
21+
22+
```console
23+
npm run res:watch
24+
npm start
25+
```
26+
27+
See the [ReScript React Native docs](https://rescript-react-native.github.io/docs/)
28+
for how to build your app from here.

0 commit comments

Comments
 (0)