-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
41 lines (36 loc) · 826 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import React, {useState} from 'react';
import AppNav from './navigation/Appnav';
import AppIntroSlider from 'react-native-app-intro-slider';
import slides from './utils/slides';
import RenderItem from './components/slidesRender';
function App(): React.JSX.Element {
const [showRealApp, setShowRealApp] = useState(false);
const onDone = () => {
setShowRealApp(true);
};
const onSkip = () => {
setShowRealApp(true);
};
return (
<>
{showRealApp ? (
<AppNav />
) : (
<AppIntroSlider
data={slides}
renderItem={RenderItem}
onDone={onDone}
showSkipButton={true}
onSkip={onSkip}
/>
)}
</>
);
}
export default App;