react-native-firebase

What are the differences between react-native-firebase & Firebase npm packages

放肆的年华 提交于 2020-12-15 03:42:20
问题 If I, for instance, wanted to use firebase's services in a react-native project for things like Auth, google cloud messenger, realtime database, push notifications, A/B testing, and crash reporting, would I choose to npm install the firebase package or the react-native-firebase package? What are the differences between the two? I'm confused because I thought react-native-firebase was utilizing the whole Firebase SDK which seems to make the Firebase package unnecessary? I found this link:

How to filter from two different arrays in react-native?

时光怂恿深爱的人放手 提交于 2020-11-29 19:51:30
问题 I need to display a history of expenses grouped using month and each month header should display the total expense of that month. I want a SectionList to display each months expenses and I'm using react-native firebase to store the data. But how do I filter the transactions based on month and display it under corresponding month header? componentDidMount() { //Querying firestore() .collection('expenses') .orderBy('dateTime', 'desc') .get() .then((querySnapshot) => { const expenses = [];

How to filter from two different arrays in react-native?

ぐ巨炮叔叔 提交于 2020-11-29 19:50:09
问题 I need to display a history of expenses grouped using month and each month header should display the total expense of that month. I want a SectionList to display each months expenses and I'm using react-native firebase to store the data. But how do I filter the transactions based on month and display it under corresponding month header? componentDidMount() { //Querying firestore() .collection('expenses') .orderBy('dateTime', 'desc') .get() .then((querySnapshot) => { const expenses = [];