Hello
@sravankumar101 thanks, but it doesn't cover the direct gluestack integration. I recreated all steps from the guide that you've send and it's working fine, but once I add any gluestack component, I'm getting the following errors:
Those error comes even with very minimal input from gluestack library. For example, this is my GluestackUIProvider implementation that is causing the error:
"use client";
import React, { useEffect } from "react";
import { config } from "./config";
import { ToastProvider } from "@gluestack-ui/toast";
export function GluestackUIProvider({
mode = "light",
...props
}: {
mode?: "light" | "dark";
children?: React.ReactNode;
}) {
return <ToastProvider>{props.children}</ToastProvider>;
}
Using this decorator in storybook results in error. The error is gone once I remove ToastProvider. The same error happens whenever importing config and using it to flush styles. And the error is gone once I stop using
vars
function from nativewind. I want to add, that when using gluestack v2 in expo app, it's working just fine. The problem is only with storybook. May I ask you for assistance here?