Commit acc810b
committed
fix(example): use onLongPress in TextPropsDemo
Text `selectable` is unreliable on Android inside a ScrollView
(react-native#29232) — the ScrollView cancels the long-press at the
slightest movement. The example screen wraps every demo in a ScrollView,
so the original `selectable` cell could never trigger a copy menu.
Switch to `onLongPress` which works inside a ScrollView and still
exercises the EaseText TextProps passthrough.1 parent 827c7f6 commit acc810b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments