Skip to content
/ mallaui Public

Reusable components for Expo and React Native inspired by shadcn

Notifications You must be signed in to change notification settings

ro-mgh/mallaui

Repository files navigation

malla UI

Reusable components for Expo and React Native projects inspired by shadcn-ui.

Documentation

https://mallaui.io/

Examples

Simulator Screenshot - iPhone 14 - 2024-01-07 at 18 09 35 Medium Simulator Screenshot - iPhone 14 - 2024-01-07 at 18 09 30 Medium

Simulator Screenshot - iPhone 14 - 2024-01-07 at 18 10 15 Medium Simulator Screenshot - iPhone 14 - 2024-01-07 at 18 10 13 Medium

Installation

Install malla ui system to your Expo or React Native CLI project

CLI

  1. This command will add the the styles config into your project in /styles folder.
npx mallaui@latest init
  1. Pass installed styles to your ThemeProvider in _layout (for Expo navigation) or App.tsx (for react-navigation in Expo and React Native CLI)
import {useTheme} from '../styles/useTheme';
import {ThemeProvider} from '@react-navigation/native';

...

function RootLayoutNav() {
  const {theme} = useTheme();

  return (
    <ThemeProvider value={theme.navigation}>
     ...
    </ThemeProvider>
  );
}
  1. After that you could add components to your project
npx mallaui@latest add Text

Components

  • Text
  • Button
  • Input
  • Switch
  • Checkbox
  • Radiogroup
  • Tabs

About

Reusable components for Expo and React Native inspired by shadcn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published