How to Create an Expo App with React-Native Firebase

Поділитися
Вставка
  • Опубліковано 8 лют 2025

КОМЕНТАРІ • 129

  • @DrewLytle
    @DrewLytle Рік тому +9

    Loving these videos! So great to see new creators pop up making modern Expo and RN tutorials

    • @DanRNLab
      @DanRNLab  Рік тому

      Thanks, it means a lot 🙂! Happy you enjoyed this

  • @thomasstephenson4043
    @thomasstephenson4043 6 місяців тому +3

    you are a lifesaver!!!! ive spent hours trying to figure out installing firebase on the ios version of an app for a client. no idea why, but after following your tutorial it works!!!!!

    • @DanRNLab
      @DanRNLab  6 місяців тому

      Happy to help!!!

  • @ZBAY102
    @ZBAY102 Рік тому +3

    Life saver !!! was about to eject expo in a couple of minutes to setup firebase haha! good looking out

  • @exactlythatguy
    @exactlythatguy 9 місяців тому

    You helped me solve in minutes a problem had had plagued me for days. Thank you, sir!

    • @DanRNLab
      @DanRNLab  9 місяців тому

      Happy to help 🙏😀

  • @jesusfco5629
    @jesusfco5629 4 місяці тому

    Thank you su much, I was stuck trying to get this working and with your video I was able to make it successfully!

  • @fluxbesterman
    @fluxbesterman Рік тому

    Great video! The only one I found on the subject so far with code that actually works. Thanks!

    • @DanRNLab
      @DanRNLab  Рік тому

      Happy to help!!!

    • @HevendHussein
      @HevendHussein 9 місяців тому

      who does this leaderboard works out? When you restart by pushing the 'Go' Button, does the counted steps from earlier start at zero or does the counting just continious?

  • @talesrodrigues3359
    @talesrodrigues3359 2 місяці тому

    Thanks so much! The expo config bit was really helpful.

  • @justnegm
    @justnegm Рік тому +1

    i find this channel and it's like finding a treasure! thanks Dan for this amazing videos god bless

    • @DanRNLab
      @DanRNLab  Рік тому

      Thanks for the kind words 😀 ! Excited to bring more videos !

  • @shahriajamankhan1760
    @shahriajamankhan1760 Рік тому

    thanks man. I've been looking for something like this for a quite a long time. I used it and it's awsome. keep up the good work. love.

    • @DanRNLab
      @DanRNLab  Рік тому +1

      Thanks for the kind words 🙂 happy to help!!!

  • @choiceapps997
    @choiceapps997 Рік тому

    This is awesome, thanks Dan! I got it to work only after a few hours cos I made a very silly mistake of sending the wrong format of the credentials to firebase authentication, should have been more careful when I code! Thanks again and keep it coming!

  • @reheitube
    @reheitube Рік тому +11

    I I followed all the steps ( but I am on o Andoird). I am stucked on this error message:
    ERROR Error logging screen event: [Error: You attempted to use a firebase module that's not installed on your Android project by calling firebase.app().
    By chance do you have an hint? :) Thanks

    • @Astyfre
      @Astyfre Рік тому

      I have this error too, no clue what to do

    • @joaobragajunior5296
      @joaobragajunior5296 Рік тому +1

      Any solutions?

    • @YoniWol
      @YoniWol 11 місяців тому

      add me to this list

    • @kirito747
      @kirito747 7 місяців тому

      x4

    • @ag.tejano2773
      @ag.tejano2773 6 місяців тому

      going into the simulator and deleting the actual app(s) before running npx expo start, etc. worked for me

  • @Glist200iq
    @Glist200iq Рік тому

    Thanks for the clear explanation, good luck!

  • @vladimirvucetic243
    @vladimirvucetic243 Рік тому +2

    Liked before even watched. Great video. Maybe idea for the future decoupling firebase calls maybe even with redux :) Thanks for video..

    • @DanRNLab
      @DanRNLab  Рік тому

      Happy you enjoyed it 👍

    • @vladimirvucetic243
      @vladimirvucetic243 Рік тому

      @@DanRNLab enjoyed and learned 🙂 I was struggling with expo and fb because I was missing that “static” config. Do you have some pattern that you use to decouple firebase calls out of tsx and make it reusable?

    • @DanRNLab
      @DanRNLab  Рік тому

      I saw you mentioned Redux. For anything that doesn’t require a listener you can probably just throw it in a Thunk. For the queries that require listeners you would have to do some research there. In RTK there is a listener middleware which might be a good place for the listener calls. I haven’t used that before though so I can’t say too much about it

  • @Nyzero6
    @Nyzero6 Рік тому +1

    Thanks Dan! Awesome tutorial

    • @DanRNLab
      @DanRNLab  Рік тому +1

      Glad you enjoyed it! 🙂

  • @robertogonzalezz_
    @robertogonzalezz_ Рік тому +1

    You're the best, keep going!

  • @eniskalyon
    @eniskalyon 6 місяців тому

    Thank you Dan, one content request here would be: Receiving push notifications in an Expo app by using FCM&APNS directly instead of Expo’s Push API. Especially an FCM&Expo integration guide for IOS would be really helpful as there isn’t much resource on this topic and I can see that you’ve already integrated Expo&Firebase quite successfully for IOS.

  • @niranjandabhade1477
    @niranjandabhade1477 6 місяців тому

    You have saved me a lifetime

    • @DanRNLab
      @DanRNLab  6 місяців тому

      Happy to help!!!

  • @ArthurQuinellato
    @ArthurQuinellato 9 днів тому

    Awesome tutorial! How could the Google auth provider be implemented?

  • @JeanM77
    @JeanM77 Рік тому

    Thanks this was super helpful keep it up

  • @bbanaei
    @bbanaei 5 місяців тому

    Great job!

  • @chisangamwiche1821
    @chisangamwiche1821 Рік тому +1

    Great video🙌🙌🙌🙌

    • @DanRNLab
      @DanRNLab  Рік тому

      Thanks for the kind words 😀!!!

    • @chisangamwiche1821
      @chisangamwiche1821 Рік тому

      @@DanRNLab you are welcome. it straight forward and precise to the point. I’m your new subscriber now.

  • @comemrberrimar6337
    @comemrberrimar6337 2 місяці тому

    Hi Dan, this looks great but I don't think its the first in the series, at about the 6:30 mark you mention a previous tutorial but I can't see a link to it, can you flick me a link to it?

  • @CodeRidePlay
    @CodeRidePlay Рік тому

    Nice tutorial. Simple and clean but I would expect you not to skip the screen designs. While I was writing the code, I looked at the states already written, the design is done.

  • @MaxNasimjonov
    @MaxNasimjonov 17 днів тому

    Does it actually count number of steps taken?

  • @1699Kratos
    @1699Kratos Місяць тому

    Is there a way to use remote config?

  • @abhishek_tyagi761
    @abhishek_tyagi761 2 місяці тому

    How can i implement sign in with Google functionality using this approach...?

  • @djblast101
    @djblast101 Місяць тому

    Sp doesn't work with expo go 😢

  • @maxi4205
    @maxi4205 Рік тому +3

    Hey Dan, I got one more questions regarding the setup: Is the expo-modules-autolinking package necessary? I didn’t add it and seems to work fine without it. Thanks again for the great tutorial!:)

    • @DanRNLab
      @DanRNLab  Рік тому

      On my end it was, without adding this I wasn’t able to run prebuild.

    • @exactlythatguy
      @exactlythatguy 9 місяців тому

      Not sure if this helps, but npx expo-doctor told me that it was already installed with a different dependency, so I should remove it. Maybe that's why it was fine for you?

  • @mingmanhwa-t7u
    @mingmanhwa-t7u 11 місяців тому

    hey mr. , I'm meeting this problem "Cannot find name 'db'." , how to solve it?

  • @TechyTro
    @TechyTro Рік тому +1

    When i run the npx expo prebuild command, it onlly build for Android and not for IOS, how can i fix this ?

    • @DanRNLab
      @DanRNLab  Рік тому

      There may be issues with your Xcode setup. I would start debugging there

  • @lakshaysagarrana3965
    @lakshaysagarrana3965 Рік тому +1

    You did not mention how to install expo, i feel even thats' a problem, they have ben changing alot of things, local cli global cli and what not.

  • @tahsinzaman2193
    @tahsinzaman2193 Рік тому

    I am getting this warning when running expo-doctor, do i have to fix anything? "The package "expo-modules-autolinking" should not be installed directly in your project. It is a dependency of other Expo packages and should be installed automatically."

  • @KonaKombucci
    @KonaKombucci 3 місяці тому

    is there any particular naming convention for the Apple Bundling ID?

  • @matysw
    @matysw Рік тому +1

    helo dan, after week of trying, researching and even trying different versions of this damn package, i am frustrated and helpless. i still have an error: FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app)., js engine: hermes on each app's launch. any help please?

    • @DanRNLab
      @DanRNLab  Рік тому

      If you are still having issues at this point I recommend trying the Expo team’s discord. It’s really active and lots of people ask questions there discord.com/invite/expo

    • @matysw
      @matysw Рік тому

      thanks a lot@@DanRNLab

  • @LotfiORouis
    @LotfiORouis Рік тому

    Thanks dan! Is the plugin configuration you did mandatory??? I didn't get it.

  • @teflonhav
    @teflonhav Рік тому +1

    thanks

  • @oyewoleshedrack8801
    @oyewoleshedrack8801 Рік тому

    Hi, I need help. I have an existing Firebase Expo app with Firebase authentication already implemented as webapp.
    I want to add push notification functionality using expo-notifications without creating a separate Android project.
    How do I go about it thanks

  • @HevendHussein
    @HevendHussein 9 місяців тому

    who does this leaderboard works out? When you restart by pushing the 'Go' Button, does the counted steps from earlier start at zero or does the counting just continious?

  • @largatonguyemmanuelcouliba9827
    @largatonguyemmanuelcouliba9827 5 місяців тому

    Thank you for this tutorial! But it does not work on Android ☹️

  • @silverheart573
    @silverheart573 5 місяців тому

    How do you upload your previous expo app as plugin

  • @DanteAlieghieri
    @DanteAlieghieri Рік тому

    Very useful video!!! I would just like to know if you chose your bundle ID arbitrarily, because I can't find it anywhere in my Expo project. Thanks for the great tutorial!

    • @DanRNLab
      @DanRNLab  Рік тому

      Hey, I just picked one I thought best suited my project. You make them up yourself

  • @danielonyemachi6021
    @danielonyemachi6021 10 місяців тому

    hi i am currently stucked in this process. i am using the expo (tabs) navigation folder with a _layout.js where i defined the files in the bottom tab. however when users login details are correct i am useing router.replace. is this good or bad?

  • @rbecs
    @rbecs 10 місяців тому

    Hey Dan, are these steps similar if we wanted to use Firestore instead of Realtime?

  • @ravi-qi3dq
    @ravi-qi3dq 10 місяців тому

    i think when run prebuild command in windows it only build for android not for ios .For ios we have to require a mac. correct if I am wrong...

    • @DanRNLab
      @DanRNLab  10 місяців тому +1

      For iOS your require a Mac or you can use the cloud EAS service provided by Expo

    • @ravi-qi3dq
      @ravi-qi3dq 10 місяців тому

      @@DanRNLab thankyou sir for your reply

  • @armyofda12monkeys
    @armyofda12monkeys Рік тому

    Just curious which do you think is less buggy (at least for adding Google/FB Authentication)...
    ExpoGo + Firebase JS SDK vs Expo Custom Dev Build + ReactNative Firebase ???

    • @DanRNLab
      @DanRNLab  Рік тому +1

      I would say go with React-Native Firebase and Expo Custom dev build. You get extra benefits too like all the native mobile functionality it provides. The JS SDK doesn’t give you that

  • @trxplem
    @trxplem 2 місяці тому

    Where do you find your app bundle ID in expo?

  • @JoseMedina-xp6vi
    @JoseMedina-xp6vi Рік тому

    Awesome tutorial! Why are you prebuilding instead of using a dev client?

    • @DanRNLab
      @DanRNLab  Рік тому

      I used prebuild because it kept things more focused on Firebase. I didn’t want to pull the viewer away into the EAS Build process and distract from the Expo + Firebase work.

    • @brianmason280
      @brianmason280 Рік тому

      @@DanRNLab Would appreciate a video on dev client! Been struggling with it for a while

  • @blueapple9135
    @blueapple9135 Рік тому

    Where did u get that bundle ID from? or you just made it up? Thanks for the video.

    • @DanRNLab
      @DanRNLab  Рік тому

      When you do prebuild you can set it to whatever you want.

  • @maxi4205
    @maxi4205 Рік тому +2

    great tutorial, thanks! I'm curious, do you record the screen first, and then do the voice over after? Or do you talk and code simultanenously?

    • @DanRNLab
      @DanRNLab  Рік тому +1

      I record first then do the voiceover after. Doing them both at the same time makes it easier to make typing errors. I found trying to do both at the same time slows me down a lot and I can’t fit as much in the tutorial.

  • @jaredrodrigues2654
    @jaredrodrigues2654 Рік тому +1

    Hey Dan, Great tutorial. However when I try implement the Firebase auth I can't run the simulation or app on my phone and get the error: "Invariant Violation: Your JavaScript code tried to access a native module that doesn't exist." I believe this is to do with the Firebase module. It recommends to use the developer build of my app but, i'm wondering if i could get this to work without using the dev build. Any suggestions ?

    • @jaredrodrigues2654
      @jaredrodrigues2654 Рік тому

      I am using windows, so wasn't able to run : " npx expo run:ios " incase that makes the difference, i was using " expo start" and the app. I could run the Prebuild successfully.

    • @DanRNLab
      @DanRNLab  Рік тому

      I don’t have a windows machine so I can’t really diagnose this. I recommend asking on the Expo discord: discord.com/invite/expo

    • @jaredrodrigues2654
      @jaredrodrigues2654 Рік тому

      @@DanRNLab thanks for the reply!

  • @JC-yy5nf
    @JC-yy5nf Рік тому

    Hey man, thanks for the video. Had no idea it was actually possible to run @react-native-firebase alongside Expo. Question though, since we're not using the Expo Go app anymore in this workflow, do I need to run anything extra when installing a new package? Let's say I `npm install` a random RN Calendar component, do I need to run `prebuild` again before running `npx expo run:ios` ?

    • @DanRNLab
      @DanRNLab  Рік тому

      I think run:iOS does prebuild before compiling.

    • @JC-yy5nf
      @JC-yy5nf Рік тому

      @@DanRNLab Thank you! And btw, should we be adding the ios/android folders to .gitignore?

  • @Animotion1000
    @Animotion1000 4 місяці тому

    FYI, seems you can't prebuild IOS on windows 😑

  • @azadma6427
    @azadma6427 Рік тому

    great job, can you please make a video how did you created the walk hero sample ?

    • @DanRNLab
      @DanRNLab  Рік тому

      Do you mean the step counter library? If so I already have a video for that
      How to build an Expo Library using Native Modules
      ua-cam.com/video/ZNE7Of3TZAY/v-deo.html

    • @azadma6427
      @azadma6427 Рік тому

      Great i will watch it thank you so much dear

  • @kenechukwunwobodo3138
    @kenechukwunwobodo3138 Рік тому

    Also another question, what is the essence of doing db().ref('.....) what is it for? is that sending the data in the form to the database e.g name, etc, is it the name from the state? - [name, setName]... If yes, totalScore was not initialized as a state in the app. Please clarify. Thanks

    • @DanRNLab
      @DanRNLab  Рік тому +1

      Ref represents the path to a given object or primitive in the database. If it doesn’t exist yet in the db then Firebase creates that ref for you

    • @kenechukwunwobodo3138
      @kenechukwunwobodo3138 Рік тому

      @@DanRNLab Thank you

  • @joycelsq
    @joycelsq Рік тому

    will u please have a tutorial with firebase dynamic links and analytics please?

    • @DanRNLab
      @DanRNLab  Рік тому

      Sadly, Dynamic Links are being discontinued by Google 😔
      firebase.google.com/support/dynamic-links-faq

  • @kenechukwunwobodo3138
    @kenechukwunwobodo3138 Рік тому

    Hi Dan, just a quick question cuz am using vanilla JavaScript. What is the equivalence of using FirebaseAuthTypes .UserCredentials in JavaScript and not Typescript because I discovered that the user is not logging in.

    • @DanRNLab
      @DanRNLab  Рік тому +1

      Hey, I don’t think there is an equivalent in JS unfortunately. The structure of the object should be the same though regardless of JS or TS

    • @kenechukwunwobodo3138
      @kenechukwunwobodo3138 Рік тому

      @@DanRNLab Alright, thank you sir

  • @razz3721
    @razz3721 Рік тому

    Hello Dan, How to use ImageNotification (FCM) with eas build ?

    • @DanRNLab
      @DanRNLab  Рік тому

      Hey I have a tutorial about Push Notifications in general. Not sure if that helps: ua-cam.com/video/s8OKmkyclEg/v-deo.htmlsi=wYbZA7teANt4v7XO

  • @Bhagya-q9e
    @Bhagya-q9e 10 місяців тому

    How can i find my expo app? - - Android package name

    • @DanRNLab
      @DanRNLab  10 місяців тому +1

      If you’ve run prebuild already it will be in your app level build.gradle file

  • @aashisha2316
    @aashisha2316 Рік тому

    How'd you get the iOS emulator on the right?

    • @brainloading5543
      @brainloading5543 5 місяців тому

      Seems like he is on macos, there’s a built-in ios emulator. (or at least you can download it. It’s not available on windows though

  • @mokoboko2482
    @mokoboko2482 Рік тому

    Hey I'm a complete noob...if I do this, can I still test my app using ExpoGo on IOS? (I do not have any MACos machine only windows)
    thx liked and subscribed

    • @DanRNLab
      @DanRNLab  Рік тому

      Thanks for the like and sub 🙂. You can’t use Expo Go anymore if you go this route. You _should_ be able to use EAS Build though to create a custom client for your app though. I think that can be installed on your iPhone and it behaves in a similar way to Expo Go.

    • @mokoboko2482
      @mokoboko2482 Рік тому

      @@DanRNLab wow thanks so much! I really appreciate you replying. I will look into this. Great channel btw I'm going to go ahead and check out some other videos & try to learn

  • @quyenngoctran5364
    @quyenngoctran5364 Рік тому

    hi man, How to get the ID project.

    • @DanRNLab
      @DanRNLab  Рік тому

      It should be available in the Firebase console for your project

  • @rodrigomesquita9839
    @rodrigomesquita9839 8 місяців тому

    did not work for me :)

  • @ItsmeDeepak
    @ItsmeDeepak Рік тому

    Sir and I have one request.. it's only one I'm thinking to ask you when I was watching this series.. can you do a bbc iplayer radio app wheel (like channel selection wheel) project so that when we spin a wheel with our thumb.. the channel has to slide... I watched other vedios regarding this..but the way u explain everything... Is quite understable compare to everyone else.. so I'm requesting you to make a small vedio about this project please...sir...this is my only request... ❤️Thank you sir...
    I'm also attaching the vedios for your reference
    ua-cam.com/video/8TqKIsQJxLQ/v-deo.html
    ua-cam.com/video/zF9rmPH00AA/v-deo.html

  • @paulinkladi1689
    @paulinkladi1689 11 місяців тому

    hi !! good tuto, it helps me a lot ..
    but i got this error:
    Could not set unknown property 'classifier' for task ':expo-sample-pedometer:androidSourcesJar' of type org.gradle.api.tasks.bundling.Jar.

  • @turing4991
    @turing4991 Рік тому

    Bro f'd up my whole project...ERROR in ./node_modules/@react-native-firebase/app/lib/internal/SharedEventEmitter.js:18
    Module not found: Can't resolve 'react-native/Libraries/vendor/emitter/EventEmitter'
    16 | */
    17 |

    • @DanRNLab
      @DanRNLab  Рік тому +1

      I haven’t seen this error before. Might be best to see if you can get some help in the Expo Discord Server:
      discord.com/invite/4gtbPAdpaE

  • @ΕργασίαΗλεκτρονικόΕπιχειρείν20

    Any idea why am I getting this error?
    You attempted to use a firebase module that's not installed on your Android project by calling firebase.app().
    Ensure you have:
    1) imported the 'io.invertase.firebase.app.ReactNativeFirebaseAppPackage' module in your 'MainApplication.java' file.
    2) Added the 'new ReactNativeFirebaseAppPackage()' line inside of the RN 'getPackages()' method list.

    • @1yjulianhc2
      @1yjulianhc2 2 місяці тому

      I've done exactly what the video showed, and I'm facing the same issue. Were you able to resolve it?