Skip to content
Open
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
4 changes: 3 additions & 1 deletion .github/actions/setup-deps-rn-latest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ runs:

- name: Switch to React Native Latest
run: |
yarn add -D react-native@latest @react-native/babel-preset@latest
yarn add -D react-native@latest \
@react-native/babel-preset@latest \
@react-native/jest-preset@latest
shell: bash
19 changes: 18 additions & 1 deletion .github/actions/setup-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,22 @@ runs:
- name: Switch to React and React Native versions
if: inputs.react-version != '' && inputs.react-native-version != ''
run: |
yarn add -D react@${{ inputs.react-version }} @types/react@${{ inputs.react-version }} react-native@${{ inputs.react-native-version }} @react-native/babel-preset@${{ inputs.react-native-version }}
RN_VERSION='${{ inputs.react-native-version }}'
RN_MINOR="${RN_VERSION#0.}"
RN_MINOR="${RN_MINOR%%.*}"

deps=(
"react@${{ inputs.react-version }}"
"@types/react@${{ inputs.react-version }}"
"react-native@${RN_VERSION}"
"@react-native/babel-preset@${RN_VERSION}"
)

if (( RN_MINOR >= 85 )); then
deps+=("@react-native/jest-preset@${RN_VERSION}")
else
yarn remove @react-native/jest-preset
fi

yarn add -D "${deps[@]}"
shell: bash
104 changes: 68 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
- name: Typecheck
run: yarn typecheck

typecheck-rn-0-84-0:
typecheck-rn-0-85:
runs-on: ubuntu-latest
name: Typecheck RN 0.83.1
name: Typecheck RN 0.85.0
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -54,14 +54,30 @@ jobs:
uses: ./.github/actions/setup-deps
with:
react-version: 19.2.3
react-native-version: 0.84.0
react-native-version: 0.85.0

- name: Typecheck
run: yarn typecheck

typecheck-rn-0-83-2:
typecheck-rn-0-84:
runs-on: ubuntu-latest
name: Typecheck RN 0.83.2
name: Typecheck RN 0.84.1
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node.js and deps
uses: ./.github/actions/setup-deps
with:
react-version: 19.2.3
react-native-version: 0.84.1

- name: Typecheck
run: yarn typecheck

typecheck-rn-0-83:
runs-on: ubuntu-latest
name: Typecheck RN 0.83.4
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -70,12 +86,12 @@ jobs:
uses: ./.github/actions/setup-deps
with:
react-version: 19.2.0
react-native-version: 0.83.2
react-native-version: 0.83.4

- name: Typecheck
run: yarn typecheck

typecheck-rn-0-82-1:
typecheck-rn-0-82:
runs-on: ubuntu-latest
name: Typecheck RN 0.82.1
steps:
Expand All @@ -91,25 +107,25 @@ jobs:
- name: Typecheck
run: yarn typecheck

typecheck-rn-0-81-5:
typecheck-rn-0-81:
runs-on: ubuntu-latest
name: Typecheck RN 0.81.5
name: Typecheck RN 0.81.6
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node.js and deps
uses: ./.github/actions/setup-deps
with:
react-version: 19.1.0
react-native-version: 0.81.5
react-version: 19.1.4
react-native-version: 0.81.6

- name: Typecheck
run: yarn typecheck

typecheck-rn-0-80-2:
typecheck-rn-0-80:
runs-on: ubuntu-latest
name: Typecheck RN 0.80.2
name: Typecheck RN 0.80.3
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -118,14 +134,14 @@ jobs:
uses: ./.github/actions/setup-deps
with:
react-version: 19.1.0
react-native-version: 0.80.2
react-native-version: 0.80.3

- name: Typecheck
run: yarn typecheck

typecheck-rn-0-79-2:
typecheck-rn-0-79:
runs-on: ubuntu-latest
name: Typecheck RN 0.79.2
name: Typecheck RN 0.79.7
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -134,12 +150,12 @@ jobs:
uses: ./.github/actions/setup-deps
with:
react-version: 19.0.0
react-native-version: 0.79.2
react-native-version: 0.79.7

- name: Typecheck
run: yarn typecheck

