react-native-firebase-starter | DEPRECATED : For RNFB v5 | Frontend Framework library
kandi X-RAY | react-native-firebase-starter Summary
kandi X-RAY | react-native-firebase-starter Summary
A basic react native app with react-native-firebase pre-integrated to get you started quickly.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-native-firebase-starter
react-native-firebase-starter Key Features
react-native-firebase-starter Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-firebase-starter
QUESTION
I get error on my react-native app while I am trying to execute following code
...ANSWER
Answered 2020-Apr-01 at 07:38This happens because there isn't a keystore present. Follow the steps mentioned in https://reactnative.dev/docs/signed-apk-android
- You can generate a private signing key using keytool. (instructions vary according to operating system)
- Edit the file
~/.gradle/gradle.properties
orandroid/gradle.properties
, and add the following (replace ***** with the correct keystore password, alias and key password),
QUESTION
I am running 5.1.0 of react-native-firebase-starter (https://github.com/invertase/react-native-firebase-starter/blob/master/package.json)
I have triple checked that I have followed the Getting Started instructions (from the readme) exactly. However, when I run the project I get "No Bundle URL Present".
I have searched for this error elsewhere and seen rm -rf ios/build/; kill $(lsof -t -i:8081);
as the answer. I've tried this, and variations, several times but I cannot get the project to run.
ANSWER
Answered 2019-Feb-10 at 00:15I fixed it by adding 127.0.0.1 localhost
to my /etc/hosts
file
QUESTION
I want to use the react native firebase starter template and add react navigation.
I have got the react-native-firebase-starter project up and running and have linked it to firebase. But now when I follow the steps to add react-navigation I come into problems with react-native link react-native-gesture-handler
.
I guessed because the project uses cocoa pods and this command adds a line to the Podfile, that I should cd ios
and run pod install
.
The problem then is that I get an error: [!] React has been deprecated
and the project won't build.
Has anyone successfully used this starter project and added react-navigation to it?
Please tell me what I'm doing wrong or what to do to get it sorted.
...ANSWER
Answered 2019-Jun-16 at 18:55I figured this out.
You need to add these lines into your app target in the Podfile...
QUESTION
I cloned this repo to start my own project
https://github.com/invertase/react-native-firebase-starter
I have made some modifications and got it setup for Firebase, however I cannot push or rename the Repository.
I ran npm run rename
and renamed the directory. GitHub still seems to think I am trying to push the orginal repository as my own.
When I try to push I get:
Authentication failed. You may not have permission to access the repository or the repository may have been archived...
How can I keep this template/starter and push a copy of it as my own repository?
I have tried removing all of the inessential files from the Repo and pushing that way. I get the following error:
I expected to be able to use the starter as a starter to get a project up and running... Maybe I am missing something super obvious.
...ANSWER
Answered 2019-Jun-02 at 20:07I don't see a .git
folder within the root of the react-native-firebase-starter template, perhaps this is causing issues with pushing this template since git
needs to know where to point to upstream.
Maybe you could try initializing the template to your personal git repository and seeing if this resolves your authentication issue:
- Create a new repository on GitHub. To avoid errors, do not initialize the new repository with
README
,license
, orgitignore
files. Initialize the local directory containing the template as a Git repository:
git init
Add the files in your new local repository. This stages them for the first commit:
git add .
Commit the files that you've staged in your local repository:
git commit -m "Initial commit"
At the top of your
GitHub
repository ,created in step 1, copy the remote repository URL.Add the URL for the remote repository where your local repository will be pushed:
git remote add origin
Push the changes in your local repository to your upstream repository contained in
GitHub
:git push -u origin master
You should now be able to push this starter template into your own GitHub
repository and use it as your own project.
As for the npm run rename
command: this is a custom npm
run
script created by the author of this starter template and it simply runs the rename.js
file contained within the .bin
directory of the template's root directory. All this command does is recursively rename the files contained within this template project to the new name specified by your input, so I don't think this is causing the issue. I suspect once your project has been initialized properly with git
the authentication issue will disappear as it will now point upstream to your personal repository.
Hopefully that helps!
QUESTION
I have seen some similar questions. But none of them solved my problems. react-native-cli: 2.0.1 react-native: 0.59.4 Simulator Version 10.1 (SimulatorApp-877 CoreSimulator-587.35) Xcode Version 10.2 (10E125)
After upgrading the xcode to 10.2 this problem started The following build commands failed: CompileXIB /Users/rezwanakabita/Desktop/Navigation_Practice/react-native-firebase-starter/ios/RNFirebaseStarter/Base.lproj/LaunchScreen.xib (1 failure)
I tried all the solutions in StackOverflow Previous questions. But none solved my problem. Any help would be appreciated. thank you.
...ANSWER
Answered 2019-Apr-30 at 11:10A temporary fix mentioned in react-native github issue is to use Legacy Build System
File -> Workspace Settings -> Build System -> Legacy Build System
QUESTION
So I have a React Native app based on react-native-firebase-starter
that I'd like to debug using better tools than just console.log
output via react-native log-android
. Debugger breakpoints, object inspection etc.
For a standard React Native app, this would be possible using the "Debug JS remotely" option which, as I understand it, runs the app's JS inside desktop Chrome and hence can use it's dev tools.
This does not seem to work for React Native Firebase however. I presume this is because it uses a lot of native Android/iOS modules along with mobile-only Firebase auth, and thus is only happy running entirely on the device. ...or something like that.
Am I doing something wrong or is there a way round this? What debugging setup will give me the best DX here?
...ANSWER
Answered 2019-Jan-21 at 17:20The example project react-native-firebase-starter
is natively built (as opposed to being created with Expo) and will therefore work as expected with the debugging tools you have mentioned.
Make sure when running the app the build variant Debug
is selected, as in Release
mode Metro Bundler / Packager and the debugging tools are not available.
If the debugging level via Chrome Dev Tools does not suffice, there are other tools created for React Native with better functionality (such as breakpointing). The most notable ones are:
React Native Tools extension for Visual Studio Code. Allows setting breakpoints and iterating through code in the editor.
React Native Debugger, which has a similar interface to Chrome Dev Tools and allows breakpoints to be set in the Sources tab.
Up-to-date installation instructions and configuration are provided in their respective repositories.
QUESTION
I'm trying to get react-native-firebase up and querying a firestore database in an android app. But whenever I try to query a collection, the app crashes with a very descriptive:
Unfortunately, RNFirebaseStarter has stopped.
This is happening right from the starter project, using the firestore query code right out of the Todo app tutorial. And is happening both in an android simulator and on a device connected through USB.
There are no errors being reported anywhere that I can find. How would I even begin to debug this?
Following up, here's a gist of the adb logcat
output.
ANSWER
Answered 2017-Nov-03 at 21:08Are you still having an issue with this? Could you post logs from adb logcat
so we can pinpoint the actual error?
Thanks
QUESTION
I have a SignUp.js Component used to sign up users to my app. It is inspired/copied from this tutorial and is based on react-native-firebase starter kit.
...ANSWER
Answered 2018-Sep-18 at 19:15In your SignUp.test.js
Include this at the top of your file
import '@firebase/firestore'
so it looks like this
QUESTION
I'm trying to install react native firebase starter kit on a virtual machine running macOS 10.3 on windows 10. I'm totally new to macOS.
I started with cloning it then following the instructions: cd react-native-firebase-starter npm install cd ios then pod install (already installed cocoapods with sudo gems)
when i run pod install this error occurs:
CommandReport
/usr/local/bin/pod install
Stack
What did you do?
What did you expect to happen?
What happened instead?
Plugins
CocoaPods : 1.5.3 Ruby : ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17] RubyGems : 2.5.2 Host : Mac OS X 10.13.5 (17F77) Xcode : 9.4 (9F1027a) Git : git version 2.15.1 (Apple Git-101) Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib Repositories :
Podfile
cocoapods-deintegrate : 1.0.2 cocoapods-plugins : 1.0.0 cocoapods-search : 1.0.0 cocoapods-stats : 1.0.0 cocoapods-trunk : 1.3.1 cocoapods-try : 1.1.0
```ruby
Uncomment the next line to define a global platform for your project platform :ios, '9.0'target 'RNFirebaseStarter' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks!
# Pods for RNFirebaseStarter
# Required by RNFirebase pod 'Firebase/Core', '~> 5.3.0'
# [OPTIONAL PODS] - comment out pods for firebase products you won't be using. pod 'Firebase/AdMob', '~> 5.3.0' pod 'Firebase/Auth', '~> 5.3.0' pod 'Firebase/Crash', '~> 5.3.0' pod 'Firebase/Database', '~> 5.3.0' pod 'Firebase/Functions', '~> 5.3.0' pod 'Firebase/DynamicLinks', '~> 5.3.0' pod 'Firebase/Firestore', '~> 5.3.0' # pod 'Firebase/Invites', '~> 5.3.0' pod 'Firebase/Messaging', '~> 5.3.0' pod 'Firebase/RemoteConfig', '~> 5.3.0' pod 'Firebase/Storage', '~> 5.3.0' pod 'Firebase/Performance', '~> 5.3.0' pod 'Fabric', '~> 1.7.5' pod 'Crashlytics', '~> 3.10.4'
end ```
Error
Errno::EACCES - Permission denied @ dir_s_mkdir - /react-native-firebase-starter/ios/Pods /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:253:in `mkdir' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:253:in `fu_mkdir' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:227:in `block (2 levels) in mkdir_p' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:225:in `reverse_each' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:225:in `block in mkdir_p' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:211:in `each' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:211:in `mkdir_p' /Users/zolz/.gem/ruby/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/sandbox.rb:58:in `initialize' /Users/zolz/.gem/ruby/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/config.rb:184:in `new' /Users/zolz/.gem/ruby/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/config.rb:184:in `sandbox' /Users/zolz/.gem/ruby/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:140:in `installer_for_config' /Users/zolz/.gem/ruby/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:38:in `run' /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run' /Users/zolz/.gem/ruby/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run' /Users/zolz/.gem/ruby/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `' /usr/local/bin/pod:22:in `load' /usr/local/bin/pod:22:in `'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=Permission+denied+%40+dir_s_mkdir+-+%2Freact-native-firebase-starter%2Fios%2FPods&type=Issues
If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods... Found no similar issues. To create a new issue, please visit: https://github.com/cocoapods/cocoapods/issues/new
I already tried:
...ANSWER
Answered 2018-Oct-08 at 18:35Try pod cache clean --all
# will clean all pods
QUESTION
Explanation
I just started playing around with React Native and Firebase and I was wondering how to publish my app and the whole process. I understand so far that I have the opportunity to deploy my app to Firebase Hosting, and I did. But when I did, it created a HTML file named index.html and does not even include the app. I know that this is normal when talking about hosting websites, but the React Native app is built around JS files.
I ended up with this screen instead, https://pointtravels-1520169473363.firebaseapp.com/
The App
I simply downloaded and did the steps for the React Native Firebase Starter and then just did the Firebase initialization and deployment right afterwards with these instructions, https://firebase.google.com/docs/hosting/quickstart
You can find the app structure here, https://github.com/invertase/react-native-firebase-starter
The Firebase initialization created the following files,
firebase.json
{ "hosting": { "public": "public", "ignore": [ "firebase.json", "/.*", "/node_modules/**" ] } }
./public/index.html
- ./public/404.html
Question
How can I deploy my app and make it downloadable without publishing on the Google Play Store or the App Store?
Why
I would like to show my friends and family what I am working on.
I am still new in the app development community, so I hope that a nice soul wanna help me out with a brief explanation on how to do this.
Thanks in advance!
...ANSWER
Answered 2018-Mar-11 at 04:07Okay, so I realized that Firebase Hosting is focused on web-based applications only and not anything native. I found out that Google Cloud Platform actually have something called App Engine, which says it all. So I guess I learned something new today, hurray!
An app with Firebase integration this is the clearly the best choice.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-firebase-starter
1.1) git clone https://github.com/invertase/react-native-firebase-starter.git
1.2) cd react-native-firebase-starter - cd into your newly created project directory.
1.3) Install NPM packages with your package manager of choice - i.e run yarn or npm install
2.1) npm run rename - you'll be prompted to enter a project name and company name
2.2) Note down the package name value - you'll need this when setting up your Firebase project
3.1) cd ios and run pod install - if you don't have CocoaPods you can follow these instructions to install it.
4.1) [iOS] Follow the add firebase to your app instructions here to generate your GoogleService-Info.plist file if you haven't done so already - use the package name generated previously as your iOS bundle ID.
4.2) [iOS] Place this file in the ios/ directory of your project. Once added to the directory, add the file to your Xcode project using 'File > Add Files to "[YOUR APP NAME]"…' and selecting the plist file.
4.3) [Android] Follow the manually add firebase to your app instructions here to generate your google-services.json file if you haven't done so already - use the package name generated previously as your Android package name.
4.4) [Android] Place this file in the android/app/ directory of your project.
5.1) React Native Firebase Starter kit comes with AdMob pre-install. The default Sample AdMob App ID is used in both the info.plist [iOS] and the AndroidManifest.xml [Android] files. If you don't want to use AdMob, just remove it. If you do, be sure to update your ID!
5.2) [iOS] Remove or change in info.plist by editing the GADApplicationIdentifier key string.
5.3) [Android] Remove or change in AndroidManifest.xml by modifying the content of <meta-data /> tag within the <application /> tag.
5.4) More instrucation can be found here.
6.1) Start the react native packager, run yarn run start or npm start from the root of your project.
6.2) [iOS] Build and run the iOS app, run npm run ios or yarn run ios from the root of your project. The first build will take some time. This will automatically start up a simulator also for you on a successful build if one wasn't already started.
6.3) [Android] If you haven't already got an android device attached/emulator running then you'll need to get one running (make sure the emulator is with Google Play / APIs). When ready run npm run android or yarn run android from the root of your project.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page