import React, { Component } from 'react'; import { StyleSheet, View, Modal, ActivityIndicator } from 'react-native'; const Loader = props => { const { loading, ...attributes } = props; return ( {console.log('c lose modal')}}> ) } const styles = StyleSheet.create({ modalBackground: { flex: 1, alignItems: 'center', flexDirection: 'column', justifyContent: 'space-around', backgroundColor: '#00000040' }, activityIndicatorWrapper: { backgroundColor: '#FFFFFF', height: 100, width: 100, borderRadius: 10, display: 'flex', alignItems: 'center', justifyContent: 'space-around' } }); export default Loader;