Migrating from 0.0.20
The import, the props, their defaults and the ref methods are the same. Most apps only change the version. These behaviors differ:
| 0.0.20 | 1.0 | |
|---|---|---|
onChangeText |
200 ms late | At once |
onDelete |
200 ms late | At once |
| Pressing the search icon | Focus callbacks ran twice | Once |
| Layout changes | Collapsed and closed the keyboard | Only resize |
value |
Ignored | Followed. Clearing calls onChangeText |
| Text while collapsed | Centered | At the leading edge |
| Clear button while collapsed | Hidden | Shown when there is text |
Long cancelTitle |
Cut | Room is measured, unless cancelButtonWidth is set |
| Width | Grew with its content in a row | Set by the parent |
direction="rtl" |
Search icon on the left | Mirrored |
propTypes |
prop-types package |
TypeScript types |
ref.refs.input_keyword |
String ref | ref.getInputRef() |