I'm creating a scrollview in react native. This scrollview will have disctinct sections…
- User
I'm creating a scrollview in react native. This scrollview will have disctinct sections in the perpsective of the user, but they are all rendered in the scrollview. There is a concept of "focus", where the focused section of part of the scrollview is in full-color & the buttons and text inputs are all enabled. The unfocused sections are still visible right below, but they're inactive and in gray color. The user can *try* scrolling from the focused section to the one below, but after a certain scroll, they'd feel a force against it not allowing them to go to the uncofused section before completing the task in the focused section. Once they've completed the task in the focused section, we will automatically trigger in state management to scroll them to the next section, making the previosly unfocused section, focused. The user can actually feel free to scroll up to see their past tasks, but just cant scroll past the last focused section (feels a bounce in scroll)
- Assistant
- User
this seems like it might bounce too far back, like to the top of the last focused section. I think it'd rather have them go to the bottom of the last focused section. And also, if they keep scrolling down and have not let go of the screen, they should still be seeing the bottom unfocused section (in gray color), but once they let go they bounce back
- Assistant
Thank you for your feedback! Here's an updated version of the code that should address your concerns:
javascript