This repository was archived by the owner on Aug 28, 2020. It is now read-only.
File tree 2 files changed +41
-2
lines changed
2 files changed +41
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { StatusBar } from 'react-native';
7
7
import { Route , Switch } from 'react-router-native' ;
8
8
import StorybookUI from '../storybook' ;
9
9
import { Providers } from './Providers' ;
10
+ import Loader from './components/Loader' ;
10
11
import Welcome from './components/Welcome' ;
11
12
import Bluetooth from './components/Bluetooth' ;
12
13
import Exposure from './components/Exposure' ;
@@ -15,13 +16,14 @@ import Scanning from './components/Scanning';
15
16
const App : React . FC = ( ) => {
16
17
return (
17
18
< Providers >
18
- < StatusBar barStyle = "dark-content" backgroundColor = "white " animated = { true } />
19
+ < StatusBar barStyle = "dark-content" backgroundColor = "transparent " animated = { true } />
19
20
{ __DEV__ ? < Route path = "/storybook" component = { StorybookUI } /> : undefined }
20
21
< Switch >
21
22
< Route path = "/bluetooth" component = { Bluetooth } />
22
23
< Route path = "/exposure" component = { Exposure } />
23
24
< Route path = "/scanning" component = { Scanning } />
24
- < Route path = "/" component = { Welcome } />
25
+ < Route path = "/welcome" component = { Welcome } />
26
+ < Route path = "/" component = { Loader } />
25
27
</ Switch >
26
28
</ Providers >
27
29
) ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { Text , View } from 'react-native' ;
3
+ import layout from './Layout.less' ;
4
+ import { useHistory } from 'react-router-native' ;
5
+ import SparklesIcon from '../assets/sparkle.svg' ;
6
+
7
+ export const Loader : React . FC = ( ) => {
8
+
9
+ const history = useHistory ( ) ;
10
+
11
+ const handleConsent = ( ) : void => {
12
+ history . push ( '/bluetooth' ) ;
13
+ } ;
14
+
15
+ return (
16
+ < View className = { layout . background } >
17
+ < View className = { layout . padder } >
18
+ < SparklesIcon className = { layout . icon } />
19
+ < Text className = { layout . title } > { '\n' } ...</ Text >
20
+ </ View >
21
+ < View className = { layout . padder } >
22
+ < Text className = { layout . description } >
23
+ Getting Ready...
24
+ </ Text >
25
+ </ View >
26
+ < View className = { layout . padder } >
27
+ < Text className = { layout . testbullet } >
28
+ { '\n' }
29
+ { '\n' }
30
+ </ Text >
31
+ < Text onPress = { handleConsent } className = { layout . button } > I consent</ Text >
32
+ </ View >
33
+ </ View >
34
+ ) ;
35
+ } ;
36
+
37
+ export default Loader ;
You can’t perform that action at this time.
0 commit comments