@space-uy/pulsar-ui
v0.3.0
Published
react native ui kit for spacedev
Downloads
3
Readme
@space-uy/pulsar-ui
A modern React Native UI kit for SpaceDev applications, providing a collection of reusable components and utilities.
✨ Features
- 🎨 Modern and consistent design system
- 📱 Cross-platform components for iOS, Android and Web
- 🚀 Built with performance in mind
- 📦 Easy to integrate and use
- 🔧 Fully typed with TypeScript
- 🎯 Comprehensive component library
- 🌈 Theme support
- 📖 Well-documented components
📦 Installation
# Using npm
npm install @space-uy/pulsar-ui
# Using yarn
yarn add @space-uy/pulsar-ui
# Using pnpm
pnpm add @space-uy/pulsar-uiPeer Dependencies
This library requires the following peer dependencies to be installed in your project:
{
"@react-navigation/elements": "^2.3.8", // Required for navigation components
"lucide-react-native": "^0.503.0", // Required for icons
"react": "*", // Core React dependency
"react-native": "*", // Core React Native dependency
"react-native-gesture-handler": "^2.25.0", // Required for gesture interactions
"react-native-reanimated": "~3.16.1", // Required for animations
"react-native-svg": "^15.11.2" // Required for SVG support
}Installation
You can install all peer dependencies at once using:
# Using npm
npm install @react-navigation/elements@^2.3.8 lucide-react-native@^0.503.0 react-native-gesture-handler@^2.25.0 react-native-reanimated@~3.16.1 react-native-svg@^15.11.2
# Using yarn
yarn add @react-navigation/elements@^2.3.8 lucide-react-native@^0.503.0 react-native-gesture-handler@^2.25.0 react-native-reanimated@~3.16.1 react-native-svg@^15.11.2
# Using pnpm
pnpm add @react-navigation/elements@^2.3.8 lucide-react-native@^0.503.0 react-native-gesture-handler@^2.25.0 react-native-reanimated@~3.16.1 react-native-svg@^15.11.2Note: react and react-native are typically already installed in your React Native project, so you don't need to install them separately.
🚀 Quick Start
import { Button } from '@space-uy/pulsar-ui';
function MyApp() {
return (
<>
{/* Primary button */}
<Button text="Click me" onPress={() => console.log('Button pressed!')} />
{/* Outline button */}
<Button
text="Outline Button"
variant="outlined"
onPress={() => console.log('Outline button pressed!')}
/>
{/* Small button with icon */}
<Button
text="Small Button"
size="small"
iconName="Plus"
onPress={() => console.log('Small button pressed!')}
/>
</>
);
}🛠️ Development
Prerequisites
- Node.js (version specified in
.nvmrc) - Yarn (version 3.6.1 or later)
- React Native development environment set up
Setup
- Clone the repository:
git clone https://github.com/SpaceUY/pulsar-ui.git
cd @space-uy/pulsar-ui- Install dependencies:
yarn install- Start the example app:
yarn exampleAvailable Scripts
yarn example- Run the example appyarn test- Run testsyarn typecheck- Run TypeScript type checkingyarn lint- Run ESLintyarn clean- Clean build filesyarn prepare- Build the library
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details on how to submit pull requests, report issues, and more.
📄 License
MIT © SpaceDev
Made with create-react-native-library
