Bladeren bron

Cambios primeros

ErnestoOrtiz2 3 jaren geleden
bovenliggende
commit
cf19e78002
3 gewijzigde bestanden met toevoegingen van 385 en 1124 verwijderingen
  1. 4
    2
      App.js
  2. 380
    1121
      package-lock.json
  3. 1
    1
      package.json

+ 4
- 2
App.js Bestand weergeven

@@ -14,7 +14,9 @@ export default function App() {
14 14
 
15 15
 
16 16
 // Import the functions you need from the SDKs you need
17
-import { initializeApp } from "firebase/app";
17
+// import { initializeApp } from "firebase/app";
18
+import firebase  from 'firebase';
19
+// expo install firebase
18 20
 // TODO: Add SDKs for Firebase products that you want to use
19 21
 // https://firebase.google.com/docs/web/setup#available-libraries
20 22
 
@@ -29,7 +31,7 @@ const firebaseConfig = {
29 31
 };
30 32
 
31 33
 // Initialize Firebase
32
-const app = initializeApp(firebaseConfig);
34
+const app = firebase.initializeApp(firebaseConfig);
33 35
 
34 36
 
35 37
 const styles = StyleSheet.create({

+ 380
- 1121
package-lock.json
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 1
- 1
package.json Bestand weergeven

@@ -10,7 +10,7 @@
10 10
   "dependencies": {
11 11
     "expo": "~42.0.1",
12 12
     "expo-status-bar": "~1.0.4",
13
-    "firebase": "^9.0.2",
13
+    "firebase": "8.2.3",
14 14
     "react": "16.13.1",
15 15
     "react-dom": "16.13.1",
16 16
     "react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",