Hi dear hoping you help me on this one and also a big thank you for turning in to my question
I am working on a musical app I am using react-native and aws has my backend tools my problem is
I have a album and I will like to play the whole album I mean all the song in the album if the user hit the album play button , below is my code for the db schema and the album button and the player Widget ...
Here is the code for the albumHeader
import React from 'react';
import { View, Text, Image } from 'react-native';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { Album } from '../../types';
import styles from './styles';
export type AlbumHeaderProp = {
album: Album;
}
const AlbumHeader = (props: AlbumHeaderProp) => {
const { album } = props;
return (
<View style={styles.container}>
<Image source={{ uri: album.imageUri }} style={styles.image} />
<Text style={styles.name}>{album.name}</Text>
<View style={styles.creatorContainer}>
<Text style={styles.creator}>By {album.by}</Text>
<Text style={styles.likes}>{album.numberOfLikes} Likes</Text>
</View>
// This area is the play button I am talking about
<TouchableOpacity>
<View style={styles.button}>
<Text style={styles.buttonText}>Play</Text>
</View>
</TouchableOpacity>
</View>
)
}
export default AlbumHeader;
Hi dear hoping you help me on this one and also a big thank you for turning in to my question I am working on a musical app I am using react-native and aws has my backend tools my problem is I have a album and I will like to play the whole album I mean all the song in the album if the user hit the album play button , below is my code for the db schema and the album button and the player Widget ...
Here is the code for the albumHeader
Here is the SongListIem file
Here is the player Widget
Here is the AppContext
This one is a bit boring but if you need the Schema here is it