Skip to content

Instantly share code, notes, and snippets.

View codyswain's full-sized avatar

Cody Swain codyswain

View GitHub Profile
@codyswain
codyswain / Firebase.js
Last active November 29, 2018 06:12
Don't pay attention to the api key in the code. The variable assignment on HomeScreen.js at line 34 returns a Promise but no data. Line 56 of firebase.js prints out the data correctly.
import * as firebase from 'firebase'
import 'firebase/firestore';
class FireBase {
constructor() {
let config = {
apiKey: "AIzaSyAO8BB0W6mXDr3ihvkMn-uJjopgfsf_qow",
authDomain: "cherishly-412dd.firebaseapp.com",
databaseURL: "https://cherishly-412dd.firebaseio.com",
projectId: "cherishly-412dd",
@codyswain
codyswain / Firebase.js
Created November 29, 2018 06:05
The only important line of HomeScreen.js is line 34. The variable assignment here returns a Promise but no data.
import * as firebase from 'firebase'
import 'firebase/firestore';
class FireBase {
constructor() {
let config = {
apiKey: "AIzaSyAO8BB0W6mXDr3ihvkMn-uJjopgfsf_qow",
authDomain: "cherishly-412dd.firebaseapp.com",
databaseURL: "https://cherishly-412dd.firebaseio.com",
projectId: "cherishly-412dd",