[fix] Allow Pressable to be programmatically focused when disabled

Fix #2357
This commit is contained in:
Nicolas Gallagher
2022-08-24 14:39:55 -07:00
parent 3fc40bdf81
commit 107c6eeb46
4 changed files with 28 additions and 18 deletions
@@ -34,6 +34,8 @@ export default function PressablePage() {
delayPressIn={delay}
delayPressOut={delay}
disabled={disabled}
onBlur={handleEvent('onBlur')}
onFocus={handleEvent('onFocus')}
onHoverIn={handleEvent('onHoverIn')}
onHoverOut={handleEvent('onHoverOut')}
onKeyDown={(e) => {