Morphing Floating Tray Bottom Sheets
Tapping a habit raises a tray whose top edge moves on a critically damped spring while it reshapes into a picker, keypad or cup stepper. Old and new content cross-fade pinned to the top, the month grid dims and recenters, and edits write back.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "morphing-floating-tray-bottom-sheets" to this project. The full source is attached at the end of this prompt. Put the files under components/morphing-floating-tray-bottom-sheets/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 23 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @itsnotchester on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A habit-tracking screen built around one floating tray inset from the screen edges. In its compact state the tray lists today's habits as dark rows with checkboxes and values. Pulling it up expands the list to nearly full height and shows a table of days behind it, which re-centres as the tray changes. Tapping a habit morphs the tray into a sheet, anchored at the bottom: a time picker with a three-dimensional wheel and a next-day switch for one habit, a keypad sheet or a stepper for others. Closing returns to the list, the background dims while a sheet is open, and buttons switch between Track and Update plus a delete action.
How it's built
A shared JavaScript core holds the geometry, the state machine and the animation functions; the React Native component renders it with ordinary Views and react-native-svg, plus expo-blur, linear gradients and a masked view for soft edges. The tray keeps its bottom fixed and animates only its top edge and corner radii, so one container becomes list, picker and keypad. The picker wheel is a projected cylinder where row offsets come from sine of the row angle. Time advances on a requestAnimationFrame loop.
Good for
- Habit, health or logging apps where one surface hosts list, detail and input
- Replacing a stack of separate modals with a single container that changes size
- Numeric entry sheets that need a picker, keypad and stepper variants
Dependencies
react-native-svgexpo-blurexpo-linear-gradient@react-native-masked-view/masked-viewreact-native