Skip to content

Instantly share code, notes, and snippets.

@Pasi-D
Last active April 27, 2021 17:59
Show Gist options
  • Save Pasi-D/2ad11ffaa3a3004df1e0d5672c17a114 to your computer and use it in GitHub Desktop.
Save Pasi-D/2ad11ffaa3a3004df1e0d5672c17a114 to your computer and use it in GitHub Desktop.
Medium Demo - Indicator Atom
/**
* Loading spinner component
*/
import React, { FC } from "react";
import { ActivityIndicator, View } from "react-native";
import useStyles from "./Indicators.style";
import { useThemeContext } from "themes";
interface IProgressIndicatorProps {}
const ProgressIndicator: FC<IProgressIndicatorProps> = () => {
const { theme } = useThemeContext();
const styles = useStyles(theme);
return (
<View style={styles.spinnerContainer}>
<ActivityIndicator color="#FFFFFF" size="large" />
</View>
);
};
export default ProgressIndicator;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment