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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ci-rn-kit

v1.0.11

Published

React Native toolkit with reusable components

Downloads

769

Readme

ci-rn-kit

A React Native toolkit with reusable components, built to streamline development and enhance productivity in React Native applications.

Table of Contents

•	Installation
•	Usage
•	Available Components
•	Development
•	Contributing
•	License

Installation

To install the toolkit, use npm:

npm install ci-rn-kit

Ensure that react and react-native are also installed in your project, as they are peer dependencies:

npm install react react-native

Usage

After installation, import the components into your React Native project as needed.

Example

Here’s a quick example using the Button component: import React from 'react'; import { View } from 'react-native'; import { Button } from 'ci-rn-kit';

const App = () => { return ( <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> <Button title="Click Me" onPress={() => alert('Button Pressed!')} /> ); };

export default App;

Available Components

This toolkit includes the following components:

1.	Button
•	A customizable button component.
•	Props: title, onPress.
2.	TextInput
•	A styled text input component.
•	Props: Inherits all native TextInput props from React Native.
3.	Onboarding
•	A swipable onboarding component with customizable pages.
•	Props: pages (array of { title: string, description: string }).
4.	ProgressBar
•	A progress bar to indicate progress visually.
•	Props: progress, height, backgroundColor, progressColor.
5.	Card
•	A container with a shadow and padding for displaying content blocks.
•	Props: children, style.
6.	Avatar
•	A circular image component, ideal for profile pictures.
•	Props: source, size.
7.	Badge
•	A small, customizable notification badge.
•	Props: count, color.
8.	Checkbox
•	A simple checkbox with an optional label.
•	Props: checked, label, onToggle.
9.	Switch
•	A toggle switch component.
•	Props: value, onValueChange, trackColor.
10.	Modal
•	A customizable modal component.
•	Props: visible, onRequestClose, children.

Development

Running the Project Locally

To develop and test the toolkit locally:

1.	Clone the repository.
2.	Install dependencies:

npm install

3.	Run the TypeScript and Babel build processes:
npm run prepare

Testing the Package

If you want to test your changes in a separate project, use npm link:

1.	In the toolkit root directory, link the package:

npm link

2.	In your test project, link the package:

npm link ci-rn-kit


Scripts

•	npm run build: Compiles the source code using Babel.
•	npm run build:types: Generates type declarations using TypeScript.
•	npm run prepare: Runs both build and build:types.
•	npm run lint: Lints the source code using ESLint.
•	npm run format: Formats the source code with Prettier.

Contributing

Contributions are welcome! If you would like to contribute:

1.	Fork the repository.
2.	Create a new branch (git checkout -b feature/my-feature).
3.	Commit your changes (git commit -m 'Add feature').
4.	Push to the branch (git push origin feature/my-feature).
5.	Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.