I'm currently learning react native. I use firebase realtime database. after I initialized the configuration, I try to call .database(). but i got an error says database is not a function. anyone knows how to solve it?
import firebase from "firebase/app"
const firebaseConfig = {
....
}
firebase.initializeApp(firebaseConfig);
const db = firebase.database();
export default firebase
