A customizable loading controller for react-native
npm install react-native-loading-controller
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>
);
}
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";
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT