Menu briefly flashes at top-left corner before opening at correct position
Mantenedores costumam responder em até 11 dias
@BogiKay já está trabalhando nisso.
Desde 9/3/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Current behaviour
When using the Menu component from React Native Paper, a visual glitch occurs:
Whenever the menu is opened dynamically using coordinates (e.g., anchor={{ x, y }}), a semi-transparent duplicate of the menu briefly flashes at the top-left corner of the screen (position (0, 0)) before rendering at the correct anchor position.
This issue happens consistently when opening menus that are positioned using touch event coordinates or dynamic measurement values inside a list (FlatList).
Preview
https://github.com/user-attachments/assets/7b9f5b7a-fcfe-4947-b622-16afd988dd20
Expected behaviour
The Menu should appear only at the specified anchor position immediately upon opening.
There should be no flicker, flash, or duplicate menu rendered at (0, 0).
Actual behaviour
-
When tapping a menu trigger (IconButton), the menu opens correctly at the desired position.
-
However, just before that, a brief flash of the menu appears at the top-left corner of the screen.
-
The flicker looks like a low-opacity duplicate and disappears within a fraction of a second.
How to reproduce?
- Render a list of items (e.g., with FlatList).
- For each item, display a trigger button to open a Menu.
- Use dynamic touch coordinates or measurements to position the menu
const handleOpenMenu = (e) => { const { pageX, pageY } = e.nativeEvent; setMenuPos({ x: pageX, y: pageY }); setMenuVisible(true); } - Open the menu.
- Observe a quick flash at the top-left corner before the menu displays correctly.
Code Snippet
minimal reproduce example
`<Menu
visible={menuVisible}
onDismiss={() => setMenuVisible(false)}
anchor={{ x: menuPos.x, y: menuPos.y }}
<Menu.Item onPress={() => {}} title="Edit Item" />
<Menu.Item onPress={() => {}} title="Delete Item" />
- Linguagem predominante
- TypeScript
- Estrelas
- 14.5k
- Forks
- 2.3k
- Merge médio
- 13d 16h
- PRs com merge (30d)
- 5
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de callstack/react-native-paper
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
callstack/react-native-paper#5146 · 2 comentários ·
Mantenedores costumam responder em até 11 dias
-
Menu ignores the keyboard when it mounts while the keyboard is already openTalvez já em andamento @manchoudhary assumiu há 49 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
callstack/react-native-paper#5096 ·
Mantenedores costumam responder em até 11 dias
-
Tooltip: onPress event object is not propagated to parent component on nativeTalvez já em andamento @aliyilmaztech assumiu há 82 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
callstack/react-native-paper#5003 ·
Mantenedores costumam responder em até 11 dias
-
Snackbar stays mounted after `visible=false` under new architecture (iOS + Android)Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
callstack/react-native-paper#4951 ·
Mantenedores costumam responder em até 11 dias
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
callstack/react-native-paper#4881 ·
Mantenedores costumam responder em até 11 dias
Todas as issues de callstack/react-native-paper
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
remotion-dev/remotion#12905 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
supermomonga/paseo-plugin-zcode-provider#83 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
oxidecomputer/skepsis#102 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
voidzero-dev/void#677 ·
Mantenedores costumam responder em até 1 dia