1.0.9 • Published 3 years ago

rn-loading-button v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago