diff --git a/src/components/FullscreenLoadingIndicator.js b/src/components/FullscreenLoadingIndicator.js deleted file mode 100644 index 42be33ef3843..000000000000 --- a/src/components/FullscreenLoadingIndicator.js +++ /dev/null @@ -1,33 +0,0 @@ -import React from 'react'; -import {ActivityIndicator, StyleSheet, View} from 'react-native'; -import _ from 'underscore'; -import stylePropTypes from '@styles/stylePropTypes'; -import styles from '@styles/styles'; -import themeColors from '@styles/themes/default'; - -const propTypes = { - /** Additional style props */ - style: stylePropTypes, -}; - -const defaultProps = { - style: [], -}; - -function FullScreenLoadingIndicator(props) { - const additionalStyles = _.isArray(props.style) ? props.style : [props.style]; - return ( - - - - ); -} - -FullScreenLoadingIndicator.propTypes = propTypes; -FullScreenLoadingIndicator.defaultProps = defaultProps; -FullScreenLoadingIndicator.displayName = 'FullScreenLoadingIndicator'; - -export default FullScreenLoadingIndicator; diff --git a/src/components/FullscreenLoadingIndicator.tsx b/src/components/FullscreenLoadingIndicator.tsx new file mode 100644 index 000000000000..b4483d2e0113 --- /dev/null +++ b/src/components/FullscreenLoadingIndicator.tsx @@ -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; +}; + +function FullScreenLoadingIndicator({style}: FullScreenLoadingIndicatorProps) { + return ( + + + + ); +} + +FullScreenLoadingIndicator.displayName = 'FullScreenLoadingIndicator'; + +export default FullScreenLoadingIndicator;