What's Included
- TypeScript source (NestedSwitch.tsx)
- Demo screen wired with GestureHandlerRootView
- Grid background asset
- README with install + usage
- MP4 preview
About the Project
Built entirely with react-native-reanimated v4. Two shared values (outerX, innerX) drive the whole control: useAnimatedStyle worklets derive every dependent transform with interpolate, while interpolateColor crossfades the label colors as the indicators slide. The 'Premium' label lifts and shrinks while the nested 'Solo • Team' row scales up from behind it, and a divider dot fades out — all keyed off the single outer position so the morph stays in sync. Taps are handled with Pressable onPressIn for instant response; the demo wraps the tree in GestureHandlerRootView so it drops cleanly into a gesture-handler app. No native code — tested on Expo SDK 56 (iOS + Android) and works on web via react-native-web.