-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from YajanaRao/stable-android
Stable android
- Loading branch information
Showing
5 changed files
with
1,689 additions
and
2,430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
import React from 'react'; | ||
import { useTheme } from 'react-native-paper'; | ||
import { createNativeStackNavigator } from 'react-native-screens/native-stack'; | ||
import { PlayerScreen } from './player/PlayerScreen'; | ||
import { QueueScreen } from './Queue'; | ||
import {useTheme} from 'react-native-paper'; | ||
import {createNativeStackNavigator} from '@react-navigation/native-stack'; | ||
import {PlayerScreen} from './player/PlayerScreen'; | ||
import {QueueScreen} from './Queue'; | ||
|
||
const NativeStack = createNativeStackNavigator(); | ||
|
||
export const PlayerStack = () => { | ||
const { colors } = useTheme(); | ||
return ( | ||
<NativeStack.Navigator | ||
initialRouteName="Active" | ||
screenOptions={{ | ||
headerStyle: { | ||
backgroundColor: colors.surface, | ||
}, | ||
headerTintColor: colors.text, | ||
headerTopInsetEnabled: false, | ||
}} | ||
> | ||
<NativeStack.Screen | ||
name="Active" | ||
component={PlayerScreen} | ||
options={{ headerShown: false }} | ||
/> | ||
<NativeStack.Screen name="Queue" component={QueueScreen} /> | ||
</NativeStack.Navigator> | ||
); | ||
const {colors} = useTheme(); | ||
return ( | ||
<NativeStack.Navigator | ||
initialRouteName="Active" | ||
screenOptions={{ | ||
headerStyle: { | ||
backgroundColor: colors.surface, | ||
}, | ||
headerTintColor: colors.text, | ||
}}> | ||
<NativeStack.Screen | ||
name="Active" | ||
component={PlayerScreen} | ||
options={{headerShown: false}} | ||
/> | ||
<NativeStack.Screen name="Queue" component={QueueScreen} /> | ||
</NativeStack.Navigator> | ||
); | ||
}; |
Oops, something went wrong.