With the iPod and the digital music revolution, a digital portable media device became a must-have for even the most casual music listeners. The smartphone has superseded the media device, with many users storing large music libraries on their phones. It is only natural for other applications to want to access the music library.
In this recipe, we will create a native module to show the iOS mediaPicker and then select a music file to play. The file will play through the iOS native media player, allowing the music to play in the background and be controlled by the iOS control center.
For this recipe, we created a React Native application titled
In this recipe, we will use the