App: [HOLD] Update App.setSidebarLoaded in SidebarLinks.js to avoid rendering bug
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
cc: @kadiealexander cc: @thecodingeek as you suggested this here
Put onLayout={App.setSidebarLoaded} in the parent <View> in SidebarLinks.js so that even if recentReports is an empty array, we’ll still hide the Splash Screen.
Note: Because it’s unclear whether or not the above modifications will actually resolve this issue the base pay for this change will be $250. If, in fact, this does resolve the persistent splash screen bug, you will be compensated for the full amount listed for https://github.com/Expensify/App/issues/5620.
Action Performed:
Related to https://github.com/Expensify/App/issues/5620
- Force close the app or update the app
- Open the app
Expected Result:
User should not be stuck on Splash screen
Actual Result:
User is stuck in splash screen
Workaround:
Closing and reopening app fixes the issue.
Platform:
Where is this issue occurring?
- iOS
Version Number:
Reproducible in staging?: Yes
Reproducible in production?: Unknown
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL: N/A Issue reported by: N/A Slack conversation: N/A Related GH Issue: https://github.com/Expensify/App/issues/5620 Upwork Link: TBD
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (14 by maintainers)
@kadiealexander, yep, sorry about the lack of updates here. The lib owner has put forward a proposal that looks like it should resolve this error, in which case we probably won’t need this issue. Still finalizing details there though, but I’ll keep this issue updated going forward.
This is a good point @sidferreira, we’d be patching it more than providing a true fix.
It looks like the lib owner has been commenting in the main issue with a potential fix (or at least more insight into a potential cause).
Let’s hold off on further discussion here, if the current chats in https://github.com/Expensify/App/issues/5620 don’t lead to anything we can pick back up on this?
@Beamanator the point is: why it comes
[]? It should use the existing/cached content, like if it was offline. There’s something else that causes the issue. Also, someOnyxmigrations can callhideSplashas well, are they working?!The pull to refresh is a way to try to force
recentReportsto have results if we move theApp.setSidebarLoadedto the view, but still, won’t show us whyrecentReportswas empty at first.@Beamanator, for context, this is a potential fix pitched by @thecodingeek for https://github.com/Expensify/App/issues/5620. We are trialling a few fixes here, and offering the full price for that issue to the user whose fix works.
@thecodingeek’s proposal: