-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
56 lines (48 loc) · 1.37 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import React, {useEffect} from 'react'
import {Provider, useDispatch} from 'react-redux'
import {Dispatch, store} from './src/store/store'
import {fetchConfiguration} from './src/store/configuration/configuration.thunks'
import {fetchFavorites} from './src/store/entities/favorites/favorites.thunks'
import {StatusBar} from 'react-native'
import {SafeAreaProvider} from 'react-native-safe-area-context'
import {NavigationContainer} from '@react-navigation/native'
import TabNavigator from './src/navigation/TabNavigator'
export const App = () => {
const dispatch = useDispatch<Dispatch>()
useEffect(() => {
dispatch(fetchConfiguration)
dispatch(fetchFavorites())
}, [dispatch])
// console.log('App RENDER', {})
return (
<SafeAreaProvider>
<NavigationContainer>
<StatusBar
barStyle="dark-content"
animated={true}
translucent={true}
backgroundColor="transparent"
/>
<TabNavigator />
</NavigationContainer>
</SafeAreaProvider>
)
}
const RootApp = () => {
return (
// <React.StrictMode>
<Provider store={store}>
<App />
</Provider>
// </React.StrictMode>
)
}
export default RootApp
/*
Лого поиск
[Популярные]
[Топ рейтинг]
[Самые новые]
[Жанры]
[Главная Обзор Избранное]
*/