-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[CPStaging] Fix Use Device Settings on IOS and Android #33094
Conversation
🧪🧪 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.
Works well on iOS
RPReplay_Final1702586214.MP4
@Santhosh-Sellavel 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] |
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.
Worked fine for me in Android native
XRecorder_Edited_14122023_174740.mp4
@Santhosh-Sellavel bump on this deploy blocker, passes tests on all ADHOC builds |
I can do expedite review if needed |
@situchan sounds good! |
react-native.config.js
Outdated
expo: { | ||
userInterfaceStyle: 'automatic', | ||
ios: { | ||
userInterfaceStyle: 'automatic', | ||
}, | ||
android: { | ||
userInterfaceStyle: 'automatic', | ||
}, | ||
}, |
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.
Is this necessary? App is not using expo yet
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.
no you're right, I can remove and rebuild
d8034b7
@situchan removed, triggered a new build incase you have trouble testing on emulators as I did |
My device theme is light. After first app install, app theme is dark before login Screen.Recording.2023-12-15.at.3.25.59.AM.mov |
As app theme is based on user preference, I assume before-login is default theme (dark), not depending on device system theme? |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
@grgia should I test again in Android? |
I think we should make status bar and system navigation bar compatible with page in a separate issue. |
@aldo-expensify It will be same as your previous build as just removed expo code which is not releavant. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeXRecorder_15122023_074936.mp4Android: mWeb ChromeiOS: NativeScreen.Recording.2023-12-15.at.3.28.48.AM.moviOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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.
Please create separate issues for these:
#33094 (comment)
#33094 (comment)
@AndrewGable 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] |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CPStaging] Fix Use Device Settings on IOS and Android (cherry picked from commit f10f708)
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 1.4.13-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.13-8 🚀
|
Details
When we switched to the dark theme, we decided to hardcode the native UI to Dark for simplicity's sake. Now that we have both light and dark themes, I'm removing the hard-coded values. This fix is for both IOS and Android
Fixed Issues
$ #33090
$ #33101
Tests
Same as QA
NOTE: we used the adhoc builds on physical devices to properly test this. The emulators sometimes are incorrectly set up and will not reference the correct device theme
Offline tests
QA Steps
Verify that no errors appear in the JS console
Ensure that settings/preferences/theme is set to “Use Device Settings”
Go into device settings and Toggle your native device settings to light mode
Verify that theme in App is Light ✅
Go into device settings and Toggle your native device settings to dark mode
Verify that theme in App is Dark ✅
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting 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)StyleUtils.getBackgroundAndBorderStyle(theme.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.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
#33094 (review)
Android: mWeb Chrome
iOS: Native
#33094 (review)
iOS: mWeb Safari
Screen.Recording.2023-12-14.at.12.58.56.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2023-12-14.at.12.56.21.PM.mov
MacOS: Desktop