Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v4] bottom sheet modal with present method crashes application[v4] #1901

Closed
yashsisodiya opened this issue Jul 29, 2024 · 1 comment
Closed
Labels

Comments

@yashsisodiya
Copy link

ERROR Error: [Reanimated] Trying to convert a cyclic object to a shareable. This is not supported.
This error is located at:
in AnimatedComponent(View)
in Unknown (created by PanGestureHandler)
in PanGestureHandler (created by BottomSheetDraggableViewComponent)
in BottomSheetDraggableViewComponent (created by BottomSheet)
in RCTView (created by CssInterop.View)
in CssInterop.View (created by AnimatedComponent(View))
in AnimatedComponent(View)
in Unknown (created by BottomSheet)
in RCTView (created by CssInterop.View)
in CssInterop.View (created by AnimatedComponent(View))
in AnimatedComponent(View)
in Unknown (created by BottomSheet)
in RCTView (created by View)
in View (created by BottomSheetContainerComponent)
in BottomSheetContainerComponent (created by BottomSheet)
in BottomSheetGestureHandlersProvider (created by BottomSheet)
in BottomSheet (created by BottomSheet)
in PortalHostComponent (created by PortalProviderComponent)
in PortalProviderComponent (created by BottomSheetModalProviderWrapper)
in BottomSheetModalProviderWrapper (created by RootLayout)
in RNGestureHandlerRootView (created by GestureHandlerRootView)
in GestureHandlerRootView (created by RootLayout)
in RCTView (created by View)
in View (created by CssInterop.View)
in CssInterop.View (created by ThemeProvider)
in ThemeProvider (created by RootLayout)
in QueryClientProvider (created by RootLayout)
in PersistGate (created by RootLayout)
in Provider (created by RootLayout)
in RootLayout
in Unknown (created by Route())
in Suspense (created by Route())
in Route (created by Route())
in Route() (created by ContextNavigator)
in RNCSafeAreaProvider (created by SafeAreaProvider)
in SafeAreaProvider (created by wrapper)
in wrapper (created by ContextNavigator)
in EnsureSingleNavigator
in BaseNavigationContainer
in ThemeProvider
in NavigationContainerInner (created by ContextNavigator)
in ContextNavigator (created by ExpoRoot)
in ExpoRoot (created by App)
in App (created by ErrorOverlay)
in ErrorToastContainer (created by ErrorOverlay)
in ErrorOverlay (created by withDevTools(ErrorOverlay))
in withDevTools(ErrorOverlay)
in RCTView (created by CssInterop.View)
in CssInterop.View (created by AppContainer)
in RCTView (created by CssInterop.View)
in CssInterop.View (created by AppContainer)
in AppContainer
in main(RootComponent), js engine: hermes

Below I'm sharing nativeint configuration

/* eslint-env node */

const { getDefaultConfig } = require('expo/metro-config');
const { withNativeWind } = require('nativewind/metro');
const path = require('path');

// Get the default Expo Metro config
const defaultConfig = getDefaultConfig(__dirname);

// Extend the default resolver
const {
resolver: { sourceExts, assetExts },
} = defaultConfig;

// Create the Metro configuration with NativeWind
const config = withNativeWind(defaultConfig, { input: './styles/global.css' });

module.exports = {
...config,
resolver: {
// Keep the existing asset and source extensions
assetExts: assetExts,
sourceExts: [...sourceExts, 'jsx', 'js', 'ts', 'tsx'],

// Add aliases
extraNodeModules: {
  '@': path.resolve(__dirname, './'),
},

},
// Extend the watch folders
watchFolders: [path.resolve(__dirname, './')],
};

@yashsisodiya yashsisodiya added the bug Something isn't working label Jul 29, 2024
Copy link

@yashsisodiya: hello! 👋

This issue is being automatically closed because it does not follow the issue template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant