dec 5, 2026, 11 min read
the logger, the sheet, its detent & the rubber band
Every film, episode, chapter and book I finish goes to a different tracker. Shinobu is the pet project that logs to all of them at once. This is its story, and how a sheet that would not stretch got me to contribute to an open source React Native library.
I like to log everything I finish. Every film, every episode, every manga chapter, every book. I know that is not normal. It gets worse: no tracker covers all of it, so for years I logged most things two or three times, on Letterboxd, Serializd, Trakt, Simkl, AniList and Hardcover. Shinobu is my fix. It is not another tracker. It sits on top of the ones you already use: you connect each one with its own sign-in, you log something once, and Shinobu writes it to every connected tracker that handles that kind of media. Then it reads them all back into one Up Next feed, one diary and one watchlist. There is no account, no backend and no database: each tracker’s token is the session. I use it every day, on my phone and on the web at shinobu.glpecile.xyz.
The hard part is that the trackers do not agree on what things are. Letterboxd only does film. Serializd only does TV. An anime film is a movie to Trakt and an anime to AniList. So each log takes its own route:
This is my second try at introducing Shinobu. The first draft, in August, was about how the repo’s notes let it replace its main tracker in a weekend. Those notes are mostly gone now, and so is that draft. This one starts with something smaller: a sheet.
What it is made of
Shinobu is one Expo project that builds for the web, iOS and Android. The short version of the stack:
- Expo and Expo Router. The native projects are generated on each build and never committed.
- Uniwind for Tailwind classes in React Native.
- TanStack Query for every read and write. Its cache stays on the device, so a cold start shows the last data. Effect handles typed errors, retries and rate limits in the tracker layer.
- Nitro Modules: MMKV stores the tokens, and nitro-fetch sends requests through Cronet and URLSession.
- Legend List for long lists, and expo-image with Galeria for posters.
- Reanimated, Gesture Handler and Pulsar for motion, gestures and haptics.
- Cloudflare Workers for the web build and a few relays for the APIs that block browsers.
- React Compiler, Bun and oxlint for the rest.
Count the Software Mansion packages in there. Reanimated, Gesture Handler, Worklets under Reanimated, Screens under Expo Router, SVG, Pulsar. Plus one more, which is what this post is about.
Every log ends in a sheet
Tap “Log” on an episode, and a sheet asks which trackers get it. Long-press a poster, and a sheet shows what you can do with it. Here is the first one, rebuilt for the web:
On iOS and Android, each of those is a ModalBottomSheet from Software Mansion’s React Native Bottom Sheet. Shinobu wraps it once. Trimmed down, the wrapper is this:
<ModalBottomSheet
detents={[0, "content"]}
index={open ? 1 : 0}
onIndexChange={(index) => {
if (index === 0) close();
}}
surface={<View className="absolute inset-0 rounded-t-3xl border border-border bg-surface" />}
>
<ScrollView>{children}</ScrollView>
</ModalBottomSheet>
Note the detents prop. A detent is a height where a sheet can rest. The word comes from mechanics: it is the notch that makes a dial click into place. A sheet works the same way. Drag it and let go, and it settles on the nearest detent, or on the next one if you flicked it. Apple uses the same name for its own sheets: UISheetPresentationController.Detent, with .medium() and .large(). Most sheets have two or three.
Shinobu’s sheet has two: 0, which is closed, and "content", which is as tall as what is inside. So an open sheet already rests on its highest detent. There is no higher place for it to go. Keep that in mind.
Why this sheet
React Native has a lot of bottom sheets. This is how the main ones compare on what Shinobu needs, from the library’s own comparison:
| React Native Bottom Sheet | @gorhom/bottom-sheet |
Expo UI | formSheet |
True Sheet | |
|---|---|---|---|---|---|
| Drag and snapping | native | Reanimated worklets | native | native | native |
Plain ScrollView |
✓ | its own wrapper | in RNHostView |
layout limits | ✓ |
| Your own surface | ✓ | ✓ | color only | color, radius, elevation | ✓ |
| Detents | any | any | half, full¹ | fractions, 3 max¹ | 3 max, no heights |
| Inline sheets | ✓ | ✓ | – | – | – |
| Who owns the drag | the library | the library | the platform | the platform | the platform |
¹ On Android.
The last three columns are sheets the platform presents. They feel like the system because they are the system. But the platform decides the behavior, and you get the knobs it exposes. Shinobu’s sheets are as tall as their content and drawn with its own surface, which rules out Expo UI on Android.
There is a catch. React Native Bottom Sheet is a newcomer. Next to the sheet most React Native apps use, it has a fraction of the stars and of the history:
So the rest was trust. Software Mansion maintains Reanimated, Gesture Handler, React Native Screens and React Native SVG, which most React Native apps run, and they contribute to React Native itself. Besides the sheet, Shinobu runs six of their packages. When that team ships a sheet whose drag runs in native code, I will take the early version, stars or not.
And the last row of the table is the reason this post exists. I just did not know it yet.
The sheet that stopped dead
Watch the finger pull the sheet up, then flick it down. Grab the sheet to try it yourself.
Nothing. The sheet is at its top detent, so it does not go higher. And when the finger turns around and pulls down, without letting go, still nothing. The sheet decided at the start that this drag was not for it, and it kept that decision until the finger let go.
This is issue #53, opened on 5 July 2026, three days after Shinobu’s first commit:
Not only does it look a little unnatural and rigid, but my main peeve is that when you initially start dragging it to the top, dragging it to the bottom with the same motion also doesn’t trigger any movement of the sheet. Hope it’s a not a shortcoming of native implementation.
It was not. A maintainer, Patrick Michalik, answered the same day:
This library uses platform primitives, not ready-made sheet components. We own the gesture and animation logic, giving us full flexibility.
That is the other difference. With a formSheet, the drag belongs to Apple and Google, and a fix means a feedback report and a wait. Here, the drag is a few hundred lines of Swift, Kotlin and TypeScript that anyone can read and change.
Why does a hard stop feel so wrong? Because your phone trained you. Pull any list on iOS past its end, and it keeps moving, a little less with every pixel, and springs back when you let go. That is a rubber band. It says two things: you reached the end, and the app heard you. A hard stop says only the first one. It feels stuck, not finished.
A skill caught it, somewhere else
The fix did not start in the sheet. It started in Shinobu’s pull-to-refresh.
Most of Shinobu is written by agents, and I give them skills: files that tell an agent how a thing should behave. Every so often I run a few of them over the whole app to see what could be better. One of those passes used emil-interaction-details, from Emil Kowalski’s course AI for UI. His public skills are worth a look too, like animate, gestures and break-ui. This one walks every draggable thing through a list of questions. One section is called “Limits”, and it starts like this:
Things in the real world don’t stop dead, they slow down first. A hard stop also breaks the one rule of a drag: the element is the pointer.
Then it gives a curve:
// iOS rubber band. `dimension` is the size of what's being dragged.
const rubberBand = (over: number, dimension: number) =>
(1 - 1 / ((over * 0.55) / dimension + 1)) * dimension;
For a small over, this is about 0.55 * over: the element follows at a bit more than half speed. As over grows, the result gets closer to dimension and never reaches it. Each pixel of drag buys less than the one before. 0.55 is the constant people measured from iOS’s scroll views.
Shinobu’s Android pull-to-refresh did not use it. It used a fixed ratio, FRICTION = 0.5: half of every pixel, forever. That is not tension, it is just a slower drag. The pass replaced it with the curve (#527).
Here is a finger pulling past the top and letting go, on a loop. Drag the slider to take over:
“Stops dead” is the sheet in 1.1.0. “Half speed” is the old pull-to-refresh: it never ends. The two bent lines are both rubber bands. Keep an eye on the gap between them.
The sheet had the same problem, and the skill had just given me the fix. Less than three hours after the pass merged, PR #141 was open: the same curve, the same 0.55, and the room above the sheet’s top detent as the dimension. On iOS, Android and the web.
The fix
Skalakid tested the first version on an iOS simulator and an Android emulator, and found three problems. From rest, the sheet still did not move. It stretched too far: 157 pt, where Apple’s own sheet moves about 62. And a flick down snapped it back instead of closing it. Each fix below answers one of those.
The drag starts at rest. The checks that decide whether a drag belongs to the sheet (canBeginPan on iOS, onInterceptTouchEvent on Android, shouldBegin on the web) now let an upward drag begin on the top detent, when no scrollable is under the finger. When there is one, the content keeps the drag, as before.
The stretch matches iOS. I measured a plain UISheetPresentationController on an iPhone 17 Pro simulator, iOS 26.5, with drags of 100 to 500 pt at detents of 0.5 and 0.8. The lift does not depend on the room above the detent. It fits the same 0.55 curve with a limit of about 110 pt, so a 350 pt drag lifts it about 70 pt. The first version used the room above the detent as the limit, which for a short sheet is most of the screen: that is the gap in the chart. Now the limit is 110 pt, or the room above the detent when that is smaller:
const lift = rubberBand(over, Math.min(110, roomAbove));
A flick down closes it. A release above the detent now resolves as if it happened at the detent, so a flick down moves one detent along, or dismisses:
const height = host.hostHeight - Math.max(host.translateY, gesture.dragRange.minTy);
Here are all three versions, each with the gesture that shows it best. Grab the sheet at any point to try it yourself.
Fuck around and find out
None of this was planned. I was polishing a pull-to-refresh. A skill told me that things slow down before they stop, and after that I could not unsee it. The sheet one screen over stopped dead, and suddenly it was the only thing I noticed.
That is the part I want to keep. Be curious about the small stuff. Why does this drag feel wrong? Why 0.55? How far does Apple’s own sheet go when you pull it? Each question was a rabbit hole, and each one left me with something I now use everywhere: tension, velocity, where a release should land. Interactions are never done. You notice one detail, and three more show up behind it.
The review made the fix better than anything I would have shipped alone. Ship it, look at it, measure it, improve it.
So if something in a library you use feels wrong, do not wait for someone else to fix it. Open the code. Read the issue. Try a fix and say what you did not test. The worst case is a review that teaches you something, from the people who know that code best. The best case is that someone you never met, who opened an issue in July, gets the sheet they asked for.