({ children, message = '' })
| 2 | import { ActivityIndicator, StyleSheet, Text, View } from "react-native"; |
| 3 | |
| 4 | export function LoadingView({ children, message = '' }) { |
| 5 | return ( |
| 6 | <View style={styles.container}> |
| 7 | <View style={{ flexDirection: "row" }}> |
| 8 | {!!message && <Text style={styles.text}>{message}</Text>} |
| 9 | {children} |
| 10 | <ActivityIndicator /> |
| 11 | </View> |
| 12 | </View> |
| 13 | ); |
| 14 | } |
| 15 | |
| 16 | const styles = StyleSheet.create({ |
| 17 | container: { flex: 1, justifyContent: "center", alignItems: "center" }, |
| 18 | text: { fontSize: 18, textAlign: "center", marginRight: 8 }, |
| 19 | }); |
nothing calls this directly
no outgoing calls
no test coverage detected