You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: TextInputFocus state not in sync with View focus (#2553)
## Summary:
This is fixed upstream with
facebook#52472 . Let's commit (and
backport) a smaller fix for now.
## Test Plan:
Minimal repro of bug is this code below. Basically, you can't focus on
"Pressable Child 2" twice by clicking on the container
```
<Pressable style={{backgroundColor: 'lightblue', padding: 10, gap: 10}} onPress={() => {myRef.current.focus();}}>
<Text>Pressable Container</Text>
<Pressable><Text>Pressable Child 1</Text></Pressable>
<Pressable ref={myRef}><Text>Pressable Child 2</Text></Pressable>
<Pressable><Text>Pressable Child 3</Text></Pressable>
</Pressable>
```
0 commit comments