@symbiote-native/react 3.0.4 → 3.1.0
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/build/host-config.js +2 -0
- package/build/render.js +3 -5
- package/package.json +6 -5
package/build/host-config.js
CHANGED
|
@@ -91,6 +91,8 @@ const reconciler = createReconciler({
|
|
|
91
91
|
noTimeout: -1,
|
|
92
92
|
scheduleTimeout: setTimeout,
|
|
93
93
|
cancelTimeout: clearTimeout,
|
|
94
|
+
supportsMicrotasks: true,
|
|
95
|
+
scheduleMicrotask: queueMicrotask,
|
|
94
96
|
getRootHostContext: () => ({ isInsideText: false }),
|
|
95
97
|
getChildHostContext(parentHostContext, type) {
|
|
96
98
|
const isInsideText = descriptorFor(type).isText;
|
package/build/render.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// the reconciler drive shared, which commits into nativeFabricUIManager.
|
|
4
4
|
import { createSurface, disposeRoot, setEventDispatcher, dlog, reportUncaughtError, } from '@symbiote-native/engine';
|
|
5
5
|
import reconciler, { flushExternalUpdate } from './host-config.js';
|
|
6
|
-
import {
|
|
6
|
+
import { ConcurrentRoot } from './reconciler-constants.js';
|
|
7
7
|
const noop = () => { };
|
|
8
8
|
function errorReporter(origin) {
|
|
9
9
|
return (error, info) => {
|
|
@@ -63,15 +63,13 @@ export function mount(rootTag, element) {
|
|
|
63
63
|
// first) starts clean. Otherwise the stale container double-drives the surface.
|
|
64
64
|
teardown(rootTag);
|
|
65
65
|
const surface = createSurface(rootTag);
|
|
66
|
-
const container = reconciler.createContainer(surface,
|
|
66
|
+
const container = reconciler.createContainer(surface, ConcurrentRoot, null, false, null, 'symbiote', onUncaughtError, onCaughtError, onRecoverableError,
|
|
67
67
|
// onDefaultTransitionIndicator - the ONE that is genuinely a no-op. RN's own renderer says
|
|
68
68
|
// so in as many words: "Native doesn't have a default indicator" (ReactFabric.js's
|
|
69
69
|
// nativeOnDefaultTransitionIndicator).
|
|
70
70
|
noop, null);
|
|
71
71
|
containers.set(rootTag, container);
|
|
72
|
-
// react-reconciler 0.33
|
|
73
|
-
// immediate render/commit; @types 0.32 still lists the older updateContainer /
|
|
74
|
-
// flushSync names, so these calls are type-suppressed until the types catch up.
|
|
72
|
+
// react-reconciler 0.33 renamed updateContainer/flushSync; @types 0.32 still has the old names.
|
|
75
73
|
// @ts-expect-error updateContainerSync exists at runtime in react-reconciler 0.33
|
|
76
74
|
reconciler.updateContainerSync(element, container, null, noop);
|
|
77
75
|
// @ts-expect-error flushSyncWork exists at runtime in react-reconciler 0.33
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/react",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "SymbioteNative's React adapter — a react-reconciler host config (mutation mode) driving real native iOS/Android views through stock React Native Fabric.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -57,20 +57,21 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"react-reconciler": "^0.33.0",
|
|
60
|
-
"@symbiote-native/components": "3.1.
|
|
60
|
+
"@symbiote-native/components": "3.1.3",
|
|
61
61
|
"@symbiote-native/css-parser": "0.5.2"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"react": ">=19.0.0",
|
|
65
65
|
"react-native": ">=0.86",
|
|
66
|
-
"@symbiote-native/engine": "^1.
|
|
66
|
+
"@symbiote-native/engine": "^1.4.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
+
"@types/node": "^26.0.0",
|
|
69
70
|
"@types/react": "^19.2.0",
|
|
70
71
|
"@types/react-reconciler": "^0.32.2",
|
|
71
72
|
"react": "19.2.3",
|
|
72
|
-
"@symbiote-native/engine": "1.
|
|
73
|
-
"@symbiote-native/test-utils": "0.4.
|
|
73
|
+
"@symbiote-native/engine": "1.4.0",
|
|
74
|
+
"@symbiote-native/test-utils": "0.4.5"
|
|
74
75
|
},
|
|
75
76
|
"scripts": {
|
|
76
77
|
"typecheck": "tsc --build",
|