current position:Home>Reactnative foundation - 09 (activity indicator)

Reactnative foundation - 09 (activity indicator)

2022-01-27 03:26:00 The black cat made a strange mistake

Small circle rotating during loading :ActivityIndicator, Can pass size、color Set the size

export default class App extends Component {
  render() {
    return (
      <View>
        <ActivityIndicator size="large" color="orange" />
        <View style={
   {alignItems: 'center', backgroundColor: '#ccc'}}>
           <ActivityIndicator color="red" size={28} />
           <Text style={
   {fontSize: 20}}> Loading ...</Text>
        </View>
      </View>
    );
  }
}

copyright notice
author[The black cat made a strange mistake],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270325586863.html

Random recommended