show animated activity indicator after the user presses the Play button #261
2 changed files with 8 additions and 3 deletions
|
@ -125,7 +125,10 @@ class FilePage extends React.PureComponent {
|
|||
'Are you sure you want to remove this file from your device?',
|
||||
[
|
||||
{ text: 'No' },
|
||||
{ text: 'Yes', onPress: () => { deleteFile(fileInfo.outpoint, true); } }
|
||||
{ text: 'Yes', onPress: () => {
|
||||
deleteFile(fileInfo.outpoint, true);
|
||||
this.setState({ downloadPressed: false, mediaLoaded: false });
|
||||
}}
|
||||
],
|
||||
{ cancelable: true }
|
||||
);
|
||||
|
|
|
@ -146,11 +146,13 @@ const filePageStyle = StyleSheet.create({
|
|||
paddingTop: 16,
|
||||
paddingBottom: 8,
|
||||
marginTop: -14,
|
||||
width: '50%',
|
||||
width: '100%',
|
||||
},
|
||||
actionButton: {
|
||||
alignSelf: 'flex-start',
|
||||
backgroundColor: Colors.White,
|
||||
width: 160
|
||||
paddingLeft: 24,
|
||||
paddingRight: 24
|
||||
},
|
||||
loading: {
|
||||
position: 'absolute',
|
||||
|
|
Loading…
Reference in a new issue