Getting Started with Papillon UI
Learn how to set up Papillon UI in your React Native project.Prerequisites
Before you begin, ensure you have:- Node.js 16 or later
- React Native project (Expo or bare React Native)
- Basic knowledge of React and TypeScript
Installation
Papillon UI is part of the Papillon monorepo. To use it in your project, you’ll need to install the required dependencies.Basic Usage
Typography
The Typography component is the foundation for all text in Papillon UI:Buttons
Buttons come in multiple variants:Lists and Items
Create beautiful lists with automatic borders and padding:Theme Integration
Papillon UI automatically adapts to your React Navigation theme:TypeScript Support
All components include full TypeScript definitions:Performance Tips
Use memoization for lists
Use memoization for lists
When rendering large lists, wrap list items in
React.memo to prevent unnecessary re-renders:Disable animations when needed
Disable animations when needed
For very long lists, consider disabling animations:
Use skeleton states
Use skeleton states
Show skeleton loaders while data is loading:
Next Steps
Button
Learn about all button variants and props
List
Master list layouts and item composition
Typography
Explore the typography system
Course
Display timetable courses

