-
Notifications
You must be signed in to change notification settings - Fork 0
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 #12 from 0x0is1/enchancements
Enchancements for issues raised (Feat Batch 2)
- Loading branch information
Showing
9 changed files
with
112 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
export default class Constants { | ||
constructor(){ | ||
this.screenRoutes = { | ||
PLAYERSCREEN: 'PlayerScreen', | ||
ALBUMSCREEN: 'AlbumsScreen', | ||
SEARCHSCREEN: 'SearchScreen', | ||
DASHBOARDSCREEN: 'DashboardScreen', | ||
ALBUMVIEWERSCREEN: 'AlbumViewerScreen' | ||
} | ||
|
||
this.drawerRoutes = { | ||
ALBUMSCREEN: 'AlbumsScreen', | ||
LIBRARYSCREEN: 'LibraryScreen', | ||
DOWNLOADSCREEN: 'DownloadsScreen', | ||
SETTINGSCREEN: 'SettingsScreen', | ||
SEARCHSCREEN: 'SearchScreen', | ||
ABOUTSCREEN: 'AboutScreen', | ||
PLAYERSCREEN: 'PlayerScreen', | ||
VERSIONSCREEN: 'VersionScreen' | ||
} | ||
|
||
this.drawerTitles = { | ||
ALBUM: 'Home', | ||
LIBRARY: 'Library', | ||
DOWNLOADS: 'Downloads', | ||
SETTINGS: 'Settings', | ||
SEARCH: 'Search', | ||
ABOUT: 'About', | ||
PLAYER: 'Player', | ||
VERSION: 'Version' | ||
} | ||
|
||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { StyleSheet, ToastAndroid, TouchableOpacity, View } from 'react-native' | ||
import React from 'react' | ||
import Ionicons from "react-native-vector-icons/Ionicons"; | ||
import { useNavigation } from '@react-navigation/native'; | ||
const CustomStatusBar = () => { | ||
const navigator = useNavigation(); | ||
return ( | ||
<View style={styles.buttonContainer}> | ||
<TouchableOpacity onPress={() => { navigator.goBack() }} style={[styles.icons, {right: 140}]}> | ||
<Ionicons name='chevron-back' size={25} color={'#000'} /> | ||
</TouchableOpacity> | ||
<TouchableOpacity onPress={() => { ToastAndroid.show('Not implemented yet', ToastAndroid.SHORT) }} style={[styles.icons, { left: 140 }]}> | ||
<Ionicons name='information' size={25} color={'#000'} /> | ||
</TouchableOpacity> | ||
</View> | ||
) | ||
} | ||
|
||
export default CustomStatusBar | ||
|
||
const styles = StyleSheet.create({ | ||
buttonContainer: { | ||
position: 'absolute', | ||
flexDirection: 'row', | ||
top: 25 | ||
}, | ||
icons: { | ||
borderRadius: 40, | ||
} | ||
}) |