Last active
April 27, 2021 17:59
-
-
Save Pasi-D/2ad11ffaa3a3004df1e0d5672c17a114 to your computer and use it in GitHub Desktop.
Medium Demo - Indicator Atom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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