Socket
Book a DemoInstallSign in
Socket

rn-loading-button

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-loading-button

Customizable button with loader

latest
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

React Native Loading Button

A customizable button for react-native with loader option(s) which works on Android and iOS.

Installation

Run npm i --save rn-loading-button

Usage

Import
import LoadingButton from "rn-loading-button";
Code
<LoadingButton
  containerStyle={{}}
  isImage={false}
  label={"Button"}
  loading={false}
  mode={"solid"}
  onPress={() => {}}
  renderImage={() => {}}
  textStyle={{}}
  touchable={false}
/>

Properties

PropertyTypeDefault ValueDescription
containerStyleObject{}Customizable style property for button container
isImageBooleanfalseProperty for showing icon or image inside the button
labelString"Button"Property for labeling the button
loadingBooleanfalseProperty for showing loader inside the button
modeString"solid"Property for showing different button modes (light, outlined and solid)
onPressFunction()=>{}Property for triggering an action once the button is pressed
renderImageFunction()=>{}Property for rendering an icon or an image inside the button if isImage={true}
textStyleObject{}Customizable style property for button text
touchableBooleanfalseProperty for enabling touchable to the button

License

ISC

Keywords

button

FAQs

Package last updated on 14 Jun 2022

Did you know?

Socket

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