Expo and react-native-firebase
I'm trying to integrate Firebase into my expo app using the react-native-firebase framework which has several advantages over the regular firebase
package when it comes to react-native apps.
However, I'm running into difficulties since the instructions say I must add the GoogleService-Info.plist
to ios/[YOUR APP NAME]/GoogleService-Info.plist
, and expo apps don't have an ios folder from what I understand.
Am I pretty much screwed or is there a solution for this?
firebase react-native expo react-native-firebase
add a comment |
I'm trying to integrate Firebase into my expo app using the react-native-firebase framework which has several advantages over the regular firebase
package when it comes to react-native apps.
However, I'm running into difficulties since the instructions say I must add the GoogleService-Info.plist
to ios/[YOUR APP NAME]/GoogleService-Info.plist
, and expo apps don't have an ios folder from what I understand.
Am I pretty much screwed or is there a solution for this?
firebase react-native expo react-native-firebase
add a comment |
I'm trying to integrate Firebase into my expo app using the react-native-firebase framework which has several advantages over the regular firebase
package when it comes to react-native apps.
However, I'm running into difficulties since the instructions say I must add the GoogleService-Info.plist
to ios/[YOUR APP NAME]/GoogleService-Info.plist
, and expo apps don't have an ios folder from what I understand.
Am I pretty much screwed or is there a solution for this?
firebase react-native expo react-native-firebase
I'm trying to integrate Firebase into my expo app using the react-native-firebase framework which has several advantages over the regular firebase
package when it comes to react-native apps.
However, I'm running into difficulties since the instructions say I must add the GoogleService-Info.plist
to ios/[YOUR APP NAME]/GoogleService-Info.plist
, and expo apps don't have an ios folder from what I understand.
Am I pretty much screwed or is there a solution for this?
firebase react-native expo react-native-firebase
firebase react-native expo react-native-firebase
edited Oct 10 '17 at 8:12
Salakar
2,64911317
2,64911317
asked Oct 5 '17 at 18:06


