Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit f1ea6c2

Browse files
committed
Implement super simple wait view
1 parent 9fa49f0 commit f1ea6c2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/view/wait.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import React from 'react';
2+
import { StyleSheet, ActivityIndicator } from 'react-native';
3+
import Background from '../component/background';
4+
import MainContent from '../component/main-content';
5+
import { color } from '../component/style';
6+
7+
const styles = StyleSheet.create({
8+
content: {
9+
justifyContent: 'center',
10+
},
11+
spinner: {
12+
transform: [{ scale: 1.5 }],
13+
},
14+
});
15+
16+
const WaitView = () => (
17+
<Background color={color.blackDark}>
18+
<MainContent style={styles.content}>
19+
<ActivityIndicator
20+
size="large"
21+
color={color.lightPurple}
22+
style={styles.spinner}
23+
/>
24+
</MainContent>
25+
</Background>
26+
);
27+
28+
export default WaitView;

0 commit comments

Comments
 (0)