GithubHelp home page GithubHelp logo

wrathchaos / react-native-empty-state Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 1.0 1013 KB

Empty State library which is fully customizable and simple for any state view use-cases

Home Page: https://freakycoder.com

JavaScript 8.94% Starlark 3.26% Java 33.61% Ruby 4.13% Objective-C 23.95% TypeScript 26.11%
react-native reactjs react react-native-component empty empty-state state state-view android ios

react-native-empty-state's Introduction

React Native Empty State

Empty State library which is fully customizable and simple for any state view use-cases

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Empty State

Installation

Add the dependency:

npm i @freakycoder/react-native-empty-state

Peer Dependencies

IMPORTANT! You need install them
"@freakycoder/react-native-bounceable": ">= 0.2.2",

Usage

Import

import EmptyState from "@freakycoder/react-native-empty-state";

Fundamental Usage

<EmptyState
  enableButton
  buttonText="Refresh"
  imageSource={emptyStateImage}
  title="Opps! Anything here :("
  description="We cannot find anything here, try again sometime"
/>

Example Project ๐Ÿ˜

You can checkout the example project ๐Ÿฅฐ

Simply run

  • npm i
  • react-native run-ios/android

should work of the example project.

Configuration - Props

Fundamentals

Property Type Default Description
title string undefined change the title
description string undefined change the description

Customization (Optionals)

Property Type Default Description
enableButton boolean false let you enable the button (must use it for button)
onPress function undefined set your own logic for the button functionality when it is pressed
buttonText string undefined change the button's text
style ViewStyle default set or override the style object for the main container
buttonStyle ViewStyle default set or override the style object for the button style
titleTextStyle TextStyle default set or override the style object for the title text style
buttonTextStyle TextStyle default set or override the style object for the button's text style
descriptionTextStyle TextStyle default set or override the style object for the description text style
containerGlueStyle ViewStyle default set or override the style object for the container glue style
descriptionContainerStyle ViewStyle default set or override the style object for the description container style
imageStyle ImageStyle default set or override the style object for the image style
ImageComponent Image default set your own component instead of default react-native Image component

Future Plans

  • LICENSE

Author

FreakyCoder, [email protected]

License

React Native Empty State is available under the MIT license. See the LICENSE file for more info.

react-native-empty-state's People

Contributors

wrathchaos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

agunnamdi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.