2.2.3 • Published 6 years ago

react-native-simple-components v2.2.3

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

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

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

6 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.14

7 years ago

2.0.13

7 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.2.26

7 years ago

1.2.25

7 years ago

1.2.24

7 years ago

1.2.23

7 years ago

1.2.22

7 years ago

1.2.21

7 years ago

1.2.20

7 years ago

1.2.19

7 years ago

1.2.18

7 years ago

1.2.17

7 years ago

1.2.16

7 years ago

1.2.15

7 years ago

1.2.14

7 years ago

1.2.13

7 years ago

1.2.12

7 years ago

1.2.11

7 years ago

1.2.10

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.12

7 years ago

1.1.11

8 years ago

1.1.10

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago