Skip to content

Commit

Permalink
Merge pull request #29988 from software-mansion-labs/ts-migration/Ful…
Browse files Browse the repository at this point in the history
…lscreenLoadingIndicator

[TS migration] Migrate 'FullscreenLoadingIndicator.js' component to TypeScript
  • Loading branch information
AndrewGable authored Nov 2, 2023
2 parents b33ac36 + 0fd6982 commit a2bd366
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/components/FullscreenLoadingIndicator.js

This file was deleted.

23 changes: 23 additions & 0 deletions src/components/FullscreenLoadingIndicator.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';
import {ActivityIndicator, StyleProp, StyleSheet, View, ViewStyle} from 'react-native';
import styles from '@styles/styles';
import themeColors from '@styles/themes/default';

type FullScreenLoadingIndicatorProps = {
style?: StyleProp<ViewStyle>;
};

function FullScreenLoadingIndicator({style}: FullScreenLoadingIndicatorProps) {
return (
<View style={[StyleSheet.absoluteFillObject, styles.fullScreenLoading, style]}>
<ActivityIndicator
color={themeColors.spinner}
size="large"
/>
</View>
);
}

FullScreenLoadingIndicator.displayName = 'FullScreenLoadingIndicator';

export default FullScreenLoadingIndicator;

0 comments on commit a2bd366

Please sign in to comment.