@granite-js/react-native 0.1.23-next.12 → 0.1.23-next.13

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @granite-js/react-native
2
2
 
3
+ ## 0.1.23-next.13
4
+
5
+ ### Patch Changes
6
+
7
+ - fix
8
+ - Updated dependencies
9
+ - @granite-js/plugin-core@0.1.23-next.13
10
+ - @granite-js/style-utils@0.1.23-next.13
11
+ - @granite-js/lottie@0.1.23-next.13
12
+ - @granite-js/native@0.1.23-next.13
13
+ - @granite-js/image@0.1.23-next.13
14
+ - @granite-js/mpack@0.1.23-next.13
15
+ - @granite-js/jest@0.1.23-next.13
16
+ - @granite-js/cli@0.1.23-next.13
17
+
3
18
  ## 0.1.23-next.12
4
19
 
5
20
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granite-js/react-native",
3
- "version": "0.1.23-next.12",
3
+ "version": "0.1.23-next.13",
4
4
  "description": "The Granite Framework",
5
5
  "bin": {
6
6
  "granite": "./bin/cli.js"
@@ -86,7 +86,7 @@
86
86
  "@babel/core": "^7.24.9",
87
87
  "@babel/preset-env": "^7.24.8",
88
88
  "@babel/preset-typescript": "^7.24.7",
89
- "@granite-js/native": "0.1.23-next.12",
89
+ "@granite-js/native": "0.1.23-next.13",
90
90
  "@testing-library/dom": "^10.4.0",
91
91
  "@testing-library/react": "^16.1.0",
92
92
  "@types/babel__core": "^7",
@@ -105,20 +105,20 @@
105
105
  "vitest": "^2.1.8"
106
106
  },
107
107
  "peerDependencies": {
108
- "@granite-js/native": "0.1.23-next.12",
108
+ "@granite-js/native": "0.1.23-next.13",
109
109
  "@types/react": "*",
110
110
  "brick-module": "*",
111
111
  "react": "*",
112
112
  "react-native": "*"
113
113
  },
114
114
  "dependencies": {
115
- "@granite-js/cli": "0.1.23-next.12",
116
- "@granite-js/image": "0.1.23-next.12",
117
- "@granite-js/jest": "0.1.23-next.12",
118
- "@granite-js/lottie": "0.1.23-next.12",
119
- "@granite-js/mpack": "0.1.23-next.12",
120
- "@granite-js/plugin-core": "0.1.23-next.12",
121
- "@granite-js/style-utils": "0.1.23-next.12",
115
+ "@granite-js/cli": "0.1.23-next.13",
116
+ "@granite-js/image": "0.1.23-next.13",
117
+ "@granite-js/jest": "0.1.23-next.13",
118
+ "@granite-js/lottie": "0.1.23-next.13",
119
+ "@granite-js/mpack": "0.1.23-next.13",
120
+ "@granite-js/plugin-core": "0.1.23-next.13",
121
+ "@granite-js/style-utils": "0.1.23-next.13",
122
122
  "es-toolkit": "^1.39.8",
123
123
  "react-native-url-polyfill": "1.3.0"
124
124
  }
@@ -1,5 +1,5 @@
1
1
  import { type ComponentProps, PureComponent, RefObject, createRef } from 'react';
2
- import { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, ScrollView, findNodeHandle } from 'react-native';
2
+ import { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, ScrollView } from 'react-native';
3
3
  import IOContext, { IOContextValue } from './IOContext';
4
4
  import IOManager from './IOManager';
5
5
  import { Root, RootMargin } from './IntersectionObserver';
@@ -82,7 +82,9 @@ function withIO<
82
82
  }
83
83
 
84
84
  componentDidMount() {
85
- this.node = findNodeHandle(this.scroller.current);
85
+ // Use the host component ref directly for RN 0.81/React 19 compatibility.
86
+ // This avoids relying on numeric node handles and works with Fabric.
87
+ this.node = this.scroller.current;
86
88
  methods.forEach((method) => {
87
89
  (this as any)[method] = (...args: any) => {
88
90
  this.scroller.current?.[method]?.(...args);