https://youtu.be/_dK5MDv8uEI
If you like the demo, please hit subscribe and press the bell icon for more demos, tutorials and guidance in React Native. You have to perform these steps to successfully run this code on your side.
We will use Shazam API avaiable on Rapid API. Before using the Shazam API we need api key from Rapid API which we can get after signup. Its totally free of cost.
- Go to this URL https://rapidapi.com/apidojo/api/shazam
- Press Signup button on top right corner and provide your details
- After successfully signup, you will be able to test the endpoints on the Shazam API on the browser
- In the center section of the API documention, you will see X-RapidAPI-KEY, which you need in code
- Copy the API key and paste it in Search.js and SongResult.js
- Download or pull this repo on your side
- Open terminal and navigate to your downloaded folder
- Run this command npm install inside the folder, to install all required dependencies for Android
- Run this command cd ios && pod install inside the folder, to install all required dependencies for iOS (only Mac Users)
- Then setup account Rapid API website by following above given instructions and paste the API key in Search.js and SongResult.js
- To run the application on Android, run this command react-native run-android
- To run the application on iOS, run this command react-native run-ios
- Search the song by typing
- See song details
- See song official video, by clicking on youtube URL on Song Details screen