Browse Source

firbase fix

eduardo-santin 2 years ago
parent
commit
0530f8bda8
3 changed files with 385 additions and 1124 deletions
  1. 4
    2
      App.js
  2. 380
    1121
      package-lock.json
  3. 1
    1
      package.json

+ 4
- 2
App.js View File

14
 
14
 
15
 
15
 
16
 // Import the functions you need from the SDKs you need
16
 // Import the functions you need from the SDKs you need
17
-import { initializeApp } from "firebase/app";
17
+// import { initializeApp } from "firebase/app";
18
 // TODO: Add SDKs for Firebase products that you want to use
18
 // TODO: Add SDKs for Firebase products that you want to use
19
 // https://firebase.google.com/docs/web/setup#available-libraries
19
 // https://firebase.google.com/docs/web/setup#available-libraries
20
 
20
 
21
+import firebase from "firebase";
22
+
21
 // Your web app's Firebase configuration
23
 // Your web app's Firebase configuration
22
 const firebaseConfig = {
24
 const firebaseConfig = {
23
   apiKey: "AIzaSyDW-ABAQ3r_WR7C7WC_3VprL77NcAoitJI",
25
   apiKey: "AIzaSyDW-ABAQ3r_WR7C7WC_3VprL77NcAoitJI",
29
 };
31
 };
30
 
32
 
31
 // Initialize Firebase
33
 // Initialize Firebase
32
-const app = initializeApp(firebaseConfig);
34
+const app = firebase.initializeApp(firebaseConfig);
33
 
35
 
34
 
36
 
35
 const styles = StyleSheet.create({
37
 const styles = StyleSheet.create({

+ 380
- 1121
package-lock.json
File diff suppressed because it is too large
View File


+ 1
- 1
package.json View File

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