You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Scrollview doesn't currently allow the user to dictate where on the screen an element within a scrollview should display. It defaults to the middle of the screen
Describe the solution you'd like
A prop that can be passed to the step component that determines the scrollTo function params for the given step.
A simple solve could be allowing the user to pass in this offset value per-step.
Describe alternatives you've considered
Interacting with the scrollRef before calling handleNext so that it's scrolled into location without any library changes. This doesn't work as the scrollview is reset by the library.
The library doesn't manipulate the scrollview outside of finding nodes / steps, so the user could manually call scroll functions before handleNext.
Is your feature request related to a problem? Please describe.
Scrollview doesn't currently allow the user to dictate where on the screen an element within a scrollview should display. It defaults to the middle of the screen
Describe the solution you'd like
A prop that can be passed to the step component that determines the scrollTo function params for the given step.
See:
react-native-copilot/src/contexts/CopilotProvider.tsx
Lines 111 to 112 in 021f9c4
A simple solve could be allowing the user to pass in this offset value per-step.
Describe alternatives you've considered
handleNext
so that it's scrolled into location without any library changes. This doesn't work as the scrollview is reset by the library.handleNext
.Teachability, Documentation, Adoption, Migration Strategy
Happy to raise a PR with some documentation + implementation if it's of use.
The text was updated successfully, but these errors were encountered: