@react-navigation/lynx 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -23,18 +23,22 @@ host app as well.
23
23
  `@lynx-js/react` has to be 0.126 or later, where `ref` reaches components as a
24
24
  prop the way it does in React 19; `NavigationContainer` depends on that.
25
25
 
26
- `react` has to resolve to a ReactLynx-compatible runtime, since
27
- `@react-navigation/core` imports hooks React Native provides:
26
+ `@react-navigation/core` is written against React, so `react` has to resolve to
27
+ ReactLynx's compat entry, which adds `use`, `useInsertionEffect` and
28
+ `startTransition`:
28
29
 
29
- ```js
30
- // lynx.config.js
30
+ ```ts
31
+ // rsbuild.config.ts
31
32
  resolve: {
32
33
  alias: {
33
- react$: require.resolve('@react-navigation/lynx/react-compat'),
34
+ react$: require.resolve('@lynx-js/react/compat'),
34
35
  },
35
36
  },
36
37
  ```
37
38
 
39
+ `use` works on the main thread from `@lynx-js/react` 0.126.1. On 0.126.0, alias
40
+ `react$` to `@react-navigation/lynx/react-compat` instead.
41
+
38
42
  `@react-navigation/core` also lists `react` as a peer dependency, which the
39
43
  alias above satisfies at build time but no package manager can see. pnpm's
40
44
  default `auto-install-peers` papers over that; with `strict-peer-dependencies`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-navigation/lynx",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Lynx integration for React Navigation",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -42,7 +42,7 @@
42
42
  "@types/react": ">=19.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@lynx-js/react": "^0.126.0",
45
+ "@lynx-js/react": "^0.126.1",
46
46
  "@lynx-js/testing-environment": "^0.3.4",
47
47
  "@lynx-js/types": "^4.2.1",
48
48
  "@types/react": "~19.2.17",