@granite-js/react-native 0.1.23-next.11 → 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 +30 -0
- package/dist/native-event-emitter/nativeEventEmitter.d.ts +1 -5
- package/dist/native-modules/core/GraniteCoreModule.d.ts +1 -1
- package/dist/native-modules/natives/GraniteModule.d.ts +1 -1
- package/package.json +10 -10
- package/src/intersection-observer/withIO.tsx +4 -2
- package/src/router/Router.tsx +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
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
|
+
|
|
18
|
+
## 0.1.23-next.12
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- fix
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @granite-js/plugin-core@0.1.23-next.12
|
|
25
|
+
- @granite-js/style-utils@0.1.23-next.12
|
|
26
|
+
- @granite-js/lottie@0.1.23-next.12
|
|
27
|
+
- @granite-js/native@0.1.23-next.12
|
|
28
|
+
- @granite-js/image@0.1.23-next.12
|
|
29
|
+
- @granite-js/mpack@0.1.23-next.12
|
|
30
|
+
- @granite-js/jest@0.1.23-next.12
|
|
31
|
+
- @granite-js/cli@0.1.23-next.12
|
|
32
|
+
|
|
3
33
|
## 0.1.23-next.11
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -11,9 +11,5 @@ type ParamOf<K extends EventKeys> = EventEmittersMap[K]['params'];
|
|
|
11
11
|
interface EventEmitter {
|
|
12
12
|
addListener<Event extends EventKeys>(event: Event, callback: (...params: ParamOf<Event>) => void): EmitterSubscription;
|
|
13
13
|
}
|
|
14
|
-
export declare const nativeEventEmitter: EventEmitter
|
|
15
|
-
addListener: () => {
|
|
16
|
-
remove: () => void;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
14
|
+
export declare const nativeEventEmitter: EventEmitter;
|
|
19
15
|
export {};
|
|
@@ -4,5 +4,5 @@ interface GraniteCoreModule extends TurboModule {
|
|
|
4
4
|
removeListeners: (count: number) => void;
|
|
5
5
|
importLazy: () => Promise<void>;
|
|
6
6
|
}
|
|
7
|
-
export declare const GraniteCoreModule: GraniteCoreModule
|
|
7
|
+
export declare const GraniteCoreModule: GraniteCoreModule;
|
|
8
8
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@granite-js/react-native",
|
|
3
|
-
"version": "0.1.23-next.
|
|
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.
|
|
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.
|
|
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.
|
|
116
|
-
"@granite-js/image": "0.1.23-next.
|
|
117
|
-
"@granite-js/jest": "0.1.23-next.
|
|
118
|
-
"@granite-js/lottie": "0.1.23-next.
|
|
119
|
-
"@granite-js/mpack": "0.1.23-next.
|
|
120
|
-
"@granite-js/plugin-core": "0.1.23-next.
|
|
121
|
-
"@granite-js/style-utils": "0.1.23-next.
|
|
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
|
|
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
|
-
|
|
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);
|
package/src/router/Router.tsx
CHANGED
|
@@ -23,7 +23,6 @@ import { BackButton } from './components/BackButton';
|
|
|
23
23
|
import { CanGoBackGuard } from './components/CanGoBackGuard';
|
|
24
24
|
import { StackNavigator } from './components/StackNavigator';
|
|
25
25
|
import { useInternalRouterBackHandler } from './components/useRouterBackHandler';
|
|
26
|
-
import { useInitialRouteName } from './hooks/useInitialRouteName';
|
|
27
26
|
import { useRouterControls, type RouterControlsConfig } from './hooks/useRouterControls';
|
|
28
27
|
import { RequireContext } from './types';
|
|
29
28
|
import { BASE_STACK_NAVIGATOR_STYLE } from './types/screen-option';
|
|
@@ -144,7 +143,6 @@ export function Router({
|
|
|
144
143
|
getInitialUrl,
|
|
145
144
|
...navigationContainerProps
|
|
146
145
|
}: InternalRouterProps & RouterProps): ReactElement {
|
|
147
|
-
const initialRouteName = useInitialRouteName({ prefix, initialScheme });
|
|
148
146
|
const { Screens, linkingOptions } = useRouterControls({
|
|
149
147
|
prefix,
|
|
150
148
|
context,
|
|
@@ -193,7 +191,7 @@ export function Router({
|
|
|
193
191
|
setIosSwipeGestureEnabled={setIosSwipeGestureEnabled}
|
|
194
192
|
>
|
|
195
193
|
<Container {...initialProps}>
|
|
196
|
-
<StackNavigator.Navigator
|
|
194
|
+
<StackNavigator.Navigator screenOptions={screenOptions} >
|
|
197
195
|
{Screens}
|
|
198
196
|
</StackNavigator.Navigator>
|
|
199
197
|
</Container>
|