Answers for "expo loading spinner"

1

expo loading spinner

import React from 'react';
import { ActivityIndicator, StyleSheet, Text, View } from 'react-native';

export function App() {
  return (
    <View style={[styles.container, styles.horizontal]}>
      <ActivityIndicator />
      <ActivityIndicator size="large" />
      <ActivityIndicator size="small" color="#0000ff" />
      <ActivityIndicator size="large" color="#00ff00" />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
  },
  horizontal: {
    flexDirection: 'row',
    justifyContent: 'space-around',
    padding: 10,
  },
});
Posted by: Guest on February-27-2021

Browse Popular Code Answers by Language