react-code-dataset / react-query /examples /react /react-native /src /components /LoadingIndicator.tsx
Download react-query/examples/react/react-native/src/components/LoadingIndicator.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 360 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/react-native/src/components/LoadingIndicator.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/react-native/src/components/LoadingIndicator.tsx
-
curl -L -o LoadingIndicator.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/react-native/src/components/LoadingIndicator.tsx
360 Bytes
| import * as React from 'react' | |
| import { ActivityIndicator, StyleSheet, View } from 'react-native' | |
| export function LoadingIndicator() { | |
| return ( | |
| <View style={styles.fill}> | |
| <ActivityIndicator size="large" /> | |
| </View> | |
| ) | |
| } | |
| const styles = StyleSheet.create({ | |
| fill: { | |
| flex: 1, | |
| justifyContent: 'center', | |
| alignItems: 'center', | |
| }, | |
| }) | |