New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@chainplatform/accordion

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainplatform/accordion

A simple animated Accordion component for React Native and React Native Web.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Accordion

A lightweight, animated Accordion component for React Native and React Native Web, supporting smooth expand/collapse transitions with automatic content height measurement.

PRs welcome! Follow @doansan

🚀 Installation

npm install @chainplatform/accordion
# or
yarn add @chainplatform/accordion

📦 Usage

import React from "react";
import { Text } from "react-native";
import Accordion from "@chainplatform/accordion";

export default function Example() {
  return (
    <Accordion title="View Details" initiallyOpen>
      <Text>
        This is a simple accordion component. It animates height smoothly based
        on its content size.
      </Text>
      <Text>You can place any component inside it.</Text>
    </Accordion>
  );
}

⚙️ Props

PropTypeDefaultDescription
titlestring"Accordion Title"Header text
initiallyOpenbooleanfalseWhether it's expanded on mount
durationnumber250Animation duration in milliseconds
titleStyleobjectundefinedCustom style for the title text
contentStyleobjectundefinedStyle for inner content
iconStyleobjectundefinedStyle for the arrow icon
buttonStyleobjectundefinedButton style
styleobjectundefinedContainer style

💡 Features

  • Smooth open/close animation using Animated
  • Auto height measurement (no fixed height)
  • Works on both React Native & Web
  • Customizable styling
  • Class-based component (for RN legacy compatibility)

🧩 Example Styles

<Accordion
  title="Course Information"
  style={{ borderColor: "#00C853" }}
  titleStyle={{ color: "#00C853" }}
>
  <Text>Instructor: John Doe</Text>
  <Text>Duration: 12 weeks</Text>
</Accordion>

🪪 License

MIT © 2025 Chain Platform

💖 Support & Donate

If you find this package helpful, consider supporting the development:

CryptocurrencyAddress
Bitcoin (BTC)17grbSNSEcEybS1nHh4TGYVodBwT16cWtc
alt text
Ethereum (ETH)0xa2fd119a619908d53928e5848b49bf1cc15689d4
alt text
Tron (TRX)TYL8p2PLCLDfq3CgGBp58WdUvvg9zsJ8pd
alt text
DOGE (DOGE)DDfKN2ys4frNaUkvPKcAdfL6SiVss5Bm19
USDT (SOLANA)cPUZsb7T9tMfiZFqXbWbRvrUktxgZQXQ2Ni1HiVXgFm

Your contribution helps maintain open-source development under the Chain Platform ecosystem 🚀

Keywords

accordion

FAQs

Package last updated on 28 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts