make it compatible with expo/next

This commit is contained in:
Sasha 2025-10-08 00:48:59 +02:00
parent bfbe6379ba
commit 6fe475daaf
No known key found for this signature in database
4 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
"use client";
import type { CreateNodeOptions, IWaku, LightNode } from "@waku/interfaces";
import React from "react";
import * as React from "react";
import type { CreateNodeResult, ReactChildrenProps } from "./types.js";
import { useCreateLightNode } from "./useCreateWaku.js";

View File

@ -1,5 +1,5 @@
import type { IWaku } from "@waku/interfaces";
import type React from "react";
import type * as React from "react";
export type { CreateNodeOptions, AutoSharding } from "@waku/interfaces";
type HookState = {

View File

@ -1,6 +1,7 @@
"use client";
import type { CreateNodeOptions, IWaku, LightNode } from "@waku/interfaces";
import { createLightNode } from "@waku/sdk";
import React from "react";
import * as React from "react";
import type { CreateNodeResult } from "./types.js";

View File

@ -4,6 +4,7 @@
"outDir": "dist/",
"rootDir": "src",
"tsBuildInfoFile": "dist/.tsbuildinfo",
"declarationDir": "dist",
"jsx": "react"
},
"include": ["src", "*.js"],