@symbiote-native/react 3.4.0 → 3.4.1

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.
@@ -1,5 +1,6 @@
1
1
  import type { ComponentType } from 'react';
2
2
  import { type IBootstrapHostOptions } from '@symbiote-native/components/bootstrap';
3
+ import './register';
3
4
  export type { IBootstrapHostOptions } from '@symbiote-native/components/bootstrap';
4
5
  export type IRegisterAppOptions = IBootstrapHostOptions & {
5
6
  appName: string;
@@ -1,11 +1,12 @@
1
- // Zero-config app entry: wires the four RN-backed host seams (via @symbiote-native/components's
2
- // bootstrapHost) plus this adapter's own AppRegistry host-registrar bridge, then registers the
3
- // root component in one call. Lives OUTSIDE the package's main barrel (package.json's
4
- // "./bootstrap" export) because it imports react-native directly, which Vitest's Flow-unaware
5
- // transform can't parse (see @symbiote-native/components/bootstrap for the full reason).
1
+ // Zero-config app entry: `bootstrapHost` wires the RN-backed host seams, then the root registers
2
+ // Lives outside the barrel (the "./bootstrap" export) since it imports react-native, which Vitest
3
+ // cannot parse (see @symbiote-native/components/bootstrap)
6
4
  import { AppRegistry as RNAppRegistry } from 'react-native';
7
5
  import { bootstrapHost, } from '@symbiote-native/components/bootstrap';
8
6
  import { AppRegistry, setHostRegistrar } from './modules/app-registry/index.js';
7
+ // Голый import: приложение на intrinsic-тегах не трогает barrel, а без поведений
8
+ // ScrollView на Android монтируется без content view
9
+ import './register.js';
9
10
  // Mirrors bare RN's own `AppRegistry.registerComponent(appName, () => App)` idiom, minus the
10
11
  // manual host wiring in front of it.
11
12
  export function registerApp(App, options) {
package/build/index.d.ts CHANGED
@@ -58,7 +58,7 @@ export { setNativeViewConfigSource, setColorProcessor, } from '@symbiote-native/
58
58
  export { dlog, isDebug } from '@symbiote-native/engine';
59
59
  export type { INativeViewConfig, INativeViewConfigSource, } from '@symbiote-native/engine';
60
60
  export type { IPlatformStatic, IPlatformOSType, IPlatformConstantsIOS, IPlatformConstantsAndroid, IPlatformSelectSpec, } from '@symbiote-native/engine';
61
- export { Alert, Share, ActionSheetIOS, Linking, Vibration, ToastAndroid, Settings, I18nManager, Dimensions, Appearance, AppState, Keyboard, KEYBOARD_EVENT, TextInputState, BackHandler, PermissionsAndroid, PERMISSIONS, RESULTS, LayoutAnimation, PixelRatio, } from '@symbiote-native/engine';
61
+ export { Alert, Share, ActionSheetIOS, Linking, Vibration, ToastAndroid, Settings, I18nManager, Dimensions, Appearance, matchMedia, MediaQueryList, MediaQueryListEvent, setVariable, getComputedVariable, registerProperty, AppState, Keyboard, KEYBOARD_EVENT, TextInputState, BackHandler, PermissionsAndroid, PERMISSIONS, RESULTS, LayoutAnimation, PixelRatio, } from '@symbiote-native/engine';
62
62
  export type { IAlertType, IAlertButtonStyle, IAlertButton, IAlertButtons, IAlertOptions, IShareContent, IShareOptions, IShareAction, IActionSheetIOSOptions, IShareActionSheetIOSOptions, IShareActionSheetError, IUrlEvent, II18nManagerConstants, IDisplayMetrics, IDisplayMetricsAndroid, IDimensionsPayload, IDimensionsSet, IDimensionsKey, IDimensionsChangeListener, IDimensionsStatic, IColorSchemeName, IColorSchemePreference, IAppStateStatus, IAppStateEvent, IKeyboardEventName, IKeyboardEvent, IKeyboardMetrics, IBackPressEventName, IBackPressHandler, IPermission, IPermissionStatus, IRationale, ILayoutAnimationType, ILayoutAnimationProperty, ILayoutAnimationConfig, ILayoutAnimationAnim, IPixelRatioStatic, } from '@symbiote-native/engine';
63
63
  export { useWindowDimensions } from './hooks/use-window-dimensions';
64
64
  export { useColorScheme } from './hooks/use-color-scheme';
package/build/index.js CHANGED
@@ -55,7 +55,7 @@ export { dlog, isDebug } from '@symbiote-native/engine';
55
55
  // Imperative runtime modules: the SAME module every adapter shares, re-exported straight from
56
56
  // @symbiote-native/engine so app code names only @symbiote-native/react (RN's single import
57
57
  // root). Thin JS over getNativeModule + device events, no Fabric component of their own.
58
- export { Alert, Share, ActionSheetIOS, Linking, Vibration, ToastAndroid, Settings, I18nManager, Dimensions, Appearance, AppState, Keyboard, KEYBOARD_EVENT, TextInputState, BackHandler, PermissionsAndroid, PERMISSIONS, RESULTS, LayoutAnimation, PixelRatio, } from '@symbiote-native/engine';
58
+ export { Alert, Share, ActionSheetIOS, Linking, Vibration, ToastAndroid, Settings, I18nManager, Dimensions, Appearance, matchMedia, MediaQueryList, MediaQueryListEvent, setVariable, getComputedVariable, registerProperty, AppState, Keyboard, KEYBOARD_EVENT, TextInputState, BackHandler, PermissionsAndroid, PERMISSIONS, RESULTS, LayoutAnimation, PixelRatio, } from '@symbiote-native/engine';
59
59
  // React lifecycle over those core device-state modules.
60
60
  export { useWindowDimensions } from './hooks/use-window-dimensions.js';
61
61
  export { useColorScheme } from './hooks/use-color-scheme.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbiote-native/react",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
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": {
@@ -63,15 +63,15 @@
63
63
  "peerDependencies": {
64
64
  "react": ">=19.0.0",
65
65
  "react-native": ">=0.86",
66
- "@symbiote-native/engine": "^1.7.0"
66
+ "@symbiote-native/engine": "^1.8.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/node": "^26.0.0",
70
70
  "@types/react": "^19.2.0",
71
71
  "@types/react-reconciler": "^0.32.2",
72
72
  "react": "19.2.3",
73
- "@symbiote-native/engine": "1.7.0",
74
- "@symbiote-native/test-utils": "0.5.0"
73
+ "@symbiote-native/engine": "1.8.0",
74
+ "@symbiote-native/test-utils": "0.5.1"
75
75
  },
76
76
  "scripts": {
77
77
  "typecheck": "tsc --build",