npm

Need private packages and team management tools?Check out npm Orgs. »

react-native-bpk-component-spinner

2.0.4 • Public • Published

react-native-bpk-component-spinner

Backpack React Native spinner component.

Installation

npm install react-native-bpk-component-spinner --save-dev

Usage

import React, { Component } from 'react';
import { View, StyleSheet, Text } from 'react-native';
import BpkSpinner from 'react-native-bpk-component-spinner';
import { spacingBase } from 'bpk-tokens/tokens/base.react.native';
 
const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    padding: spacingBase,
  }
});
 
export default class App extends Component {
  render() {
    return (
      <View style={styles.container}>
        <BpkSpinner />
        <BpkSpinner small />
        <BpkSpinner type="light" />
        <BpkSpinner type="dark" />
      </View >
    );
  }
}

Props

Property PropType Required Default Value
small bool false false
theme See Theme Props below false null
type oneOf('primary', 'light', 'dark') false primary

Theme Props

Primary

  • spinnerPrimaryColor

Keywords

none

install

npm i react-native-bpk-component-spinner

Downloadsweekly downloads

92

version

2.0.4

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability