Four experiments in replacing the sorting library
Where an expanded card appears differed from the space it actually occupies. We ran four experiments, separate from the app, to see whether we could make it simpler without the library.
An expanded card appears in one place on screen and takes up another. With this gap, we have to think about two positions together every time we hit a new problem. Putting the card inside the row and building the sorting ourselves might make it simpler. But whether deleting the library also deletes the complexity is something we can only know by building it.
We compared results by going frame by frame through iOS simulator recordings. The computer's load was high, so we didn't compare timings. Below, pt is the unit for measuring length on screen.
Will putting the card inside the row work?
In round 1 we kept the existing library and put the card inside the row. Expanding was fine, but collapsing left a gap and a jump of up to 200 pt. The library reflected the changed size late.
In round 2 we took the causes apart one by one. Collapsing still failed even when we didn't delay the time of measuring the size. With other layout approaches a gap of up to 46 pt remained. Using only a layout transition without the library removed the gap, but collapsing a card at the end of the list jumped 200 pt. Fix one place and a problem at another moment shows up.
The problem was at the moment of dropping
In round 3 we built the sorting ourselves. Ordinary behavior passed, but when we let go of a row, the new order and the motion were applied in different frames. That produced a jump of 61 to 111 pt. The single moment when sorting ends was harder than the sorting itself.
In round 4 we added a FLIP layout transition, which converts coordinates. All 40 combinations of whether a reorder was accepted, how late the response was, and which side the row was dropped on passed. If we had stopped here, we'd have thought it a success. But when we dragged again while a card was moving, it failed all five times. It failed when we grabbed another row while waiting for the response, too. The 40 combinations only checked the conditions we'd thought of, not everything a person can do.
What we can build isn't the same as what's simpler
This isn't a conclusion that building it ourselves is impossible. If we keep fixing, we might eventually remove the remaining failures. But then, have we really gotten rid of the complexity the library handled, or just moved it into code we have to manage? Four experiments gave us no evidence that the whole gets simpler. So we keep react-native-sortables and the current card structure as they are.
The problem that the visible place and the actual place differ remains too. That doesn't mean we've forgotten it. We'll look again when React's screen updates and Reanimated's value updates can be applied in the same frame. The same goes if a library appears that stays out of ordinary layout and doesn't rebuild rows when you drop them.
Written from that day’s point of view, using the documents and change history of the time. Published 2026.12.01.
