react-native-loading-controller
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-native-loading-controller

A customizable loading controller for react-native

Installation

npm install react-native-loading-controller

Usage

import { LoadingController } from 'react-native-loading-controller';
 
export default function App() {
    return (
        <View style={styles.container}>
            <Text>This is a demo of the LoadingController</Text>
            <LoadingController show={true} />
        </View>
    );
}

Props

 interface Props {
  show: boolean;
  loadingText?: string;
  backgroundOverlayColor?: string;
  backgroundColor?: string;
  indicatorSize?: "large" | "small";
  fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
  loadingPaddingView?: number;
  borderRadius?: number;
  loadingTextMargin?: string;
  indicatorColor?: string;
  loaderContentDirection?: "row" | "column" | "row-reverse" | "column-reverse";
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

/react-native-loading-controller/

    Package Sidebar

    Install

    npm i react-native-loading-controller

    Weekly Downloads

    6

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    19.5 kB

    Total Files

    15

    Last publish

    Collaborators

    • donswayo