git clone https://github.com/MusicAppCP/musicapp.git`
Navigate into the project folder and run the following command
npm install
Navigate into the ios folder and run the following command
cd ios && pods install && cd ..
Navigate back to project folder and run the following command to run on Android
react-native run-android
Navigate back to project folder and run the following command to run on iOS
react-native run-ios
You'll also need to manually apply a plugin to your app, from android/app/build.gradle
:
// 2nd line, add a new apply:
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
In android/app/build.gradle
, if you use applicationIdSuffix or applicationId that is different from the package name indicated in AndroidManifest.xml
in tag, for example, to support different build variants: Add this in android/app/build.gradle
defaultConfig {
...
resValue "string", "build_config_package", "YOUR_PACKAGE_NAME_IN_ANDROIDMANIFEST.XML"
}
https://github.com/luggit/react-native-config#availability-in-build-settings-and-infoplist
- add three splash in :
node_modules\metro-config\src\defaults\blacklist.js
replace this part:
var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
- switch to exo player, default android player lags sometime
https://github.com/ashrithks/rn-collapsing-tab-bar https://github.com/ptomasroos/react-native-scrollable-tab-view
- Make sure you do not have empty lines in
.env
or your iOS build will fail