Files
lnreader/src/components/LoadingScreenV2/LoadingScreenV2.tsx
T
Rajarshee Chatterjee d6b24a756d refactor: Reader
2022-03-13 16:31:16 +05:30

26 lines
555 B
TypeScript

import React from 'react';
import { StyleSheet, ActivityIndicator } from 'react-native';
import { Container } from '..';
import { ThemeTypeV1 } from '../../theme/v1/theme/types';
const LoadingScreen: React.FC<{ theme: ThemeTypeV1 }> = ({ theme }) => (
<Container>
<ActivityIndicator
size={50}
color={theme.colorAccent}
style={styles.indicator}
/>
</Container>
);
export default LoadingScreen;
const styles = StyleSheet.create({
indicator: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});