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

react-native-simple-components

v2.2.3

Published

A collection of simple, reusable react-native components

Downloads

38

Readme

react-native-simple-components

Build Status

A collection of simple, customisable reusable react-native components with a decent amount of functionality out of the box.

Important: A number of components have been removed from the V2 release in favour of better supported external libraries. Please see the CHANGELOG for further changes.

Installation

yarn add react-native-simple-components

react-native-vector-icons is a dependency. You will need to set it up as per the following link (unless you plan to pass in custom icon components).

Importing

import { HeaderBar } from 'react-native-simple-components';

Usage

See the source code for props. NOTE: Pass in Material icon names where applicable. ANOTHER NOTE: These components were created with the thought that the component's container should control a component's layout.

import React from 'react';
import { View } from 'react-native';
import { HeaderBar } from 'react-native-simple-components';

class Home extends React.Component {
    render() {
        return (
            <View style={{flex: 1}}>
                <HeaderBar
                    showShadow
                    statusBarStyle='light-content' // or dark-content
                    statusBarColor='rgba(0,0,0,0.67)'

                    leftIconName='menu'
                    leftComponent={null} // pass in custom component
                    handleLeftIconPress={/* some function */}
                    leftIconStyle={null}

                    textComponent={null} // pass in custom component
                    text='Eazy Peezy'
                    textLeft={false} // align text to the left (useful if you don't want a left icon)
                    textRight={false} // align text to the right (useful if you don't want a right icon)
                    handleTextPress={/* some function */)}
                    textStyle={null} // style fonts here

                    rightComponent={null} // pass in custom component
                    rightIconName='search'
                    handleRightIconPress={/* some function */}
                    rightIconStyle={null}

                    style={null} // set backgroundColor, height etc here
                />
            </View>
        )
    }
}

Components

  • [x] ActionSheet - A JS action sheet that accepts text and iconName options.
  • [x] Button - A button that accepts text and an optional icon.
  • [x] ButtonIcon - A round button that contains an icon.
  • [x] CheckBox - A nice and simple checkbox component.
  • [x] DeleteButton - A small close button (used internally).
  • [x] HeaderBar - A header component that accepts status bar styles, text and left and right icons.
  • [x] IconTextRow - A row with icon and text justified with space-between
  • [x] InfoBlock - A common title and description patterned component.
  • [x] Label - An icon and text label component.
  • [x] Loader - A thin line loader that animates left to right in a loop.
  • [x] LoadingText - An animating loading component that represents a data fetch on text.
  • [x] NotificationIcon - A small notification type icon that contains a count value.
  • [x] Page - A component that acts as a page wrapper for your scenes. Has a few helper props.
  • [x] RotatingChevron - A rotating chevron.
  • [x] SmartImage - An image component that displays an ActivityIndicator while fetching images or a offline icon if offline or an error icon if error
  • [x] StarRating - Renders a row of outlined or filled stars based on rating prop. Will pass back the pressed rating.
  • [x] StatusBar - Android and iOS friendly status bar (used internally).
  • [x] TabBar - A tab bar that accepts icons and label text.
  • [x] Touchable - A touchable component that renders the android ripple effect if specified and if on an Android device (used internally).

Demo

  1. Clone the repo.
git clone https://github.com/AuxStudio/react-native-simple-animators
  1. Install dependencies:
cd demo && yarn
  1. Run the demo
react-native run-ios

Development

  1. Clone the repo.
git clone https://github.com/AuxStudio/react-native-simple-animators
  1. Install dependencies:
yarn
  1. Follow our process.

NOTE: Make sure that your tests are passing before submitting your PR:

yarn test