callstack / callstack/react-native-paper

Tooltip: onPress event object is not propagated to parent component on native

Aperta
#5,003 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
14.5k
Fork
2.2k
Merge medio
5g 23h
PR unite (30g)
12

Descrizione

### Current behaviour
onPress (and probably other pressable-related) event object is not propagated to parent component on native (Android/iOS).

This line is suspicious:
https://github.com/callstack/react-native-paper/blob/main/src/components/Tooltip/Tooltip.tsx#L156C18-L156C25

### Expected behaviour

Event object should be passed to parent callbacks.

### How to reproduce?

https://snack.expo.dev/@szado/rnp-tooltip-onpress-bug

### Your Environment

| software | version
| --------------------- | -------
| react-native-paper | 5.15.3
| expo sdk | 55

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.