message loader
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { View } from "react-native";
|
||||
|
||||
import { LoaderIndicator } from "../providers/LoadingProvider";
|
||||
|
||||
export default ({
|
||||
message,
|
||||
defaultMessage = "Chargement...",
|
||||
containerStyle = {},
|
||||
indicatorProps = {},
|
||||
messageStyle = {},
|
||||
}) => {
|
||||
return (
|
||||
<View
|
||||
style={[
|
||||
{
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
containerStyle,
|
||||
]}
|
||||
>
|
||||
<LoaderIndicator
|
||||
message={message}
|
||||
defaultMessage={defaultMessage}
|
||||
messageStyle={messageStyle}
|
||||
indicatorProps={indicatorProps}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user