Ensure you have the latest LTS (long-term support) version of Node.js installed on your system.
Recommended installation instructions are available here.
IMPORTANT NOTE: Due to the dependencies included in this project, you must use EAS Build to run this app on iOS and Android devices.
Somewhere in your file system, run either
$ git clone https://github.com/pjnalls/itunes.git
if you aren't connect to GitHub with any SSH keys, or
$ git clone git@github.com:pjnalls/itunes.git
if you are.
Next, navigate to the root of the newly cloned project by running the following:
$ cd itunes/
Then, install a node_modules
folder for all the project's dependencies:
$ npm i
EAS Project Builds
Ensure the eas-cli
is installed globally on your machine:
$ npm i -g eas-cli
Run the following command and follow the instructions in the CLI to create EAS builds for iOS (Apple Developer account needed) and Android:
$ eas build --profile development --platform all
Alternatively, you can build for a single platform at a time as builds may take some time to complete:
Run
$ eas build --profile development --platform ios
to create EAS builds for iOS only, and run
$ eas build --profile development --platform android
to create EAS builds for iOS only.
IMPORTANT NOTE: You'll need to install the new EAS development builds on your phone before you can run the Expo app locally, scan the app barcode to connect it, and run the React Native app from a physical iOS or Android device.
Run the following to run the Expo app:
$ npm start
Then, if you have the EAS development builds installed on your phone, you should be able to scan the barcode that appears and run the React Native app from an iOS or and Android device.
Press w
to open the web version of the React Native app in the browser.
NOTE: It's possible to run an iPhone, Android phone, and the browser on the same React Native app instance for cross-platform development. Also, simultaneous, universal HMR (Hot-module Replacement) has been enabled for this app.
https://github.com/codezri/react-native-track-player-demo/