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

[Bug]: useAnimatedStyle has to return an object, found undefined instead. #1987

Closed
Damego opened this issue Oct 20, 2024 · 2 comments
Closed
Assignees
Labels
bug Something isn't working v5

Comments

@Damego
Copy link

Damego commented Oct 20, 2024

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

Android

What happened?

This commits brokes b72e275

There are no check if user didn't provided style prop to BottomSheetView component

image

Reproduction steps

Bare app

  1. Create a BottomSheetModal with BottomSheetView component inside without style prop
  2. Get error

Reproduction sample

no

Relevant log output

ERROR  Error: [Reanimated] `useAnimatedStyle` has to return an object, found undefined instead.

This error is located at:
    in BottomSheetViewComponent
    in RCTView (created by View)
    in View (created by AnimatedComponent(View))
    in AnimatedComponent(View)
    in Unknown (created by BottomSheetDraggableViewComponent)
    in Wrap (created by AnimatedComponent(Wrap))
    in AnimatedComponent(Wrap)
    in Unknown (created by GestureDetector)
    in GestureDetector (created by BottomSheetDraggableViewComponent)
    in BottomSheetDraggableViewComponent (created by BottomSheet)
    in RCTView (created by View)
    in View (created by AnimatedComponent(View))
    in AnimatedComponent(View)
    in Unknown (created by BottomSheet)
    in RCTView (created by View)
    in 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 StackNavigator)
    in EnsureSingleNavigator
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by StackNavigator)
    in RNGestureHandlerRootView (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackNavigator)
    in StackNavigator (created by App)
    in Provider (created by App)
    in QueryClientProvider (created by App)
    in App (created by RootApp)
    in ReactNativeProfiler (created by RootApp)
    in RCTView (created by View)
    in View (created by __Sentry.TouchEventBoundary)
    in __Sentry.TouchEventBoundary (created by RootApp)
    in RootApp (created by withDevTools(RootApp))
    in withDevTools(RootApp)
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent), js engine: hermes
@Damego Damego added the bug Something isn't working label Oct 20, 2024
Copy link

Hello @Damego 👋, this issue is being automatically closed and locked because it does not follow the issue template.

@github-actions github-actions bot added the invalid This doesn't seem right label Oct 20, 2024
@github-actions github-actions bot locked as spam and limited conversation to collaborators Oct 20, 2024
@gorhom gorhom self-assigned this Oct 20, 2024
@gorhom gorhom added v5 and removed invalid This doesn't seem right labels Oct 20, 2024
@gorhom gorhom reopened this Oct 20, 2024
@gorhom
Copy link
Owner

gorhom commented Oct 20, 2024

thanks @Damego for reporting this issue,, it should be fixed with v5.0.4

@gorhom gorhom closed this as completed Oct 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working v5
Projects
None yet
Development

No branches or pull requests

2 participants