Install
Install the package NPM:
$ npm i react-native-animate-loading-button --save
or install the package YARN:
yarn add react-native-animate-loading-button
Example
Demo
Usage
;;; { thisloadingButton; // mock ; } { return <View style= flex: 1 backgroundColor: 'rgb(255,255,255)' justifyContent: 'center' > <AnimateLoadingButton ref= thisloadingButton = c width=300 height=50 title="BUTTON" titleFontSize=16 titleColor="rgb(255,255,255)" backgroundColor="rgb(29,18,121)" borderRadius=4 onPress=this_onPressHandler /> </View> ; }
Properties
NAME | DESCRIPTION | TYPE | REQUIRED |
---|---|---|---|
width | Button width | Number | Yes |
height | Button height | Number | Yes |
title | Button title | String | No |
titleColor | Button title color | String | No |
titleFontFamily | Button title font family | String | No |
titleFontSize | Button title font size | Number | No |
backgroundColor | Button background color | String | No |
borderWidth | Button border width | Number | No |
borderRadius | Button border radius | Number | No |
activityIndicatorColor | Activity indicator color | String | No |
onPress | Button onPress callback | Function | Yes |
Author
License
MIT