clubzella-comic-test-v1
Version:
A clubzella widget component library for React Native.
88 lines (58 loc) β’ 2.08 kB
Markdown
# π 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
- π Quick access to βRead Nowβ interface
- π Dynamic comics panel pulled using your `apiKey`
- π§ Minimal configuration β just import and drop into your app
## π¦ Installation
```bash
npm install clubzella-comics-widget
# or
yarn add clubzella-comics-widget
```
> Ensure you have installed the peer dependencies:
```bash
npm install react react-native @expo/vector-icons react-native-webview
```
## π Usage
```tsx
import React from "react"
import { Widget } from "clubzella-comics-widget"
export default function App() {
return (
<>
{/* Other components */}
<Widget apiKey="YOUR_API_KEY" />
</>
)
}
```
This will render a floating widget button at the bottom right of your app. When tapped, it expands to a panel displaying Clubzella comics.
## βοΈ Props
| Prop | Type | Required | Description |
| -------- | ------ | -------- | ----------------------------------------- |
| `apiKey` | string | β
Yes | Your Clubzella API key for fetching data. |
## π§± Components Breakdown
Internally, the widget includes:
- `CircleText` β Custom FAB content
- `ReadNow` β Preview + CTA to open the comics panel
- `ComicsPanel` β The main comic listing panel (fetched via `apiKey`)
All of these are connected and controlled from the `Widget` root component.
## π License
MIT Β© [Clubzella](https://github.com/zellastudios)
## π¬ Contributions
Issues and PRs are welcome! Help us improve and expand the widget by contributing directly to the repo.
```bash
git clone https://github.com/zellastudios/zella-widget.git
cd zella-widget
npm install
npm run build
```