callstack / callstack/react-native-paper
[Android] Menu flashes when opening
- Vorherrschende Sprache
- TypeScript
- Sterne
- 14.5k
- Forks
- 2.2k
- Ø Merge
- 5 T. 23 Std.
- Gemergte PRs (30 T.)
- 12
Beschreibung
### Current behaviour
The menu component flashes when opening the menu via `visible=true`. I think this is actually not observable in production builds (with a Samsung S21) but rather in poor performance scenarios (dev, emulator)
### Expected behaviour
The menu doesnt flash
### How to reproduce?
show a menu
### Preview
the video only shows the menu flashing once; in the actual emulator it flashes every time when the menu opens
https://github.com/user-attachments/assets/37fa7177-a05e-4a21-bdac-718822acc5bd
### What have you tried so far?
[add](https://github.com/lovegaoshi/azusa-player-mobile/blob/2648f55f4cb6c6dd72433a871a63249cbed79d1e/patches/react-native-paper%2B5.14.5.patch#L9)
```
await new Promise(resolve => setTimeout(resolve, 1));
```
fixes this issue; unfortunately I learned enough from experience to know this works but cant tell why.
### Your Environment
| software | version
| --------------------- | -------
| ios | n/a
| android | 36
| react-native | 0.81.4
| react-native-paper | 5.14.5
| node | 22
| npm or yarn | yarn v4
| expo sdk | 54
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Öffnen des Menüs mit visible=true auf einem Android emulator unter Verwendung der gemeldeten React Native Paper 5.14.5-Umgebung zu reproduzieren, und untersuche anschließend patches/react-native-paper+5.14.5.patch, insbesondere die referenzierte Änderung. Bestätige die Ursache, statt dich auf die Verzögerung von 1 ms zu verlassen; die Arbeit ist abgeschlossen, wenn das Öffnen des Menüs im gemeldeten Szenario mit schlechter Performance nicht mehr kurz aufblitzt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, react-native, typescript
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100