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 🙏

© 2025 – Pkg Stats / Ryan Hefner

clubzella-comics-widget

v0.0.186

Published

A clubzella widget component library for React Native.

Readme

📚 clubzella-comics-widget

A plug-and-play comics widget for React Native apps. Built to display Clubzella comics through a floating button UI that opens an interactive panel for users to explore and read content.


✨ Features

  • 🔘 Floating action button (FAB) with custom circular UI
  • 🎨 Multiple entry styles – choose between icon or banner display
  • 📖 Quick access to "Read Now" interface (optional)
  • 📚 Dynamic comics panel pulled using your apiKey and apiURL
  • 🗂️ Episodes panel for browsing series episodes
  • 🔍 Pinch-to-zoom with pan, double-tap zoom, and zoom controls
  • 🔧 Minimal configuration – just import and drop into your app

📦 Installation

npm install clubzella-comics-widget
# or
yarn add clubzella-comics-widget

Ensure you have installed the peer dependencies:

npm install react react-native @expo/vector-icons expo-font react-native-gesture-handler react-native-reanimated

🚀 Usage

Ensure you keep the widget component outside a scroller.
import React from "react"
import { Widget, ComicsProvider } from "clubzella-comics-widget"

export default function App() {
  return (
    <ComicsProvider>
      {/* Other components */}
      {/* Important: keep the widget outside a scroller. */}
      <Widget
        apiKey="YOUR_API_KEY"
        apiURL="API_URL"
        showEntry={true}
        entryType="icon"
      />
    </ComicsProvider>
  )
}

This will render a floating widget button at the bottom right of your app. When tapped, it expands to a panel displaying Clubzella comics episodes.


⚙️ Props

| Prop | Type | Required | Default | Description | | ----------- | -------------------- | -------- | -------- | ---------------------------------------------------------------- | | apiKey | string | ✅ Yes | – | Your Clubzella API key for fetching data. | | apiURL | string | ✅ Yes | – | Clubzella API URL for fetching data. | | showEntry | boolean | ❌ No | false | Show the entry FAB and Read Now preview. | | entryType | "icon" \| "banner" | ❌ No | "icon" | Display style for the entry point – compact icon or full banner. |


🔍 Zoom & Pan Controls

The comics reader includes full gesture support for an immersive reading experience:

| Gesture | Action | | ---------------------- | --------------------------------------- | | Pinch | Zoom in/out (up to 3x) | | Double-tap | Toggle between 2x zoom and reset | | Single-finger drag | Scroll through pages (when not zoomed) | | Single-finger drag | Pan around the page (when zoomed) | | Zoom buttons | Manual zoom in/out via toolbar | | Reset button | Appears when zoomed – tap to reset view |

💡 When zoomed in, page scrolling is disabled to allow free panning. Double-tap or use the reset button to return to normal reading mode.


🧱 Components Breakdown

Internally, the widget includes:

  • CircleText – Custom FAB content
  • ReadNow – Preview + CTA to open the comics panel
  • EpisodesPanel – Main episodes listing panel (fetched via apiKey and apiURL)
  • InComicsPanel – Full reader with zoom/pan gesture support
  • Context: Uses ComicsProvider and useComics for panel state management

All of these are connected and controlled from the Widget root component.


🧩 Context & Hooks

  • ComicsProvider: Wrap your app (or widget) with this provider to enable comics panel state.
  • useComics: Hook to access and control the comics panel state (isComicsPanelOpen, openComicsPanel, closeComicsPanel).

📱 Entry Type Examples

Icon Entry (entryType="icon")

A compact floating action button – ideal for apps where screen space is limited.

Banner Entry (entryType="banner")

A more prominent banner-style entry point – great for featuring comics content.

// Compact icon
<Widget apiKey="..." apiURL="..." showEntry={true} entryType="icon" />

// Prominent banner
<Widget apiKey="..." apiURL="..." showEntry={true} entryType="banner" />