MarksCodeMarksCode
1,21011855
1,21011855
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
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. More info here and here and here.
If you use Expo and would like to use this package, you'll need to
eject. If you do not want to eject, 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.
Well that blows. oh well, thanks
– MarksCode
Oct 5 '17 at 18:18
add a comment |
Today, you can't have the Firebase react-native sdk with expo. And this is not planned according to: https://expo.canny.io/feature-requests/p/full-native-firebase-integration.
So you have to play only with the javascript sdk from Firebase.
Cloud Firestore is new, it will be better for the javascript sdk for offline and sync.
What a bummer...
– MarksCode
Oct 5 '17 at 18:19
I know! I needed it too.
– Wandrille
Oct 5 '17 at 18:21
So what am I giving up by using the regular firebase sdk? Performance, offline, and what else?
– MarksCode
Oct 5 '17 at 18:24
check here: github.com/invertase/react-native-firebase. But that Firestore, offline, performance will change with the new Cloud Firestore
– Wandrille
Oct 5 '17 at 18:26
Do you know how annoying it is to develop once you've ejected? Is it pretty much the same or is it way more cumbersome?
– MarksCode
Oct 5 '17 at 18:34
|
show 1 more comment
The author of this thread: Fresh Detached Expo + RNFirebase not running on Android has managed to get it working with the Detached ExpoKit
- so it's not a full ejection and keeps the expo features.
I have asked for the steps he took so we can see about getting something added to our docs and possibly a Detached ExpoKit version of our starter app.
See the expokit detaching docs for information about ExpoKit.
add a comment |
I managed to get a working set of react-native with redux, firestore and expo. See Code example at Github.
But it costs the offline-persistence (see https://github.com/firebase/firebase-js-sdk/issues/436). So from my point of view it costs performance, because i need to be online to get a full working app with firestore and react-native.
add a comment |
It's in progress --
https://blog.expo.io/using-firebase-in-expo-e13844061832
Using Firebase in Expo
And how we plan on adding it to the client 😁
We are super excited to announce that we will be rolling out a suite of Unimodules that will provide you with easy access to native Firebase features! initially you will only be able to use these in a detached ExpoKit App. But over time we will be working to add these to vanilla Expo.
TL;DR
Here are the modules, you will need to detach to add them for now:
- App/Core
- Analytics
- Authentication
- Cloud Firestore
- Cloud Functions
- Instance ID
- Performance Monitor
- Realtime Database
- Cloud Storage
- Remote Config
- Firebase Cloud Messaging
- Remote Notifications
- Dynamic Linking
- Invites
- Crashlytics
Also TL;DR
Here is a boilerplate: https://github.com/EvanBacon/expo-native-firebase
Thanks for the downvotes. The 2 top answers state that this is impossible and work isn't planned but a new blog post says this capability will be coming out soon.
– MattPark
Dec 3 '18 at 16:02
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46592147%2fexpo-and-react-native-firebase%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
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. More info here and here and here.
If you use Expo and would like to use this package, you'll need to
eject. If you do not want to eject, 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.
Well that blows. oh well, thanks
– MarksCode
Oct 5 '17 at 18:18
add a comment |
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. More info here and here and here.
If you use Expo and would like to use this package, you'll need to
eject. If you do not want to eject, 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.
Well that blows. oh well, thanks
– MarksCode
Oct 5 '17 at 18:18
add a comment |
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. More info here and here and here.
If you use Expo and would like to use this package, you'll need to
eject. If you do not want to eject, 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.
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. More info here and here and here.
If you use Expo and would like to use this package, you'll need to
eject. If you do not want to eject, 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.
answered Oct 5 '17 at 18:08


bennygenelbennygenel
12.7k32548
12.7k32548
Well that blows. oh well, thanks
– MarksCode
Oct 5 '17 at 18:18
add a comment |
Well that blows. oh well, thanks
– MarksCode
Oct 5 '17 at 18:18
Well that blows. oh well, thanks
– MarksCode
Oct 5 '17 at 18:18
Well that blows. oh well, thanks
– MarksCode
Oct 5 '17 at 18:18
add a comment |
Today, you can't have the Firebase react-native sdk with expo. And this is not planned according to: https://expo.canny.io/feature-requests/p/full-native-firebase-integration.
So you have to play only with the javascript sdk from Firebase.
Cloud Firestore is new, it will be better for the javascript sdk for offline and sync.
What a bummer...
– MarksCode
Oct 5 '17 at 18:19
I know! I needed it too.
– Wandrille
Oct 5 '17 at 18:21
So what am I giving up by using the regular firebase sdk? Performance, offline, and what else?
– MarksCode
Oct 5 '17 at 18:24
check here: github.com/invertase/react-native-firebase. But that Firestore, offline, performance will change with the new Cloud Firestore
– Wandrille
Oct 5 '17 at 18:26
Do you know how annoying it is to develop once you've ejected? Is it pretty much the same or is it way more cumbersome?
– MarksCode
Oct 5 '17 at 18:34
|
show 1 more comment
Today, you can't have the Firebase react-native sdk with expo. And this is not planned according to: https://expo.canny.io/feature-requests/p/full-native-firebase-integration.
So you have to play only with the javascript sdk from Firebase.
Cloud Firestore is new, it will be better for the javascript sdk for offline and sync.
What a bummer...
– MarksCode
Oct 5 '17 at 18:19
I know! I needed it too.
– Wandrille
Oct 5 '17 at 18:21
So what am I giving up by using the regular firebase sdk? Performance, offline, and what else?
– MarksCode
Oct 5 '17 at 18:24
check here: github.com/invertase/react-native-firebase. But that Firestore, offline, performance will change with the new Cloud Firestore
– Wandrille
Oct 5 '17 at 18:26
Do you know how annoying it is to develop once you've ejected? Is it pretty much the same or is it way more cumbersome?
– MarksCode
Oct 5 '17 at 18:34
|
show 1 more comment
Today, you can't have the Firebase react-native sdk with expo. And this is not planned according to: https://expo.canny.io/feature-requests/p/full-native-firebase-integration.
So you have to play only with the javascript sdk from Firebase.
Cloud Firestore is new, it will be better for the javascript sdk for offline and sync.
Today, you can't have the Firebase react-native sdk with expo. And this is not planned according to: https://expo.canny.io/feature-requests/p/full-native-firebase-integration.
So you have to play only with the javascript sdk from Firebase.
Cloud Firestore is new, it will be better for the javascript sdk for offline and sync.
answered Oct 5 '17 at 18:13
WandrilleWandrille
1,3571822
1,3571822
What a bummer...
– MarksCode
Oct 5 '17 at 18:19
I know! I needed it too.
– Wandrille
Oct 5 '17 at 18:21
So what am I giving up by using the regular firebase sdk? Performance, offline, and what else?
– MarksCode
Oct 5 '17 at 18:24
check here: github.com/invertase/react-native-firebase. But that Firestore, offline, performance will change with the new Cloud Firestore
– Wandrille
Oct 5 '17 at 18:26
Do you know how annoying it is to develop once you've ejected? Is it pretty much the same or is it way more cumbersome?
– MarksCode
Oct 5 '17 at 18:34
|
show 1 more comment
What a bummer...
– MarksCode
Oct 5 '17 at 18:19
I know! I needed it too.
– Wandrille
Oct 5 '17 at 18:21
So what am I giving up by using the regular firebase sdk? Performance, offline, and what else?
– MarksCode
Oct 5 '17 at 18:24
check here: github.com/invertase/react-native-firebase. But that Firestore, offline, performance will change with the new Cloud Firestore
– Wandrille
Oct 5 '17 at 18:26
Do you know how annoying it is to develop once you've ejected? Is it pretty much the same or is it way more cumbersome?
– MarksCode
Oct 5 '17 at 18:34
What a bummer...
– MarksCode
Oct 5 '17 at 18:19
What a bummer...
– MarksCode
Oct 5 '17 at 18:19
I know! I needed it too.
– Wandrille
Oct 5 '17 at 18:21
I know! I needed it too.
– Wandrille
Oct 5 '17 at 18:21
So what am I giving up by using the regular firebase sdk? Performance, offline, and what else?
– MarksCode
Oct 5 '17 at 18:24
So what am I giving up by using the regular firebase sdk? Performance, offline, and what else?
– MarksCode
Oct 5 '17 at 18:24
check here: github.com/invertase/react-native-firebase. But that Firestore, offline, performance will change with the new Cloud Firestore
– Wandrille
Oct 5 '17 at 18:26
check here: github.com/invertase/react-native-firebase. But that Firestore, offline, performance will change with the new Cloud Firestore
– Wandrille
Oct 5 '17 at 18:26
Do you know how annoying it is to develop once you've ejected? Is it pretty much the same or is it way more cumbersome?
– MarksCode
Oct 5 '17 at 18:34
Do you know how annoying it is to develop once you've ejected? Is it pretty much the same or is it way more cumbersome?
– MarksCode
Oct 5 '17 at 18:34
|
show 1 more comment
The author of this thread: Fresh Detached Expo + RNFirebase not running on Android has managed to get it working with the Detached ExpoKit
- so it's not a full ejection and keeps the expo features.
I have asked for the steps he took so we can see about getting something added to our docs and possibly a Detached ExpoKit version of our starter app.
See the expokit detaching docs for information about ExpoKit.
add a comment |
The author of this thread: Fresh Detached Expo + RNFirebase not running on Android has managed to get it working with the Detached ExpoKit
- so it's not a full ejection and keeps the expo features.
I have asked for the steps he took so we can see about getting something added to our docs and possibly a Detached ExpoKit version of our starter app.
See the expokit detaching docs for information about ExpoKit.
add a comment |
The author of this thread: Fresh Detached Expo + RNFirebase not running on Android has managed to get it working with the Detached ExpoKit
- so it's not a full ejection and keeps the expo features.
I have asked for the steps he took so we can see about getting something added to our docs and possibly a Detached ExpoKit version of our starter app.
See the expokit detaching docs for information about ExpoKit.
The author of this thread: Fresh Detached Expo + RNFirebase not running on Android has managed to get it working with the Detached ExpoKit
- so it's not a full ejection and keeps the expo features.
I have asked for the steps he took so we can see about getting something added to our docs and possibly a Detached ExpoKit version of our starter app.
See the expokit detaching docs for information about ExpoKit.
answered Oct 9 '17 at 4:09
SalakarSalakar
2,64911317
2,64911317
add a comment |
add a comment |
I managed to get a working set of react-native with redux, firestore and expo. See Code example at Github.
But it costs the offline-persistence (see https://github.com/firebase/firebase-js-sdk/issues/436). So from my point of view it costs performance, because i need to be online to get a full working app with firestore and react-native.
add a comment |
I managed to get a working set of react-native with redux, firestore and expo. See Code example at Github.
But it costs the offline-persistence (see https://github.com/firebase/firebase-js-sdk/issues/436). So from my point of view it costs performance, because i need to be online to get a full working app with firestore and react-native.
add a comment |
I managed to get a working set of react-native with redux, firestore and expo. See Code example at Github.
But it costs the offline-persistence (see https://github.com/firebase/firebase-js-sdk/issues/436). So from my point of view it costs performance, because i need to be online to get a full working app with firestore and react-native.
I managed to get a working set of react-native with redux, firestore and expo. See Code example at Github.
But it costs the offline-persistence (see https://github.com/firebase/firebase-js-sdk/issues/436). So from my point of view it costs performance, because i need to be online to get a full working app with firestore and react-native.
answered Jan 27 '18 at 19:52


Matthias WegnerMatthias Wegner
368
368
add a comment |
add a comment |
It's in progress --
https://blog.expo.io/using-firebase-in-expo-e13844061832
Using Firebase in Expo
And how we plan on adding it to the client 😁
We are super excited to announce that we will be rolling out a suite of Unimodules that will provide you with easy access to native Firebase features! initially you will only be able to use these in a detached ExpoKit App. But over time we will be working to add these to vanilla Expo.
TL;DR
Here are the modules, you will need to detach to add them for now:
- App/Core
- Analytics
- Authentication
- Cloud Firestore
- Cloud Functions
- Instance ID
- Performance Monitor
- Realtime Database
- Cloud Storage
- Remote Config
- Firebase Cloud Messaging
- Remote Notifications
- Dynamic Linking
- Invites
- Crashlytics
Also TL;DR
Here is a boilerplate: https://github.com/EvanBacon/expo-native-firebase
Thanks for the downvotes. The 2 top answers state that this is impossible and work isn't planned but a new blog post says this capability will be coming out soon.
– MattPark
Dec 3 '18 at 16:02
add a comment |
It's in progress --
https://blog.expo.io/using-firebase-in-expo-e13844061832
Using Firebase in Expo
And how we plan on adding it to the client 😁
We are super excited to announce that we will be rolling out a suite of Unimodules that will provide you with easy access to native Firebase features! initially you will only be able to use these in a detached ExpoKit App. But over time we will be working to add these to vanilla Expo.
TL;DR
Here are the modules, you will need to detach to add them for now:
- App/Core
- Analytics
- Authentication
- Cloud Firestore
- Cloud Functions
- Instance ID
- Performance Monitor
- Realtime Database
- Cloud Storage
- Remote Config
- Firebase Cloud Messaging
- Remote Notifications
- Dynamic Linking
- Invites
- Crashlytics
Also TL;DR
Here is a boilerplate: https://github.com/EvanBacon/expo-native-firebase
Thanks for the downvotes. The 2 top answers state that this is impossible and work isn't planned but a new blog post says this capability will be coming out soon.
– MattPark
Dec 3 '18 at 16:02
add a comment |
It's in progress --
https://blog.expo.io/using-firebase-in-expo-e13844061832
Using Firebase in Expo
And how we plan on adding it to the client 😁
We are super excited to announce that we will be rolling out a suite of Unimodules that will provide you with easy access to native Firebase features! initially you will only be able to use these in a detached ExpoKit App. But over time we will be working to add these to vanilla Expo.
TL;DR
Here are the modules, you will need to detach to add them for now:
- App/Core
- Analytics
- Authentication
- Cloud Firestore
- Cloud Functions
- Instance ID
- Performance Monitor
- Realtime Database
- Cloud Storage
- Remote Config
- Firebase Cloud Messaging
- Remote Notifications
- Dynamic Linking
- Invites
- Crashlytics
Also TL;DR
Here is a boilerplate: https://github.com/EvanBacon/expo-native-firebase
It's in progress --
https://blog.expo.io/using-firebase-in-expo-e13844061832
Using Firebase in Expo
And how we plan on adding it to the client 😁
We are super excited to announce that we will be rolling out a suite of Unimodules that will provide you with easy access to native Firebase features! initially you will only be able to use these in a detached ExpoKit App. But over time we will be working to add these to vanilla Expo.
TL;DR
Here are the modules, you will need to detach to add them for now:
- App/Core
- Analytics
- Authentication
- Cloud Firestore
- Cloud Functions
- Instance ID
- Performance Monitor
- Realtime Database
- Cloud Storage
- Remote Config
- Firebase Cloud Messaging
- Remote Notifications
- Dynamic Linking
- Invites
- Crashlytics
Also TL;DR
Here is a boilerplate: https://github.com/EvanBacon/expo-native-firebase
answered Nov 21 '18 at 19:59
MattParkMattPark
89110
89110
Thanks for the downvotes. The 2 top answers state that this is impossible and work isn't planned but a new blog post says this capability will be coming out soon.
– MattPark
Dec 3 '18 at 16:02
add a comment |
Thanks for the downvotes. The 2 top answers state that this is impossible and work isn't planned but a new blog post says this capability will be coming out soon.
– MattPark
Dec 3 '18 at 16:02
Thanks for the downvotes. The 2 top answers state that this is impossible and work isn't planned but a new blog post says this capability will be coming out soon.
– MattPark
Dec 3 '18 at 16:02
Thanks for the downvotes. The 2 top answers state that this is impossible and work isn't planned but a new blog post says this capability will be coming out soon.
– MattPark
Dec 3 '18 at 16:02
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46592147%2fexpo-and-react-native-firebase%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown