A movie app built using React Native (Expo), powered by TMDB API and Gemini API.
download the apk -> Downlaod (don't worry, it's safe)
Before starting, make sure you have the following installed:
-
Node.js & npm
Download and install from https://nodejs.org/ -
Expo CLI (optional, required for building APK)
You can install it globally using:
npm install -g expo-cli
git clone https://github.com/NayanCod/RN_Movie_App.git
cd RN_Movie_App
npm install
EXPO_PUBLIC_MOVIE_API_KEY=
EXPO_PUBLIC_GEMINI_API_KEY=
EXPO_PUBLIC_FIREBASE_API_KEY=
EXPO_PUBLIC_FIREBASE_AUTH_DOMAIN=
EXPO_PUBLIC_FIREBASE_PROJECT_ID=
EXPO_PUBLIC_FIREBASE_STORAGE_BUCKET=
EXPO_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
EXPO_PUBLIC_FIREBASE_APP_ID=
- TMDB Movie API Key from: https://developer.themoviedb.org/docs/getting-started
- Gemini API Key from: https://aistudio.google.com/app/apikey
- Firebase config keys: https://console.firebase.google.com/
- Go to Firebase Console
- Select your project
- Click ⚙️ (Settings) > Project Settings
- Under "Your apps", click "Add app" button
- Select Android (🤖)
- Enter Android package name: e.g, com.yourname.watchspot
- Click "Register app"
- Download
google-services.json
- Place the file in your project's root directory
Note: Keep
google-services.json
secure and never commit it to version control
npx expo start
Now scan the QR code shown in the terminal using your Expo Go app on mobile (Scan QR option).
Your App is now running on your expo go app
npm install -g expo-cli
npx expo login
eas init
After running above command it will modify your app.json and also created eas.json file
if eas.json not created then create it manually and paste the below code inside:
{
"build": {
"preview": {
"android": {
"buildType": "apk",
"env": {
"GOOGLE_SERVICES_JSON": "google-services.json"
}
}
},
"production": {
"android": {
"buildType": "app-bundle"
}
}
}
}
eas build -p android --profile preview
During build, it will ask for Android application ID:
Example: com.yourname.watchspot
After successful build, you will get an APK download link in the terminal
You can also view and download it from your Expo dashboard: https://expo.dev/accounts
before building app, add environmental variables in your expo dashboard
1. Go to your Expo dashboard: https://expo.dev
EXPO_PUBLIC_MOVIE_API_KEY=<your_tmdb_api_key>
EXPO_PUBLIC_GEMINI_API_KEY=<your_gemini_api_key>
EXPO_PUBLIC_FIREBASE_API_KEY=
EXPO_PUBLIC_FIREBASE_AUTH_DOMAIN=
EXPO_PUBLIC_FIREBASE_PROJECT_ID=
EXPO_PUBLIC_FIREBASE_STORAGE_BUCKET=
EXPO_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
EXPO_PUBLIC_FIREBASE_APP_ID=
You can now share the APK file with others after the build is complete, and they can install it on their Android devices.
🎯 Happy building and coding! 🚀