Socket
Socket
Sign inDemoInstall

@freakycoder/react-native-empty-state

Package Overview
Dependencies
514
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @freakycoder/react-native-empty-state

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


Version published
Weekly downloads
5
increased by400%
Maintainers
1
Install size
31.3 kB
Created
Weekly downloads
 

Readme

Source
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

PropertyTypeDefaultDescription
titlestringundefinedchange the title
descriptionstringundefinedchange the description

Customization (Optionals)

PropertyTypeDefaultDescription
enableButtonbooleanfalselet you enable the button (must use it for button)
onPressfunctionundefinedset your own logic for the button functionality when it is pressed
buttonTextstringundefinedchange the button's text
styleViewStyledefaultset or override the style object for the main container
buttonStyleViewStyledefaultset or override the style object for the button style
titleTextStyleTextStyledefaultset or override the style object for the title text style
buttonTextStyleTextStyledefaultset or override the style object for the button's text style
descriptionTextStyleTextStyledefaultset or override the style object for the description text style
containerGlueStyleViewStyledefaultset or override the style object for the container glue style
descriptionContainerStyleViewStyledefaultset or override the style object for the description container style
imageStyleImageStyledefaultset or override the style object for the image style
ImageComponentImagedefaultset your own component instead of default react-native Image component

Future Plans

  • LICENSE

Author

FreakyCoder, kurayogun@gmail.com

License

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

Keywords

FAQs

Last updated on 30 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc