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 34 35 36 37 | import React from 'react';
import { ActivityIndicator, View, StyleSheet } from 'react-native';
import { colors } from '../theme/colors';
interface Props {
size?: 'small' | 'large';
fullScreen?: boolean;
}
export function LoadingSpinner({ size = 'large', fullScreen = false }: Props) {
if (fullScreen) {
return (
<View style={styles.fullScreen}>
<ActivityIndicator size={size} color={colors.accent} />
</View>
);
}
return (
<View style={styles.inline}>
<ActivityIndicator size={size} color={colors.accent} />
</View>
);
}
const styles = StyleSheet.create({
fullScreen: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: colors.bg,
},
inline: {
padding: 24,
alignItems: 'center',
justifyContent: 'center',
},
});
|