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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@react-native-paper-abstracted/cli

v0.1.2

Published

React Native Paper Abstracted is a package that allows you to use only the components you need from [React Native Paper](https://reactnativepaper.com). Thus allowing users to keep their app size small, and provides endless customization.

Readme

React Native Paper Abstracted (RNPA)

Introduction

React Native Paper Abstracted (RNPA) is a package that allows you to use only the components you need from React Native Paper. This helps keep your app size small while providing endless customization options.


Installation

Using the CLI

The command-line interface (CLI) tool lets you set up and install components effortlessly.

npm install @react-native-paper-abstracted/cli
npx rnpa init

Manual Installation

RNPA can be used without installing the CLI tool.

npm i @callstack/react-theme-provider color react-native-safe-area-context

Navigate to the Explorer tab and add the following folders/files to your project while maintaining the correct file structure:

  • /core
  • /styles
  • /utils
  • /types.tsx
  • /constants.tsx

Non-Expo Projects

For non-Expo projects, install and link react-native-vector-icons (specifically, MaterialCommunityIcons):

npm install @react-native-vector-icons/material-icons
npm i @types/react-native-vector-icons

Expo Projects

If you use Expo, vector icons are already included. However, ensure your babel.config.js or .babelrc file (if they exist) includes babel-preset-expo:

.babelrc

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
};

babel.config.js

module.exports = function(api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
  };
};

How to Use

Using the CLI

To initialize the project, run:

npx rnpa init

To add components, use the add command followed by the component name:

npx rnpa add <component-name>

You can find available components and their commands in the Explorer tab.


Manual Usage

Visit the Explorer tab and copy the desired component.


Wrap your root layout with the PaperProvider component:

import { Stack } from 'expo-router';
import PaperProvider from '@/components/core/PaperProvider';

export default function RootLayout() {
  return (
    <PaperProvider>
      <Stack>
        <Stack.Screen name="index" options={{headerShown: false}}/>
      </Stack>
    </PaperProvider>
  );
}

Now, you can import and use components as usual:

import * as React from 'react';
import Button from '@/components/Button/Button';
import { View } from 'react-native';

const HomeScreen = () => (
  <View style={{ flexDirection: 'row', gap: 16, flexWrap: 'wrap' }}>
    <Button style={{ width: 'auto' }} mode="contained">
      Press me
    </Button>  
  </View>
);

export default HomeScreen;