CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | import React from 'react';
import { ActivityIndicator, StyleSheet, View } from 'react-native';
import { colors } from '../theme/colors';
interface LoadingSpinnerProps {
size?: 'small' | 'large';
color?: string;
fullScreen?: boolean;
}
export function LoadingSpinner({
size = 'large',
color = colors.accentBlue,
fullScreen = false,
}: LoadingSpinnerProps): React.ReactElement {
return (
<View style={[styles.container, fullScreen && styles.fullScreen]}>
<ActivityIndicator size={size} color={color} />
</View>
);
}
const styles = StyleSheet.create({
container: {
padding: 24,
alignItems: 'center',
justifyContent: 'center',
},
fullScreen: {
flex: 1,
backgroundColor: colors.bg,
},
});
|