I am really close to the solution but I still don not get it. I want to start a new React Native project and use Firebase as a database and image storage.
The steps I took:
I installed React Native
I did "npm install#react-native-firebase/app"
I created a new project "expo init react-native-firebase"
I created a new FireBase project, then I started my project with Metro Bundler.
And after that it is unclear that how can achieve that my folder struckture looks like this with all the firebase sdk's in it:
My folder structure is missing all the dependencies for Firebase, like the android and ios folders etc.. I tried to cd into my project in the terminal, then ran "yarn add firebase", but that did not work. I can see the necessary files are in "C:/MyReactNativeProject/node_modules/#react-native-firebase/app/".
Currently my project looks like this:
What am i missing? :/
Today, you can't have the Firebase react-native sdk with expo
As the react-native-firebase documentation says, you need to eject your app if you want to use this library with expo. Be mind that eject action is not reversible.
But wish to make use of features such as Realtime Database (without offline support) & Authentication, you can still use the Firebase Web SDK in your project.
To use Firebase in expo Project, follow their docs
👉 https://docs.expo.dev/guides/using-firebase/
Related
I am building a small extension plugin for use with Photoshop.
Part of the app I am using Firestore to store some user details.
I have installed the Firebase v9 SDK using npm i firebase and the app seems to be working fine so far.
When I packaged up the app, its now sitting at over 60mb in size which is due to everything in the node_modules folder. most of which I probably don't use.
Is there a way I can just use what I want from the node_modules folder and delete the rest?
I am new to React Native. I have created a project and want to build it into production. For now, I only want to build the web version (not android/ios app), and host it on Netlify, thus allowing others to access it. How should I proceed?
You should execute this command:
expo build:web
it will generate in the web-build/ directory the static site to deploy in production.
I am trying to install pure react-native but every now and then I am getting some error. So it would be nice if there is a way to reduce expo apk size.
You can migrate to react-native
make a new react app "react-native init"
Copy the source files over from Expo project
Install all dependencies of the Expo project except Expo specific
libraries.
Make necessary adjustments to app.json file
Download the signing key of your Android app from Expo using exp
fetch:android:keystore and set it up
More details here Reduced the Size of React Native App by 86%
I am writing a javascript library that is npm linked to my meteor app. I didn't yet publish the library to npm so it is only local.
Now my problem is, that I want to debug inside the library while using it in my meteor app.
I can debug the meteor app components and using a sourcemap and a standalone html test page also the library itself. But as soon as I use import Library from 'library' in meteor it minifies, uglifies and mangles it.
Is there a way to tell either meteor's build system or my browser to use the library's source map?
Thanks in advance
You can try removing the Meteor minifier package until you need it again:
meteor remove standard-minifier-js
I recently upgraded to the latest version of meteor. The currently installed meteor version is Meteor 1.4.1.
In trying to continue developing my app (from the previous version) in the upgraded meteor environment, I figured I would create a new app (meteor create newApp) then copy (the code from the original app) and paste (the code into the newly created files) then run it.
I quickly released that I have to re-install the packages that my original app was depending on or else I get error messages.
The issue here is I don't remember the packages my original app is dependent on. I still have the original app folder, which I created in the previous meteor version. Is there a way to extract the list of packages from the original app?
Alternatively is there a way I can merely continue developing and running the original app without having to create a new app and copy and pasting the code? If so how do I do this?
Any help is greatly appreciated
In the app root go to ./meteor directory. In that folder open packages files. All your installed packages names will be there.
Alternatively, you can use meteor list command in the app directory.
Answer to the second part, yes you can continue developing the same app. The packages will be upgraded accordingly. You may face some issues with bcrypt if you are using accounts-passwords package but there are workaround to get over that.