[HOLD for payment 2021-12-15] Profile - There's no gap between the growl and the edges of the app - Reported by: @parasharrajat
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Navigate to profile settings
- Make some changes and hit save
Expected Result:
There should be some spaces between the growl and the edges of the app
Actual Result:
There's no gap between the growl and the edges of the app
Workaround:
No need, visual issue.
Platform:
Where is this issue occurring?
- iOS
- Android
Version Number: 1.1.17-0
Reproducible in staging?: Yes Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1638203292033200
Triggered auto assignment to @pecanoro (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Triggered auto assignment to @adelekennedy (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Proposed Solution:
Here is the problem: At line 18 it is using StyleUtils.getSafeAreaPadding(insets) i.e. we are passing insets within it, so here insets.left and insets.right consist 0 value that results to no gap at left or right of growl.
https://github.com/Expensify/App/blob/b40d03e09a08b57af2adfeb2bbbb3f95e9c574f9/src/components/GrowlNotification/GrowlNotificationContainer/index.native.js#L15-L23
Here is Solution: At line 18 we have to pass left and right value, so it will create gap at left right of growl. It will solve problem for all places where growl used in native. (We can change left right value as per design requirement).
StyleUtils.getSafeAreaPadding({...insets, left: 20, right: 20}),
It works as expected after this changes:
https://user-images.githubusercontent.com/7823358/144028612-dd4419bc-93d7-4be6-b496-72d6d44d93cc.mov
Proposal
We only have to add marginHorizontal style property of growlNotificationBox: https://github.com/Expensify/App/blob/b40d03e09a08b57af2adfeb2bbbb3f95e9c574f9/src/styles/styles.js#L1966 ...spacing.mh5

Triggered auto assignment to @parasharrajat (Exported)
Triggered auto assignment to @deetergp (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Proposal
- Add marginHorizontal of 5px in growlNotificationWrapper to give some space between the growl and the edges of the app.
growlNotificationWrapper: {
zIndex: 2,
...spacing.mh5,
},
https://github.com/Expensify/App/blob/2d90756a2579a94ce3798b1cada48dd2c2ea492f/src/styles/styles.js#L1963-L1965
Just checked that this is a regression caused by https://github.com/Expensify/App/pull/6291. Let me check what should I do here.
Update: Thanks, everyone for proposing a fix.
As mentioned above the issue is a regression and the regression period is still active for that PR. Thus the author of #6291 should fix it. @kakajann Could you please fix it?
@adelekennedy We will not be needing the Upwork job for this. Thanks. cc: @deetergp .
Upwork job closed - un-assigning myself from the issue
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.18-3 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pull/6559
If no regressions arise, payment will be issued on 2021-12-15. :confetti_ball:
@adelekennedy I think forgot to mention earlier that I am eligible for a reporting bonus here or I waited for PR deployment.
@adelekennedy Bump.
@parasharrajat hired!