MCPcopy Create free account
hub / github.com/expo/examples / LoadingView

Function LoadingView

with-tfjs-camera/src/LoadingView.js:4–19  ·  view source on GitHub ↗
({ children, message = '' })

Source from the content-addressed store, hash-verified

2import { ActivityIndicator, StyleSheet, Text, View } from "react-native";
3
4export 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
16const styles = StyleSheet.create({
17 container: { flex: 1, justifyContent: "center", alignItems: "center" },
18 text: { fontSize: 18, textAlign: "center", marginRight: 8 },
19});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected