How to Create an Expo App with React-Native Firebase

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 120

  • @thomasstephenson4043
    @thomasstephenson4043 4 месяца назад +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  4 месяца назад

      Happy to help!!!

  • @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

  • @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 10 месяцев назад

      I have this error too, no clue what to do

    • @joaobragajunior5296
      @joaobragajunior5296 9 месяцев назад +1

      Any solutions?

    • @YoniWol
      @YoniWol 9 месяцев назад

      add me to this list

    • @kirito747
      @kirito747 4 месяца назад

      x4

    • @ag.tejano2773
      @ag.tejano2773 3 месяца назад

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

  • @exactlythatguy
    @exactlythatguy 7 месяцев назад

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

    • @DanRNLab
      @DanRNLab  7 месяцев назад

      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

  • @jesusfco5629
    @jesusfco5629 Месяц назад

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

  • @talesrodrigues3359
    @talesrodrigues3359 8 дней назад

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

  • @fluxbesterman
    @fluxbesterman 10 месяцев назад

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

    • @DanRNLab
      @DanRNLab  10 месяцев назад

      Happy to help!!!

    • @HevendHussein
      @HevendHussein 7 месяцев назад

      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?

  • @eniskalyon
    @eniskalyon 3 месяца назад

    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.

  • @Coder-Journey
    @Coder-Journey Год назад +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!!!

  • @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

  • @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!

  • @Glist200iq
    @Glist200iq Год назад

    Thanks for the clear explanation, good luck!

  • @robertogonzalezz_
    @robertogonzalezz_ Год назад +1

    You're the best, keep going!

  • @Nyzero6
    @Nyzero6 Год назад +1

    Thanks Dan! Awesome tutorial

    • @DanRNLab
      @DanRNLab  Год назад +1

      Glad you enjoyed it! 🙂

  • @niranjandabhade1477
    @niranjandabhade1477 3 месяца назад

    You have saved me a lifetime

    • @DanRNLab
      @DanRNLab  3 месяца назад

      Happy to help!!!

  • @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 7 месяцев назад

      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?

  • @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

  • @abhishek_tyagi761
    @abhishek_tyagi761 14 дней назад

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

  • @bbanaei
    @bbanaei 3 месяца назад

    Great job!

  • @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.

  • @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

  • @LotfiORouis
    @LotfiORouis 11 месяцев назад

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

  • @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."

  • @trxplem
    @trxplem 3 дня назад

    Where do you find your app bundle ID in expo?

  • @johnmukendi7650
    @johnmukendi7650 11 месяцев назад

    Thanks this was super helpful keep it up

    • @DanRNLab
      @DanRNLab  11 месяцев назад

      Happy to help 🙂

  • @SalaDaBalloBlaze
    @SalaDaBalloBlaze Месяц назад

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

  • @nihao5322
    @nihao5322 9 месяцев назад

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

  • @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

  • @oyewoleshedrack8801
    @oyewoleshedrack8801 10 месяцев назад

    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

  • @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

  • @HevendHussein
    @HevendHussein 7 месяцев назад

    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?

  • @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.

  • @rbecs
    @rbecs 8 месяцев назад

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

  • @danielonyemachi6021
    @danielonyemachi6021 8 месяцев назад

    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?

  • @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.

  • @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?

  • @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.

  • @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!

  • @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

  • @silverheart573
    @silverheart573 3 месяца назад

    How do you upload your previous expo app as plugin

  • @largatonguyemmanuelcouliba9827
    @largatonguyemmanuelcouliba9827 2 месяца назад

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

  • @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

  • @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
      ruclips.net/video/ZNE7Of3TZAY/видео.html

    • @azadma6427
      @azadma6427 Год назад

      Great i will watch it thank you so much dear

  • @lakshaysagarrana3965
    @lakshaysagarrana3965 Год назад

    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.

  • @ravi-qi3dq
    @ravi-qi3dq 7 месяцев назад

    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  7 месяцев назад +1

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

    • @ravi-qi3dq
      @ravi-qi3dq 7 месяцев назад

      @@DanRNLab thankyou sir for your reply

  • @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

  • @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: ruclips.net/video/s8OKmkyclEg/видео.htmlsi=wYbZA7teANt4v7XO

  • @dumbfailurekms
    @dumbfailurekms Год назад

    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.

    • @dumbfailurekms
      @dumbfailurekms Год назад

      @@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

  • @Animotion1000
    @Animotion1000 2 месяца назад

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

  • @teflonhav
    @teflonhav Год назад +1

    thanks

  • @Bhagya-q9e
    @Bhagya-q9e 7 месяцев назад

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

    • @DanRNLab
      @DanRNLab  7 месяцев назад +1

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

  • @aashisha2316
    @aashisha2316 9 месяцев назад

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

    • @brainloading5543
      @brainloading5543 3 месяца назад

      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

  • @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 6 месяцев назад

    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
    ruclips.net/video/8TqKIsQJxLQ/видео.html
    ruclips.net/video/zF9rmPH00AA/видео.html

  • @paulinkladi1689
    @paulinkladi1689 9 месяцев назад

    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.