Repository navigation
nitro-input v0.3.5
·
19 commits
to main
since this release
focusedValue: pass a shared value (Reanimated'suseSharedValue(false))
and the field keeps it equal to its focus, set on the UI thread the moment
focus changes, whileonFocus/onBlurstill run on JS. For focus styling
that must not wait for JS and that wraps more than the field: a border
around a row holding an icon or a country picker in front and a clear
button behind. Needsreact-native-worklets.- Worklet focus handlers see the first focus of an
autoFocusfield. They
were registered in an effect, which can run after the view has attached and
taken focus, so a workletonFocus(anduseNitroInputState'sfocused)
missed it. They are registered while rendering now. - iOS: no keyboard left over a screen popped back to. Going back from a
screen whose field had the keyboard, withkeyboardHandoffMs, to a screen
where no field takes it (a list whose search field was never focused), the
keyboard stayed up over that screen for the wholekeyboardHandoffMsafter
the pop. React unmounts the popped screen's field before the pop starts, so
the handoff could not tell a pop from a field swapped in place. The hold now
ends as the screen starts to leave when no field is waiting for the
keyboard; a field there that had it when it was covered, or one focused on
return, still takes it over.