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

@eddiejibson/react-native-elements

v1.8.3

Published

React Native Frontend Library to be used inside Chelsea Apps Mobile applications.

Downloads

2

Readme

react-native-elements

A react native framework for building Chelsea Apps cross platform mobile applications.

Getting started

This library should be already part of the react-native-starter, our starting point for mobile applications, but in case it isn't simply run:

npm install @chelseaapps/react-native-elements

Once the package is installed, make sure it's using the latest version and inside the src/common/elements you should have folders for each of the components that are part of this package.

Example:

/elements/Input/index.tsx
/elements/Icon/index.tsx
...

These local files are Styled wrappers for the components included in the package. They are the ones that are actually going to be imported throughout the project.

/elements/Input/index.tsx:

import React from 'react';
import {
	Input as InputElement,
	InputProps as InputElementProps,
} from '@chelseaapps/react-native-elements';

const Input = ({ ...props }: InputElementProps) => <InputElement {...props} />;

export default Input;

Updating the library

In order to update the library with some new functionality there is a checklist that needs to followed thoroughly:

  • git clone react-native-elements project locally
  • Add the necessary changes (shouldn't be more than props at this stage)
  • Using jsDocs, document your new changes
  • Update the docs by running npx typedoc --out docs src/index.tsx
  • Increase the version by one where x is in case: 1.x if your change is an addition or 1.11.x if your change is a bug fix.
  • Publish the new version of the package using npm publish
  • View your new version at App Registry

## Adding a new component

Adding a new component should follow the same steps as updating the library but before cloning the library and updating it, the component should be created either inside the current project or inside the react-native-starter in order for the changes to be seen.

Considerations to keep in mind when creating a new component:
  • Should be created with global usage in mind
  • A lot of use cases should be taken into consideration and the functionality should be available through props
  • Customisability is a must have and the component should have props available for styling as much of it as possible

Advanced Usage

Advanced usage refers to a case where you want a specific component to do a specific action. Here's a full list of props for any Element:

The general rule of thumb is that components/elements/ should be minimalistic files which contain only styling props if possible, while locally should sit all the other props that you might need.

In the rare case where a component requires some additional functionality you will have to Update the library globally.