-
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
App - Unable to scroll the PDF attachment with 2 pages (pay on 22/6) #3247
Comments
Triggered auto assignment to @Gonals ( |
Changing to weekly and sending to the pool! |
Issue reproducible today during KI retests |
Triggered auto assignment to @bfitzexpensify ( |
ProposalWe use react-native-modal for our Modals. In this library, there's a known issue where using a ScrollView inside a swipeable Modal causes that Modal to ignore the scroll movement (react-native-modal/react-native-modal#236). Our PDF component (from react-native-pdf) is a ScrollView. So when we try to use it inside our Modal component we run into the issue mentioned above. The workarounds mentioned in that issue involve wrapping the content of our ScrollView inside a TouchableOpacity or a View with a custom lifecycle for the gesture responder. In our case, since the ScrollView is added by a library, this would require a patch to the library. I think a better solution would be to make our PDF Modals not swipeable. It's already the case that our PDF Modals can't be closed by swiping (since the swipe movements are captured by the PDF), so making it not swipeable would fix the bug without changing any other behavior. A good way to do this would be creating a new MODAL_TYPE in /src/styles/getModalStyles.js, for our PDF Modals. It would be the same as the current one, but without the swipeDirection. |
Triggered auto assignment to @iwiznia ( |
@rdjuric that proposal sounds good (assuming it actually works 😄 ) |
Issue reproducible today during KI retests |
Reopening so I remember to pay this out in seven days if there are no regressions. |
Done! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Expected Result:
User should be able to view the whole document.
Actual Result:
User is unable to scroll the PDF file.
Action Performed:
Workaround:
No workaround found.
Platform:
Where is this issue occurring?
Web
iOS
Android ✔️
Desktop App
Mobile Web
Version Number: 1.0.58-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Bug5093686_Screen_Recording_20210531-135522_Expensifycash.mp4
Expensify/Expensify Issue URL:
Upwork posting
The text was updated successfully, but these errors were encountered: