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

@ariefw-rn/three-line-menu

v0.1.3

Published

The ariefw-rn three-line-menu module functions as a specialized UI component that bridges the React layer with the underlying layout engine to provide a responsive touch interactive navigation trigger. It programmatically manages the visual transitions be

Readme

@ariefw-rn/three-line-menu

A responsive and animated three-line menu (hamburger menu) component for React Native applications. This component provides a sleek animated sidebar that works seamlessly across iOS, Android, and Web platforms. The menu features smooth slide-in animations, backdrop dimming, and safe area handling for modern mobile devices.

Demo

Try it out on Expo Snack!

Background

This component follows an old-school philosophy similar to Java Swing components, focusing on functionality over appearance. It's designed for developers who prioritize getting things done quickly rather than spending time on extensive UI customization. The component provides a ready-to-use solution that requires minimal setup - you only need to provide the menu items themselves. This approach allows for fast development without the need for complex styling or detailed customization, making it ideal for applications where functionality takes precedence over visual appearance.

Features

  • 🎨 Smooth slide-in/slide-out animations
  • 📱 Cross-platform support (iOS, Android, Web)
  • 🛡️ Safe area awareness for notch devices
  • 🎯 Touch-optimized interface
  • 🎭 Backdrop dimming effect
  • 📋 Customizable menu items
  • ⚡ High-performance rendering

Installation

Expo Managed Projects

npx expo install @ariefw-rn/three-line-menu

Bare React Native Projects

npm install @ariefw-rn/three-line-menu

For iOS, run:

npx pod-install

Usage

Here's a basic example of how to use the ThreeLineMenu component:

import React from 'react';
import { StyleSheet, View, Alert } from 'react-native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { ThreeLineMenuView, MenuOption } from '@ariefw-rn/three-line-menu';

export default function App() {
  const menuData: MenuOption[] = [
    {
      label: 'Dashboard',
      onPress: () => Alert.alert('Dashboard selected')
    },
    {
      label: 'Profile',
      onPress: () => Alert.alert('Profile selected')
    },
    {
      label: 'Settings',
      onPress: () => Alert.alert('Settings selected')
    },
    {
      label: 'Help & Support',
      onPress: () => Alert.alert('Help & Support selected')
    },
  ];

  return (
    <SafeAreaProvider style={styles.container}>
      <View style={styles.header}>
        <ThreeLineMenuView data={menuData} />
        <Text style={styles.title}>My App</Text>
      </View>
      {/* Your main app content goes here */}
    </SafeAreaProvider>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#FAFAFA',
  },
  header: {
    flexDirection: 'row',
    alignItems: 'center',
    backgroundColor: '#FFF',
    paddingHorizontal: 15,
    paddingTop: 10,
    paddingBottom: 10,
    borderBottomWidth: 1,
    borderBottomColor: '#EEE',
  },
  title: {
    marginLeft: 15,
    fontSize: 18,
    fontWeight: 'bold',
  }
});

API

Components

ThreeLineMenuView

The main component that renders the hamburger menu and sidebar.

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | data | MenuOption[] | Yes | Array of menu options to display in the sidebar |

MenuOption

Interface for menu items in the sidebar.

| Property | Type | Required | Description | |----------|------|----------|-------------| | label | string | Yes | The text displayed for the menu item | | onPress | () => void | Yes | Function executed when the menu item is pressed |

Platform Support

  • ✅ iOS
  • ✅ Android
  • ✅ Web

Dependencies

This component relies on:

  • react-native-safe-area-context - For handling safe areas on iOS devices
  • @expo/vector-icons - For menu and close icons (you may need to install this separately)

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests if applicable
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository.