Skip to content

Commit

Permalink
[not verified] Show loading state when fetching video metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Mar 13, 2023
1 parent e507af8 commit 64537c9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { isURL, getProtocol, addQueryArgs } from '@wordpress/url';
/**
* External dependencies
*/
import { View, TouchableWithoutFeedback, Text } from 'react-native';
import { ActivityIndicator, View, TouchableWithoutFeedback, Text } from 'react-native';
/**
* Internal dependencies
*/
Expand Down Expand Up @@ -344,7 +344,8 @@ class VideoPressEdit extends Component {
),
} }
>
{ videoContainerHeight > 0 && iconContainer }
{ videoContainerHeight > 0 &&
( isLoadingMetadata ? <ActivityIndicator /> : iconContainer ) }
{ isUploadFailed && (
<Text style={ style.uploadFailedText }>{ retryMessage }</Text>
) }
Expand Down

0 comments on commit 64537c9

Please sign in to comment.