Commit ea43137
committed
Keep the existing observer when there is no key window
RCTKeyWindow() can return nil (backgrounded app, scene transition). Dropping the
observer in that case would leave the module without one until another trigger
happens to re-attach it.1 parent b6e0caf commit ea43137
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | | - | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
0 commit comments