npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@morphkit/react-native-flows

v0.1.1

Published

Multi-screen user flow templates using morph-ui components

Readme

React Native Flows

Multi-screen user flow templates built with morph-ui components. Flows are designed to be copied into your app and customized.

Purpose

This package provides ready-to-use flow templates for common multi-screen features:

  • Authentication (login, signup, password reset)
  • Onboarding (welcome, features, permissions)
  • Checkout (cart, shipping, payment)
  • Profile management
  • Settings flows

Philosophy

Flows follow the shadcn/ui approach:

  • Copy-paste friendly: Copy flow files directly into your app
  • Full control: Modify, delete, or extend as needed
  • Component-only: Built exclusively with morph-ui components
  • Type-safe: Complete TypeScript definitions
  • Empty handlers: Implement business logic yourself

Available Flows

Currently, this package is empty and ready to receive flows. Use the create-flow skill to generate new flows from Figma designs.

Usage

Copy a Flow

Once flows are added, copy them into your app:

# Copy default auth flow
cp -r packages/react-native-flows/src/auth/default/* app/auth/

# Copy onboarding flow
cp -r packages/react-native-flows/src/onboarding/default/* app/onboarding/

Implement Handlers

After copying, implement the empty handler functions within each screen component:

export default function Login() {
  const router = useRouter();
  const [email, setEmail] = useState("");
  const [password, setPassword] = useState("");

  const handleLogin = () => {
    // TODO: Implement login logic
    // Example:
    // try {
    //   const user = await authService.login({ email, password });
    //   await authStore.setUser(user);
    //   router.push("/home");
    // } catch (error) {
    //   showErrorToast(error.message);
    // }
  };

  return (
    <Container>
      <Stack direction="vertical" spacing={16}>
        <Input value={email} onChange={setEmail} placeholder="Email" />
        <Input value={password} onChange={setPassword} placeholder="Password" secureTextEntry />
        <Button onPress={handleLogin} variant="primary">Log In</Button>
      </Stack>
    </Container>
  );
}

Customize

All components support props for customization:

<Button size="lg" variant="primary">
<Input variant="filled" size="lg">
<Typography variant="title-2">

Use morph-ui layout components for positioning:

<Container>
  <Stack direction="vertical" spacing={20} padding={32} align="flex-start">
    <Typography variant="title-1">Title</Typography>
    <Input placeholder="Enter text" />
    <Button variant="primary">Submit</Button>
  </Stack>
</Container>

Creating New Flows

Use the create-flow skill to generate flows from Figma designs:

  1. Provide a Figma link with your flow screens
  2. Specify flow name (e.g., "auth", "onboarding")
  3. Specify variant name (e.g., "default", "with-phone-number")
  4. The skill generates complete flow structure in this package

Architecture

Component-Only

Flows use only morph-ui components. React Native UI components (Text, Button, TextInput) are forbidden.

Allowed:

import { Typography, Button, Input } from "@warp-ui/react-native";

Forbidden:

import { Text, Button, TextInput } from "react-native";

Inline Event Handlers

Event handlers are defined within screen components with empty implementations:

export default function LoginScreen() {
  const [email, setEmail] = useState("");
  const [password, setPassword] = useState("");

  const handleLogin = () => {
    // TODO: Implement login logic
  };

  return (
    <Container>
      <Stack direction="vertical" spacing={16}>
        <Input value={email} onChange={setEmail} />
        <Button onPress={handleLogin}>Log In</Button>
      </Stack>
    </Container>
  );
}

Flow Structure

Flows use Expo Router for file-based routing:

src/auth/
├── default/                # Default variant
│   ├── _layout.tsx         # Navigation setup
│   ├── login.tsx           # Login screen with inline handlers
│   └── signup.tsx          # Signup screen with inline handlers
├── with-phone/             # Alternative variant
│   ├── _layout.tsx
│   ├── phone.tsx           # Phone input screen
│   └── verify-otp.tsx      # OTP verification screen
├── types.ts                # Shared type definitions
└── README.md               # Flow documentation

Dependencies

  • @warp-ui/react-native: Component library (peer dependency)
  • expo-router: File-based routing (peer dependency)
  • react: React library (peer dependency)
  • react-native: React Native framework (peer dependency)

Development

# Lint flows
bun run lint

# Type-check flows
bun run check-types

# Format code
bun run format

Contributing

When adding new flows:

  1. Follow the established structure (variant directories, screen files, types)
  2. Use only morph-ui components (Stack, Box, Container for layout)
  3. Keep event handlers inline with TODO comments
  4. Include comprehensive README for each flow
  5. Ensure all static analysis checks pass

License

MIT