Closed thiagoteles closed 4 years ago
Hi,
You group keys by 3 into a Row, so when you go up from number 6, first it focuses second Row. Then the Row propagates focus down to the first child which is number one. The case with going up from 8 to 6 is because it remembers last focused child in that Row and focuses 6. Please read the docs and the article, especially about “forgetLastFocusedChild” and how is focus propagated down from parents to children. In your case you don’t need to make Row focusable. This creates nested level in your focusable tree that causes these issues. Also always try to use debug and visualDebug mode first, it tells you exactly where the focus goes and why, including coordinates calculations.
Hello,
I have this code
` const KeyOne = ({ value, focused }: any) => { return ( <View style={focused ? styles.focused : {}}>
`
Its produces a small virtual keyboard like that:
But when I
m on number 6 for example, and press UP the focus goes to 1. When I
m on number 8 for example and press UP the focus goes to 6.I dont know what a reson due a framework dont get the closest value based on key pressed.
Someone can help me please?