forked from mustafadede/ReservGYM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
27 lines (23 loc) · 786 Bytes
/
App.js
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
import React, { useState } from "react";
import store from "./src/redux/store";
import { Provider } from "react-redux";
import AppIntroSlider from "react-native-app-intro-slider";
import { _renderItem, _renderNextButton, _renderDoneButton } from "./src/screens/IntroSlider";
import data from "./src/data/lottieData";
import Root from "./src/Root";
const App = () => {
const [showRealApp, setShowRealApp] = useState(false);
const _onDone = () => {
setShowRealApp(true);
};
return (
<Provider store={store}>
{showRealApp ? (
<Root />
) : (
<AppIntroSlider renderItem={_renderItem} data={data} onDone={_onDone} renderNextButton={_renderNextButton} renderDoneButton={_renderDoneButton} />
)}
</Provider>
);
};
export default App;