-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
55 lines (46 loc) · 1.95 KB
/
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
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {createStore} from "redux";
import {Provider} from "react-redux";
import { store } from "./src/Reducers";
import { enableScreens } from 'react-native-screens';
import {StatusBar, useColorScheme, PixelRatio, Dimensions, View} from 'react-native';
import {NavigationContainer} from "@react-navigation/native";
import {createStackNavigator, CardStyleInterpolators} from "@react-navigation/stack";
import { createSharedElementStackNavigator } from 'react-navigation-shared-element';
import HomeNav from "./src/Navigators/HomeNavigator";
import SongDetailsNavigator from './src/Navigators/SongDetailsNavigator';
import BottomSheet from './src/Components/BottomSheet';
import SongOptions from './src/Components/SongOptions';
import SongPlayer from './src/Screens/SongPlayer';
console.log("Pixel Ratio", PixelRatio.get());
const {width, height} = Dimensions.get("window");
const Stack = createStackNavigator();
const App = () => {
const isDarkMode = useColorScheme() === 'dark';
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator screenOptions={{cardStyleInterpolator: CardStyleInterpolators.forVerticalIOS}} initialRouteName="Home" headerMode="none">
<Stack.Screen name="Home" component={HomeNav} />
<Stack.Screen name="SongDetails" component={SongDetailsNavigator} />
<Stack.Screen name="SongPlayer" component={SongPlayer} options={{cardStyleInterpolator: CardStyleInterpolators.forVerticalIOS}} />
</Stack.Navigator>
<StatusBar barStyle="light-content" translucent backgroundColor="rgba(0,0,0,0.2)" />
<BottomSheet>
<SongOptions />
</BottomSheet>
</NavigationContainer>
</Provider>
);
};
// function map_state_to_props({app}){
// return {show: app.show_options_sheet}
// }
export default App;