What is this?
Morphlet is a native, morphing floating tray component for React Native, letting you build an animated tray that transitions between views like an iOS sheet.
Is this a standalone app or a component library I drop into my React Native project?
It is a component library: you compose pieces like Tray.Root, Tray.Trigger, and Tray.Content directly in your own React Native app, there is no standalone app.
How do I add it to a React Native project?
You wrap the parts you want to animate in Tray.Root/Tray.Content/Tray.Trigger components; the README does not give an explicit npm install command, only the architecture requirements.
Do I need React Native's New Architecture enabled for this to work?
Yes, Morphlet requires the New Architecture and Android API 24+; on Expo you need a custom development build since Expo Go is not supported.
Will this work in a plain Expo Go app?
No, since it depends on the New Architecture, Expo users must build a custom development build instead of using Expo Go.
Does it work on both iOS and Android?
Yes, it is built as a cross-platform React Native component, though on Android it needs API level 24 or higher.
What transition styles can I use when switching views inside the tray?
Morphlet supports morph, slide, fade, and scale transitions between named views.
What animation presets are available?
It ships with default, smooth, snappy, and bouncy presets, or you can pass your own custom spring configuration.
Can the tray behave like an iOS action sheet that stacks content?
Yes, adding the stack prop to Tray.Content pushes the tray below back, similar to an iOS sheet.
What parts make up the tray's structure?
Tray.Root controls open state, Tray.Trigger/Close toggle it, Tray.Content is the card body, and Tray.Header/Footer/Body/View/Title/Description handle layout and accessible text.
What are similar projects?
ng-native, react-native-elements, expo-backdrop, react-native-calendars, react-native-ui-kitten, react-native-swiper, victory, Libraries.dev
Which topics is it in?
expo, react-components, ui-library, react-native, component-library, mobile-app, ui-components, animation, mobile, ui, ios, android