-
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: IOU Request scan camera not displaying when permission first given #39854
Fix: IOU Request scan camera not displaying when permission first given #39854
Conversation
@DylanDylann 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] |
@@ -54,12 +54,10 @@ function useTabNavigatorFocus({tabIndex}: UseTabNavigatorFocusParams): boolean { | |||
if (!tabPositionAnimation) { | |||
return; | |||
} | |||
const index = Number(tabIndex); | |||
|
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.
These are just cleanup changes, since we don't need to do this cast here. Not related to the issue
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.
Not quite sure why I was tagged here, but I'm happy to review. The changes look good and seem to test well.
oh sorry @neil-marcellini, was meaning to tag @Julesssss, whopsii |
Reviewer Checklist
Screenshots/VideosAndroid: Nativemedia_20240410_120521_1340472138264406746.mp4media_20240410_141809_4181304766279209031.mp4Android: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@chrispader Does this PR still need a C+ review here? |
@DylanDylann, yep please go ahead |
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.
Changes look good, just awaiting review - @DylanDylann I'll generate builds for you
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
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.
The change looks good
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.
Tests well for me 👍
Hey @chrispader, is the tab-view changes something that we might be able to get merged upstream? |
@Julesssss Could you help to create an issue to handle the payment for C+ here? |
Sure, lets handle it here |
yes, definitely. Should we ask someone from Callstack though, since they are the maintainers of the library? My solution seems more like a hot-fix tbh. Maybe that's also not what they intended to do with the |
Thanks I'll see what they think. |
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.4.62-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.4.62-0 🚀
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.4.62-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.62-17 🚀
|
@neil-marcellini @deetergp @greg-schroeder
Details
This PR fixes a problem where the camera in
IOURequestStepScan
would not render, because the currentposition
value provided byreact-native-tab-view
never updates when changing the tab.This PR adds a patch for
react-native-tab-view
which forces a re-render when the tab/page changes.Fixed Issues
$ #38796
$ #39285
PROPOSAL:
Tests
Test 1:
Test 2:
Prerequisite: Reset permission of the app
Offline tests
None needed.
QA Steps
Same as in Tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen_Recording_20240408_210933_New.Expensify.Dev.mp4
Screen_Recording_20240408_213428_New.Expensify.Dev.mp4
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop