Commit ff39900
authored
fix(FabricExample): Add insets handling to prevent rendering toast behind navigation bar (#3942)
## Description
Toasts were rendered behind the navigation bar on Android with the old
navigation system; this PR is adding insets handling over Toast
components.
## Changes
- added inset handling
## Before & after - visual documentation
| Before | After |
| --- | --- |
| <img width="673" height="1288" alt="Screenshot 2026-04-27 at 15 28 04"
src="https://github.com/user-attachments/assets/7f4c46da-52a8-4c14-a68c-b42c20f97f3e"
/> | <img width="674" height="1299" alt="Screenshot 2026-04-27 at 15 27
10"
src="https://github.com/user-attachments/assets/465ee6b1-3a3b-4839-be10-8139af5f360f"
/> |
## Test plan
Any test with toast on android 10.
## Checklist
- [ ] Included code example that can be used to test this change.
- [ ] For visual changes, included screenshots / GIFs / recordings
documenting the change.
- [ ] For API changes, updated relevant public types.
- [ ] Ensured that CI passes1 parent 04f4a98 commit ff39900
1 file changed
Lines changed: 37 additions & 15 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
66 | 94 | | |
67 | 95 | | |
68 | 96 | | |
| |||
80 | 108 | | |
81 | 109 | | |
82 | 110 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
97 | 120 | | |
98 | 121 | | |
99 | 122 | | |
| |||
104 | 127 | | |
105 | 128 | | |
106 | 129 | | |
107 | | - | |
108 | 130 | | |
109 | 131 | | |
110 | 132 | | |
| |||
0 commit comments