react-native-molecules
v0.5.0-beta.14
Published
React Native Molecules ================
Readme
React Native Molecules
Why React Native Molecules?
- High performance – built on top of
react-native-unistyles, with CSS variables on the web. - Modular & lightweight – no barrel files, self-registerable components, and optional peer deps.
- Fully customizable – swap internal implementations or override styles using your own tokens.
- Unified design – ships with Material 3 light/dark themes out-of-the-box.
Quick start
import { Button } from 'react-native-molecules/components/Button';
export function MyComponent() {
return <Button onPress={() => console.log('Pressed!')}>Click me</Button>;
}Installation overview
Refer to
docs/docs/getting-started/installation.mdxfor the full walkthrough.
- Prerequisites
- React Native New Architecture (Fabric)
- React 19 or higher
- Install the package
(npm and yarn examples are in the docs; pnpm is recommended for the monorepo.)pnpm add react-native-molecules - Add peer dependencies
Required:
Optional per-component deps, e.g.pnpm add react-native-unistylesFilePickerrequires@react-native-documents/picker. - Configure fonts & icons (web)
- Copy
MaterialDesignIcons.ttffrom@react-native-vector-icons/material-design-icons/Fonts/into your public assets. - Register the font via
@font-face.
- Copy
- Register Unistyles themes
Set upStyleSheet.configurewith provided MD3 light/dark themes and your breakpoints for typed theme access. - Wrap with
PortalProvider(optional)
Needed for components that render inside portals (e.g.,Popover,Tooltip,Menu,Modal).
Next steps
- Read
docs/docs/getting-started/introduction.mdxfor an overview of the component catalog, hooks, and customization guides. - Follow the Installation guide above to wire up peer dependencies, fonts, and theming.
- Explore the rest of the docs to dive into components, hooks, and utilities. Each entry includes prop tables, behavior notes, and playground examples.
Contributing
We welcome issues and pull requests. Please ensure any new component stories and docs accompany your changes so they appear in the React Native Molecules docs site.
