Open jesster2k10 opened 4 years ago
It does not work, I'm trying it now.
initialize
method type. So I need to patch it using patch-package
.diff --git a/node_modules/firebase-firestorm/lib/store.d.ts b/node_modules/firebase-firestorm/lib/store.d.ts
index 426b4f1..1ab573c 100644
--- a/node_modules/firebase-firestorm/lib/store.d.ts
+++ b/node_modules/firebase-firestorm/lib/store.d.ts
@@ -1,11 +1,12 @@
import * as firebase from 'firebase/app';
import { IFireormConfig, IStore, IRepository } from './types';
+import { FirebaseFirestoreTypes } from '@react-native-firebase/firestore';
/**
* Initializes firestorm with an instance of firestore.
* @param firestore A firestore instance.
* @param config Configuration options for firestorm.
*/
-export declare const initialize: (firestore: firebase.firestore.Firestore, config?: IFireormConfig | undefined) => void;
+export declare const initialize: (firestore: FirebaseFirestoreTypes.Module, config?: IFireormConfig | undefined) => void;
/**
* Resets the store
*/
I've installed @babel/plugin-proposal-decorators
Then on babel.config.js
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }]
]
Hey, i’m looking to use this library’s it’s the rnfirebase.io library, i’m not sure if this works with it tho. I really hope so because this is exactly the type of library i’m looking for!