Skip to content

DonsWayo/react-native-loading-controller

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published