Skip to content

ScrollView for Web #1592

Open
Open

Description

@necolas

ScrollView for Web

TBD…but this needs a rewrite using function components and hooks.

Activity

  1. self-assigned this
    on Apr 16, 2020
  2. V1shvesh commented on Oct 9, 2020

    @V1shvesh

    Hey @necolas! Can I pick this issue up?

  3. jkoutavas commented on Jan 25, 2021

    @jkoutavas

    How's this effort going, and what does it mean when this gets done?

  4. V1shvesh commented on Mar 1, 2021

    @V1shvesh

    Hey @jkoutavas, I never picked this up since @necolas had self-assigned this issue. @necolas I would be happy to help if you're looking for contributions.

  5. chris-aeviator commented on Mar 12, 2021

    @chris-aeviator

    @V1shvesh I think you should just go and provide a merge-request for @necolas

  6. chris-aeviator commented on Mar 25, 2021

    @chris-aeviator

    @necolas could you point out which parts in your initial idea would be modified, I'll happily contribute if it looks doable to me.

  7. necolas commented on Mar 25, 2021

    @necolas
    OwnerAuthor

    The component need converting to a functional component and the scroll responder needs to be integrated in an entirely different way (see RN code). The functional component rewrite is currently in progress for RN and can act as a reference point once it lands in the OSS repo

  8. chris-aeviator commented on Mar 25, 2021

    @chris-aeviator

    @necolas thanks for the quick response - for understanding better the issue, why is e.g. the scrollview in the demo perfectly scrollable?

    grafik

  9. necolas commented on Mar 25, 2021

    @necolas
    OwnerAuthor

    Were you expecting it not to work!? This task is to change the implementation details of the component

  10. chris-aeviator commented on Mar 25, 2021

    @chris-aeviator

    Seems like a bit of a misunderstanding - I indeed have a non-scrolling ScrollView in an react-native (expo) app when compiling to web 😀

  11. added this to the 0.18 milestone on Mar 29, 2021
  12. nandorojo commented on Aug 26, 2021

    @nandorojo
    Contributor

    @chris-aeviator this is likely due to not having a View wrapping your ScrollView with a fixed height.

    If you have issues scrolling, pass style={{ flex: 1 }} or style={StyleSheet.absoluteFill} to a View that wraps your ScrollView.

  13. camello222 commented on Mar 29, 2022

    @camello222

    Is it expected that ScrollView's listeners (onMomentumScrollEnd, onScrollEndDrag) don't work for Web?
    They just happen during the initial render, or if the content size changes, but they don't seem to listen to actual user drag or scroll events.

  14. added
    project:react-native-web
    on Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: highproject:react-native-web

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions