Welcome to the music player assignment!
Screen.Recording.2022-09-05.at.03.07.43.mov
This project uses Expo dev client and configured for iOS.
Rest of the document assumes that you have mobile environment setup ready. React Native Setup Guide
git clone https://github.com/kaanoner3/skoove-assignment.git
cd skoove-assignment
yarn install
npx pod-install
yarn ios
yarn test
To see the code coverage
yarn test --coverage
Yarn workspace is being used on the Project as packaging architecture. It helps us to create structure in which we can draw strict lines in terms of responsibilities, so, every team can control its own territory. It's especially important when lots of people starts working on the same codebase. Our music player assignment have 4 different packages (Potentially have 4 different teams).
Responsible for building widely used components like such as button
, text
, image
etc. Also responsible of best UI-best practices and standarts such as theme support.
Due to limited time I implemented only spacing module which provide us consistency in margin and paddings.
Responsible for vital packages and utilities like http
, cache manager
, storage
, performance tracking
, i18n
etc. We have http
, error handling
, screen hocs
,redux
, and navigation
Responsbile for listing musics
This part is responsible for music player. Tech: react-native-track-player, slider.
-
Due to time limitations e2e tests have not been implemented.
-
When we play a song, it continues to play even if we close the music player screen. However, we don't have any control to stop the music on the HomeScreen. This is obviously not desirable. Another thing to add would be extending the app functionality to control the music on HomeScreen.
-
react-native-track-player supports background event listeners but the current implementation does not use it. Implementing these listeners would provide the users a better control over the music player.
-
There are some unhandled rejections throwed from TrackPlayer. Displaying the alert banners would improve the user experience.