@lynxship/expo 0.1.1 → 0.1.2

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type ComponentType } from "react";
1
+ import { type ComponentType, type ReactNode } from "react";
2
2
  import type { ViewProps } from "react-native";
3
3
  import { type LynxShipExpoConfig } from "./config.js";
4
4
  export type { LynxShipExpoConfig } from "./config.js";
@@ -15,7 +15,7 @@ export interface LynxViewProps extends ViewProps {
15
15
  * A LynxView that can be placed anywhere in an Expo/React Native view tree.
16
16
  * Native OTA configuration is supplied by the LynxShip config plugin.
17
17
  */
18
- export declare function LynxView(props: LynxViewProps): unknown;
18
+ export declare function LynxView(props: LynxViewProps): ReactNode;
19
19
  export declare const LynxShipView: ComponentType<LynxViewProps>;
20
20
  export declare function defineLynxShipExpoConfig(config: LynxShipExpoConfig): LynxShipExpoConfig;
21
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAID;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAOtD;AAED,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,aAAa,CAAY,CAAC;AAEnE,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CAEpB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAID;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,CAOxD;AAED,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,aAAa,CAAY,CAAC;AAEnE,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CAEpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynxship/expo",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Expo native LynxView with LynxShip OTA delivery and cache support.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,11 +1,12 @@
1
1
  declare module "react" {
2
+ export type ReactNode = unknown;
2
3
  export type ComponentType<Props = Record<string, unknown>> = (
3
4
  props: Props,
4
- ) => unknown;
5
+ ) => ReactNode;
5
6
  export function createElement(
6
7
  type: unknown,
7
8
  props: Record<string, unknown> | null,
8
- ): unknown;
9
+ ): ReactNode;
9
10
  }
10
11
 
11
12
  declare module "react-native" {
@@ -19,5 +20,5 @@ declare module "react-native" {
19
20
  declare module "expo-modules-core" {
20
21
  export function requireNativeViewManager<Props = Record<string, unknown>>(
21
22
  moduleName: string,
22
- ): (props: Props) => unknown;
23
+ ): (props: Props) => import("react").ReactNode;
23
24
  }
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { createElement, type ComponentType } from "react";
1
+ import { createElement, type ComponentType, type ReactNode } from "react";
2
2
  import { requireNativeViewManager } from "expo-modules-core";
3
3
  import type { ViewProps } from "react-native";
4
4
  import {
@@ -25,7 +25,7 @@ const NativeLynxView = requireNativeViewManager<LynxViewProps>("LynxShip");
25
25
  * A LynxView that can be placed anywhere in an Expo/React Native view tree.
26
26
  * Native OTA configuration is supplied by the LynxShip config plugin.
27
27
  */
28
- export function LynxView(props: LynxViewProps): unknown {
28
+ export function LynxView(props: LynxViewProps): ReactNode {
29
29
  return createElement(NativeLynxView, {
30
30
  bundle: props.bundle ?? "main.lynx.bundle",
31
31
  initialData: props.initialData ?? "",