I am having this react-native-paper
button:
<Button
disabled={loading}
icon="refresh"
mode="contained"
onPress={this.refreshData.bind(this)}
>
Refresh
</Button>
How can I make the icon spin when loading=true
?