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

Anyway to override the virutal list in the scroll container? #17

Open
ElasticBottle opened this issue Jul 17, 2024 · 0 comments
Open

Anyway to override the virutal list in the scroll container? #17

ElasticBottle opened this issue Jul 17, 2024 · 0 comments

Comments

@ElasticBottle
Copy link

Am using this in conjunction with @gorhom/bottom-sheet but am running into an issue where I can't get it to scroll because the bottom sheet overrides the touch input.

As a result I need to do something like

 <Modal
      content={
        <BottomSheetScrollView>
          <View className="flex size-full flex-col items-center justify-start gap-2 pb-8 pt-5">
            <EmojiPicker
              emojis={emojis}
              loading={false}
              // eslint-disable-next-line jsx-a11y/no-autofocus
              autoFocus={false}
              darkMode={false}
              perLine={7} // # of emoji's per line
              onSelect={console.log}
              recent={recent}
              onChangeRecent={setRecent}
            />
          </View>
        </BottomSheetScrollView>
      }
    />

But wrapping the EmojiPicker in a BottomSheetScrollView results in a VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another VirtualizedList-backed container instead. error

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

No branches or pull requests

1 participant