typecheck-rn-0-78-3:
typecheck-rn-0-78:
runs-on: ubuntu-latest
name: Typecheck RN 0.78.3
steps:
Expand Down Expand Up @@ -225,9 +241,9 @@ jobs:
- name: Test
run: yarn test:codemods

test-rn-0-84-0:
test-rn-0-85:
runs-on: ubuntu-latest
name: Test RN 0.84.0
name: Test RN 0.85.0
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -236,14 +252,30 @@ jobs:
uses: ./.github/actions/setup-deps
with:
react-version: 19.2.3
react-native-version: 0.84.0
react-native-version: 0.85.0

- name: Test
run: yarn test:ci

test-rn-0-83-2:
test-rn-0-84:
runs-on: ubuntu-latest
name: Test RN 0.83.2
name: Test RN 0.84.1
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node.js and deps
uses: ./.github/actions/setup-deps
with:
react-version: 19.2.3
react-native-version: 0.84.1

- name: Test
run: yarn test:ci

test-rn-0-83:
runs-on: ubuntu-latest
name: Test RN 0.83.4
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -252,12 +284,12 @@ jobs:
uses: ./.github/actions/setup-deps
with:
react-version: 19.2.0
react-native-version: 0.83.2
react-native-version: 0.83.4

- name: Test
run: yarn test:ci

test-rn-0-82-1:
test-rn-0-82:
runs-on: ubuntu-latest
name: Test RN 0.82.1
steps:
Expand All @@ -273,25 +305,25 @@ jobs:
- name: Test
run: yarn test:ci

test-rn-0-81-5:
test-rn-0-81:
runs-on: ubuntu-latest
name: Test RN 0.81.5
name: Test RN 0.81.6
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node.js and deps
uses: ./.github/actions/setup-deps
with:
react-version: 19.1.0
react-native-version: 0.81.5
react-version: 19.1.4
react-native-version: 0.81.6

- name: Test
run: yarn test:ci

test-rn-0-80-2:
test-rn-0-80:
runs-on: ubuntu-latest
name: Test RN 0.80.2
name: Test RN 0.80.3
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -300,14 +332,14 @@ jobs:
uses: ./.github/actions/setup-deps
with:
react-version: 19.1.0
react-native-version: 0.80.2
react-native-version: 0.80.3

- name: Test
run: yarn test:ci

test-rn-0-79-2:
test-rn-0-79:
runs-on: ubuntu-latest
name: Test RN 0.79.2
name: Test RN 0.79.7
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -316,12 +348,12 @@ jobs:
uses: ./.github/actions/setup-deps
with:
react-version: 19.0.0
react-native-version: 0.79.2
react-native-version: 0.79.7

- name: Test
run: yarn test:ci

test-rn-0-78-3:
test-rn-0-78:
runs-on: ubuntu-latest
name: Test RN 0.78.3
steps:
Expand Down
6 changes: 6 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ The project uses `yarn` for dependency management and script execution.
- `src/index.ts`: Main entry point, re-exports `pure` and adds side effects (auto-cleanup).
- `examples/`: Example React Native applications using the library.
- `website/`: Documentation website.

## PR draft workflow:

- Maintain `PR.txt` at the repository root using the structure from `.github/pull_request_template.md`.
- Keep `PR.txt` aligned with the current branch diff relative to `origin/main`, including tests actually run and any known validation gaps.
- Do not commit `PR.txt`.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"@babel/preset-react": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"@callstack/eslint-config": "^15.0.0",
"@react-native/babel-preset": "0.84.0",
"@react-native/babel-preset": "0.85.0",
"@react-native/jest-preset": "0.85.0",
"@release-it/conventional-changelog": "^10.0.2",
"@relmify/jest-serializer-strip-ansi": "^1.0.2",
"@types/jest": "^30.0.0",
Expand All @@ -89,7 +90,7 @@
"jest": "^30.2.0",
"prettier": "^3.6.2",
"react": "19.2.3",
"react-native": "0.84.0",
"react-native": "0.85.0",
"react-native-gesture-handler": "^2.30.0",
"release-it": "^19.0.6",
"test-renderer": "0.14.0",
Expand Down
Loading
Loading