New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-animate-loading-button-remixed

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-animate-loading-button-remixed

Animated load button for React Native

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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

Try it with expo

Usage

import React, { PureComponent } from 'react';
import { View } from 'react-native';
import AnimateLoadingButton from 'react-native-animate-loading-button';

export default class LoadingButton extends PureComponent {
  _onPressHandler() {
    this.loadingButton.showLoading(true);

    // mock
    setTimeout(() => {
      this.loadingButton.showLoading(false);
    }, 2000);
  }

  render() {
    return (
      <View style={{ flex: 1, backgroundColor: 'rgb(255,255,255)', justifyContent: 'center' }}>
        <AnimateLoadingButton
          ref={c => (this.loadingButton = c)}
          width={300}
          height={50}
          title="BUTTON"
          titleFontSize={16}
          titleColor="rgb(255,255,255)"
          backgroundColor="rgb(29,18,121)"
          borderRadius={4}
          onPress={this._onPressHandler.bind(this)}
        />
      </View>
    );
  }
}

Properties

NAMEDESCRIPTIONTYPEREQUIRED
widthButton widthNumberYes
heightButton heightNumberYes
titleButton titleStringNo
titleColorButton title colorStringNo
titleFontFamilyButton title font familyStringNo
titleFontSizeButton title font sizeNumberNo
backgroundColorButton background colorStringNo
borderWidthButton border widthNumberNo
borderRadiusButton border radiusNumberNo
activityIndicatorColorActivity indicator colorStringNo
onPressButton onPress callbackFunctionYes

Author

Anderson Costa

License

MIT

Keywords

react

FAQs

Package last updated on 01 Jan 2019

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