[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! 🧪🧪 |
luacmartins
left a comment
There was a problem hiding this comment.
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] |
aldo-expensify
left a comment
There was a problem hiding this comment.
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! |
| expo: { | ||
| userInterfaceStyle: 'automatic', | ||
| ios: { | ||
| userInterfaceStyle: 'automatic', | ||
| }, | ||
| android: { | ||
| userInterfaceStyle: 'automatic', | ||
| }, | ||
| }, |
There was a problem hiding this comment.
Is this necessary? App is not using expo yet
There was a problem hiding this comment.
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 |
situchan
left a comment
There was a problem hiding this comment.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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