-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix: Scroll to Picker TextInput on open #13514
Fix: Scroll to Picker TextInput on open #13514
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@PauloGasparSv Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Hey @chrispader :D Could you update the "Fixed Issue" section to be a dollar sign followed by the issue URL, like in this other P.R.? I think the C+ member would have been added here if the issue was linked in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I have just a few minor requests.
I've placed a HOLD on this until the PR is merged in our fork.
99aba25
to
cc6d9a0
Compare
9b4f7a1
to
a00bd13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good! Thanks for adding it in that other spot.
OK, I have removed the HOLD on this issue, so it looks like the steps here are to:
|
@tgolen Added screenshots for iOS (iPhone 14 Pro and iPhone 8) and checked the remaining points in the checklist. I hope the last checkbox
is no trick question. |
Thanks, for the changes. Please check all the checkboxes in the checklist.
No tricks here. It just asks you to check off all items on the list. There is nothing to review here. It is just a lib upgrade PR. @tgolen Do you want me to run the tests for the related issue? |
Looks like we still need to circle back and address requested changes plus check all the checkboxes? |
Co-authored-by: Tim Golen <tgolen@gmail.com>
544ce05
to
de1c7e1
Compare
@parasharrajat this PR should be ready now! |
Reviewer Checklist
Screenshots/Videos |
It looks like @tgolen you are going to do the final review and merge based on the comment above. Do you need something from me on this? |
Ah yes, I just finished up testing and final review, so I don't need anything else from you @parasharrajat 👍 |
All PR reviewer checklist items have been completed. Maybe there is a version mismatch on the checklist? Not sure. It's OK to merge with that one failing test though. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by @chiragsalian in version: 1.2.45-0 🚀
|
@@ -249,7 +250,7 @@ class Form extends React.Component { | |||
render() { | |||
return ( | |||
<> | |||
<ScrollView | |||
<ScrollViewWithContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change caused this issue: #13909
Seems to be related to the ref
Details
Implement a custom HOC that allows to automatically scroll
ScrollView
toreact-native-picker-select
's TextInput.Adds a
<ScrollViewWithPickers />
component which should be used instead of vanillaScrollView
. This adds a ref and passes it down to thePicker
component viaScrollViewWithPickersContext
.<Picker />
component is adjusted, so thatscrollViewRef
is passed toRNPickerSelect
, if it's provided.Relevant changes in
react-native-picker-select
library are implemented hereFixed Issues
$ #11391
Proposal
Tests
contentOffsets
Offline tests
None
QA Steps
Same as tests above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Not needed, as this is (native) iOS specific
Mobile Web - Chrome
Not needed, as this is (native) iOS specific
Mobile Web - Safari
Not needed, as this is (native) iOS specific
Desktop
Not needed, as this is (native) iOS specific
iOS
iPhone 14 Pro:
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2022-12-20.at.20.16.29.mp4
iPhone 8:
Simulator.Screen.Recording.-.iPhone.8.-.2022-12-20.at.20.26.06.mp4
Android
Not needed, as this is (native) iOS specific