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

@mujohn/ui

v0.1.3

Published

Reusable React Native UI toolkit with components, hooks, utilities, and theme support.

Readme

@mujohn/ui

Reusable React Native UI library with typed components, hooks, utilities, and theme support.

Install

npm install @mujohn/ui

Install required peer packages:

npm install react react-native @react-native-async-storage/async-storage @react-native-clipboard/clipboard react-native-raw-bottom-sheet react-native-reanimated react-native-render-html react-native-safe-area-context react-native-toast-message react-native-vector-icons react-native-walkthrough-tooltip

If you use react-native-reanimated, make sure your app has the Reanimated Babel plugin configured in babel.config.js.

Android Setup

If you use AppIcon or any component that depends on react-native-vector-icons, add this line in android/app/build.gradle:

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

File path:

android/app/build.gradle

Import Example

import {
  AppCountryCodePicker,
  AppDropdown,
  AppHeader,
  AppIcon,
  AppInput,
  AppRBSheet,
  AppText,
  AppTooltip,
} from '@mujohn/ui';

Quick Usage

AppIcon

<AppIcon type="AntDesign" name={'checkcircle'} size={20} color="#26356E" />

AppInput Default

<AppInput
  placeholder="Search Country"
  value={searchQuery}
  onChangeText={(txt) => onChangeSearch(txt)}
  leftIcon={<AppIcon type="Feather" name="search" size={20} color="#26356E" />}
/>

AppInput Phone

<AppInput
  value={phoneNumber}
  returnKeyType="done"
  inputBg="#FFFFFF"
  onChangeText={handleChange}
  translatePlaceholder="translate.phone_placeholder"
  keyboardType="phone-pad"
  error={errors?.phoneNumber}
  isPhoneInput
  leftIcon={
    <AppCountryCodePicker
      phoneField="phoneCode"
      setPhoneCode={handleChange}
      isCodeVisible
    />
  }
/>

AppDropdown

const Options: any[] = [
  { _id: 0, label: 'Option 1' },
  { _id_: 1, label: 'Option 2' },
];

<AppDropdown
  label="Choose Network"
  data={Options}
  placeholder="Select Network"
  value={stateVal || 'Select Network'}
  onPress={handleDropdown}
/>;

AppHeader

<AppHeader
  left={{ icon: { name: 'chevron-back', type: 'Ionicons' } }}
  title="wallet.title"
  right1={{ child: <View style={{ width: 40 }} /> }}
/>

AppTopTab

<AppTopTab
  options={[
    { key: 'personal', label: 'Individual' },
    { key: 'business', label: 'Business' },
  ]}
  value={formData.accountType}
  onChange={(key) => handleChange('accountType', key)}
/>

AppRBSheet

const sheetRef = useRef<RBSheetRefProps>(null);

<AppRBSheet ref={sheetRef} label="Title">
  <AppText>Select your preferred fiat currency</AppText>
</AppRBSheet>;

AppToast

AppToast.show({
  message: 'Profile updated successfully',
  type: 'success',
});
AppToast.showMsg('Profile updated successfully', 'success');

AppTooltip

<AppTooltip visible={true} content="AppTooltip Title">
  <AppIcon
    name="info"
    type="Feather"
    size={18}
    color="#666666"
    onPress={() => {}}
  />
</AppTooltip>

Example App Setup

import React from 'react';
import { SafeAreaView } from 'react-native';
import Toast from 'react-native-toast-message';
import {
  ThemeProvider,
  AppAlertProvider,
  AlertHost,
  AppButton,
  AppCard,
  AppInput,
  AppText,
  toastConfig,
} from '@mujohn/ui';

export function App() {
  return (
    <ThemeProvider>
      <SafeAreaView style={{ flex: 1, padding: 16 }}>
        <AppAlertProvider>
          <AppCard>
            <AppText variant="title">JohnCreation UI</AppText>
            <AppInput label="Email" placeholder="[email protected]" />
            <AppButton title="Continue" />
          </AppCard>
          <AlertHost />
          <Toast config={toastConfig} />
        </AppAlertProvider>
      </SafeAreaView>
    </ThemeProvider>
  );
}

Included Modules

Components

  • AlertHost
  • AppAlert
  • AppAvatar
  • AppBottomButton
  • AppBottomSheet
  • AppButton
  • AppCard
  • AppCountryCodePicker
  • AppDatePicker
  • AppDropdown
  • AppHeader
  • AppIcon
  • AppInput
  • AppLoader
  • AppLogo
  • AppModal
  • AppMoment
  • AppName
  • AppOTP
  • AppPlayerControls
  • AppProgressBar
  • AppRBSheet
  • AppRenderHTML
  • AppSafeArea
  • AppStatusBar
  • AppSwitch
  • AppTabBar
  • AppText
  • AppTextLogoScreen
  • AppTimer
  • AppToast
  • AppTooltip
  • AppTopTab
  • AppUnderMaintenanceScreen

Hooks

  • useTheme()
  • useDebounce()
  • useCountdown()
  • useKeyboard()
  • usePagination()

Utilities

  • formatCurrency()
  • formatDate()
  • responsiveSize()
  • validateEmail()
  • storage

Friendly Guide

  1. Install @mujohn/ui and the peer packages.
  2. Add the vector icons font line to android/app/build.gradle.
  3. Import components from @mujohn/ui.
  4. Use AppInput for normal and phone inputs.
  5. Use AppDropdown, AppTopTab, and AppRBSheet for selection flows.
  6. Use AppTooltip and AppToast for helper UI and notifications.
  7. Mount Toast with toastConfig in your app root if you use toast messages.

Publish Flow

cd JohnCreation
npm install
npm run release:check
npm run pack:ui
npm run publish:ui