Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,17 @@ jobs:
strategy:
matrix:
node-version:
- 14.x
- 16.x
- 22.x

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
yarn install \
--non-interactive \
--frozen-lockfile
- name: Test
run: yarn test
- name: Install root tooling
run: npm install
- name: Test template
run: npm test
env:
CI: true
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
*.log

# macOS crap
# macOS
.DS_Store

# node
node_modules

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

# ReScript build output
*.res.js
*.res.js.map
lib/
.bsb.lock
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
template/node_modules
template/package-lock.json
**/*.res.js
**/*.res.js.map
**/lib/
.bsb.lock
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog of `@rescript-react-native/template`

## 0.84.0 - 2026-09-15

Updated for

- react-native 0.84
- rescript-react-native 0.84
- rescript 12
- @rescript/react 0.15
- @react-native/new-app-screen + react-native-safe-area-context
- Dropped `bs-platform` / BuckleScript maintainer tooling

## 0.64.1 - 2021-05-03

Fix npm tarball size.
Expand Down
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@
[![Version](https://img.shields.io/npm/v/@rescript-react-native/template.svg)](https://www.npmjs.com/@rescript-react-native/template)
[![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/)

> React Native template for application developed with ReScript.
> React Native template for applications developed with ReScript.

Please carefully read instructions below in order to enjoy Rescript development
experience.
## Requirements

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

## Start a ReScript React Native project with this template
## Start a project

```console
npx @react-native-community/cli init MyApp --template @rescript-react-native/template
npx @react-native-community/cli@latest init MyApp --template @rescript-react-native/template
cd MyApp
```

Now that you are ready to go, you can check our documentation on
[how to use ReScript React Native](https://rescript-react-native.github.io/docs/).
Then run the ReScript watcher alongside Metro:

```console
npm run res:watch
npm start
```

See the [ReScript React Native docs](https://rescript-react-native.github.io/docs/)
for how to build your app from here.
Loading
Loading