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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-fidgetmenu

v1.0.16

Published

Add a playful touch to React Native apps with Fidget Spin Menu. Create mesmerizing, interactive menus for seamless navigation.

Downloads

68

Readme

RN-FidgetMenu

Create mesmerizing, interactive menus in your React Native apps with ease using SpinMenu. This customizable component adds a playful touch to your UI, allowing users to navigate through options effortlessly. Spin through menus with a flick of a finger, delivering a delightful user experience.

FidgetMenu ScreenShot

Installation

Install RN-FidgetMenu with npm or yarn

  npm install react-native-fidgetmenu
  yarn add react-native-fidgetmenu

You need to install and configure the required libraries for FidgetMenu.

  npm install react-native-gesture-handler
  yarn add react-native-gesture-handler
  npm install react-native-reanimated
  yarn add react-native-reanimated

Features

  • Display dynamic data in real-time.
  • Engaging menu spin functionality adds an interactive element to the user experience.
  • Developed entirely in TypeScript, leveraging the latest version of React Native for enhanced performance and maintainability.
  • Compatible with both Android and iOS platforms, ensuring a seamless experience across devices.

Usage

import  SpinMenu  from 'react-native-fidgetmenu';
  1. Create a state to manage an array of data structured as follows:
const [content, setContent] = useState([
    {
      icon: 'https://cdn-icons-png.flaticon.com/128/1404/1404945.png',
      label: 'Pizza',
    },
    {
      icon: 'https://cdn-icons-png.flaticon.com/128/3170/3170733.png',
      label: 'Dine In',
    },
    {
      icon: 'https://cdn-icons-png.flaticon.com/128/9718/9718703.png',
      label: 'Fast Food',
    },
    {
      icon: 'https://cdn-icons-png.flaticon.com/128/4780/4780045.png',
      label: 'Biryani',
    },
  ]);
  1. Use this SpinMenu component wherever you want to display the spin menu.
  <SpinMenu
    data={content}  //<-------- The array of data to be displayed in the spin menu
    centerText="See All" //<-------- The text to be displayed at the center when the length of the provided data exceeds 6
    onPressCategory={(item:any) => {
    Alert.alert(item.label); 
  }} //<-------- This function defines the behavior when a category is clicked
/>

Available props

| Name | Type | Description | | -------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | data | Array[] | Data to populate the menu bar. | | circleSize | number | CircleSize determines the height and width of each circle. | | centerText | string | CenterText is displayed when the length of the data exceeds 6. | | mainStyles | ViewStyleObject | Style the main view. | | onPressCategory | function |This is used to handle the press event on the menu circle. | | labelStyle | TextStyleObject | This is used to change the style of the label. | | headerBackIcon | Image | This is used to change the back icon of the modal. | | headerImageStyle | ImageStyleObject | This is the style of the back icon.modal | | iconStyle | ImageStyleObject | This is used to change the style of the menu circle icons. |