Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. export class LoaderAPI extends Component {
  2.  
  3. render() {
  4. const {
  5. loading,
  6. ...attributes
  7. } = this.props;
  8. return (
  9. <Modal
  10. transparent={true}
  11. animationType={'none'}
  12. visible={loading}
  13. onRequestClose={() => { console.log('close modal') }}>
  14. <View style={styles.modalBackground}>
  15. <View style={styles.activityIndicatorWrapper}>
  16. <ActivityIndicator
  17. animating={loading} />
  18. </View>
  19. </View>
  20. </Modal>
  21. );
  22. }
  23. }
  24.  
  25. modalBackground: {
  26. flex: 1,
  27. alignItems: 'center',
  28. flexDirection: 'column',
  29. justifyContent: 'center',
  30. backgroundColor : 'rgba(20,20,20,.65)',
  31. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement