Skip to content

[Bug]: How to use this library in storybook (web) #2497

@vitorcamachoo

Description

@vitorcamachoo

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

Web

What happened?

I am using @storybook/react-native-web-vite to be able to have a storybook for my native components. What happen is that this library does not work as expected. Here is the issues that I found:

  1. ScrollView and FlatList does not work
chunk-VVLC2ZJC.js?v=7613dac7:5613 TypeError: Cannot read properties of undefined (reading 'addEventListener')
    at @gorhom_bottom-sheet…v=7613dac7:11818:13
Image
  1. When using BottomSheetView, it works but you can't close the bottomsheet when clicking on the backdrop, and when closed, you cannot open again because the backdrop never leaves.

Reproduction sample

https://snack.expo.dev/@vcamacho/bottom-sheet---issue-reproduction-template

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions