npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mui-native

v0.4.2

Published

mui-native — Material Design 3 component library for React Native

Readme

mui-native

Material Design 3 component library for React Native.

mui-native provides a complete, themeable, production-ready UI foundation for React Native — with strict TypeScript, unit tests, Material Design components, and React Native primitive wrappers.

mui-native hero


Table of Contents


Why mui-native

  • Material Design 3 for React Native, ready to use out of the box.
  • Centralized, stable public API exported from a single package entry point.
  • Cross-platform theme presets (Android / iOS / Web).
  • Unit test coverage across critical components.
  • Built-in integration with react-native-reanimated and react-native-gesture-handler.

What's New — April 2026

  • Added missing React Native primitives: View, Pressable, TextInput, Image, ImageBackground, ScrollView, FlatList, SectionList, VirtualizedList, RefreshControl, SafeAreaView, KeyboardAvoidingView, DrawerLayoutAndroid, TouchableOpacity, TouchableHighlight.
  • Added new Material Design components: NavigationRail, SwipeableDrawer.
  • Added platform-specific theme presets with design token synchronization.
  • Expanded unit tests and accessibility coverage.

Architecture

mui-native architecture


Installation

installation flow

npm install mui-native

Peer Dependencies

npm install react-native react-native-reanimated react-native-gesture-handler

Quick Start

import { ThemeProvider, Button, Text } from 'mui-native';

export default function App() {
  return (
    <ThemeProvider>
      <Button onPress={() => console.log('pressed')}>
        <Text>Hello mui-native</Text>
      </Button>
    </ThemeProvider>
  );
}

Theming

theme presets

import { ThemeProvider, createTheme, NovaTheme } from 'mui-native';

const theme = createTheme({
  ...NovaTheme,
  mode: 'dark',
  colorScheme: {
    primary: '#6750A4',
  },
});

export default function App() {
  return <ThemeProvider theme={theme}>{/* app */}</ThemeProvider>;
}

Available Presets

PureTheme, BeautifulTheme, PencilTheme, AuroraTheme, BreezeTheme, NovaTheme, PulseTheme


Code Examples

code examples

Controlled NavigationRail

import { useState } from 'react';
import { NavigationRail } from 'mui-native';

const items = [
  { value: 'home', label: 'Home', icon: 'home' },
  { value: 'search', label: 'Search', icon: 'search' },
  { value: 'settings', label: 'Settings', icon: 'settings' },
];

export function RailExample() {
  const [value, setValue] = useState('home');

  return (
    <NavigationRail
      items={items}
      value={value}
      onChange={setValue}
      ariaLabel="Main navigation"
    />
  );
}

Temporary SwipeableDrawer

import { useState } from 'react';
import { Button, SwipeableDrawer, Text, Box } from 'mui-native';

export function DrawerExample() {
  const [open, setOpen] = useState(false);

  return (
    <>
      <Button onPress={() => setOpen(true)}>
        <Text>Open drawer</Text>
      </Button>

      <SwipeableDrawer
        open={open}
        onClose={() => setOpen(false)}
        onOpen={() => setOpen(true)}
        anchor="left"
      >
        <Box sx={{ p: 2 }}>
          <Text>Drawer content</Text>
        </Box>
      </SwipeableDrawer>
    </>
  );
}

Simple Form with TextInput

import { useState } from 'react';
import { Box, Button, Text, TextInput } from 'mui-native';

export function FormExample() {
  const [email, setEmail] = useState('');

  return (
    <Box sx={{ gap: 2, p: 2 }}>
      <TextInput
        placeholder="[email protected]"
        value={email}
        onChangeText={setEmail}
        keyboardType="email-address"
      />
      <Button disabled={!email.includes('@')}>
        <Text>Submit</Text>
      </Button>
    </Box>
  );
}

Snackbar via Hook

import { Button, SnackbarHost, Text, useSnackbar } from 'mui-native';

function SaveButton() {
  const { showSnackbar } = useSnackbar();

  return (
    <Button onPress={() => showSnackbar('Settings saved')}>
      <Text>Save</Text>
    </Button>
  );
}

export function SnackbarExample() {
  return (
    <>
      <SaveButton />
      <SnackbarHost />
    </>
  );
}

View Examples

view layout

Page Layout with View

import { View, Text } from 'mui-native';

export function ViewLayoutExample() {
  return (
    <View style={{ flex: 1, padding: 16, gap: 12 }}>
      <View style={{ height: 64, borderRadius: 12, backgroundColor: '#1d4ed8', justifyContent: 'center', paddingHorizontal: 12 }}>
        <Text style={{ color: 'white' }}>Header</Text>
      </View>

      <View style={{ flexDirection: 'row', gap: 12, flex: 1 }}>
        <View style={{ flex: 2, borderRadius: 12, backgroundColor: '#0f172a', padding: 12 }}>
          <Text style={{ color: 'white' }}>Content area</Text>
        </View>
        <View style={{ flex: 1, borderRadius: 12, backgroundColor: '#334155', padding: 12 }}>
          <Text style={{ color: 'white' }}>Aside</Text>
        </View>
      </View>
    </View>
  );
}

view cards

Composite Card Pattern with View

import { View, Text, Button } from 'mui-native';

export function ViewCardExample() {
  return (
    <View style={{ padding: 16 }}>
      <View
        style={{
          borderRadius: 16,
          backgroundColor: '#0f172a',
          padding: 16,
          gap: 10,
        }}
      >
        <Text style={{ color: '#93c5fd', fontSize: 18 }}>Analytics card</Text>
        <Text style={{ color: '#cbd5e1' }}>A lightweight card built only with View blocks.</Text>
        <Button>
          <Text>Open details</Text>
        </Button>
      </View>
    </View>
  );
}

Component Catalog

Layout & Structure

Box, View, Container, Stack, Grid, GridItem, Paper, Surface, Divider, ScrollView, FlatList, SectionList, VirtualizedList, SafeAreaView, KeyboardAvoidingView, RefreshControl

Navigation

AppBar, NavigationBar, NavigationRail, Tabs, TabPanel, Drawer, SwipeableDrawer, DrawerLayoutAndroid, BottomSheet, Breadcrumbs, Link, Menu, MenuItem

Actions & Buttons

Button, ButtonGroup, IconButton, FAB, ToggleButton, ToggleButtonGroup, SpeedDial, Pressable, TouchableRipple, TouchableOpacity, TouchableHighlight

Inputs & Forms

TextField, TextInput, NumberField, Searchbar, Select, Autocomplete, Checkbox, RadioButton, Radio, RadioGroup, Switch, Slider, SegmentedButtons, DatePicker, TimePicker, DateTimePicker, LocalizationProvider, IntlDateAdapter, useLocalization

Display & Media

Text, Typography, HelperText, Avatar, AvatarGroup, Badge, Chip, Icon, MaterialIcon, materialIconSource, Image, ImageBackground, ImageList, ImageListItem, Skeleton, Rating, ActivityIndicator

Data, Overlays & Utilities

DataTable, DataGrid, useGridApiRef, Snackbar, SnackbarHost, useSnackbar, Dialog, Modal, Portal, PortalHost, Popover, Popper, Tooltip, Accordion, Stepper, Pagination, Timeline, SimpleTreeView, BarChart, LineChart, Masonry

Global Import Example

import {
  ThemeProvider,
  NovaTheme,
  Button,
  Text,
  DataGrid,
  DatePicker,
  Snackbar,
  NavigationRail,
  SwipeableDrawer,
} from 'mui-native';

Local Development

npm install
npm run lint
npm test

To run specific tests:

npx jest --testPathPattern="NavigationRail|SwipeableDrawer" --no-coverage

Quality

quality pipeline

  • TypeScript 5 strict mode enforced across the entire library.
  • Centralized public API with consistent exports.
  • Per-component unit tests and theme integration tests.
  • Overlay components tested with Portal and PortalHost.

Requirements

  • React Native >= 0.73
  • React >= 18
  • react-native-reanimated >= 3.0
  • react-native-gesture-handler >= 2.0
  • TypeScript >= 5.0 (recommended)

License

MIT