Browse Source

Add 'Loading.js'

gilberto.cancel 2 years ago
parent
commit
5ae3ca16d6
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      Loading.js

+ 18
- 0
Loading.js View File

@@ -0,0 +1,18 @@
1
+import React from 'react';
2
+import { View, ActivityIndicator, StyleSheet } from 'react-native';
3
+
4
+export default function Loading() {
5
+  return (
6
+    <View style={styles.loadingContainer}>
7
+      <ActivityIndicator size='large' color='#6646ee' />
8
+    </View>
9
+  );
10
+}
11
+
12
+const styles = StyleSheet.create({
13
+  loadingContainer: {
14
+    flex: 1,
15
+    alignItems: 'center',
16
+    justifyContent: 'center'
17
+  }
18
+});