我正在使用.on('value')在一个Firebase节点上设置一个侦听器,然后尝试在DB使用.then()两次添加一个附加值后链接多个promises。然而,我得到了错误firebase.database().ref().on(...., *) 'callback' must be a function 有办法解决这个问题吗?
Type io.invertase.firebase.BuildConfig is defined multiple times: /path/node_modules/@react-native-firebase:react-native:+" // From node_modules
implementation
我正在使用@react-native-firebase/messaging。当我尝试在android中运行该项目时,它返回错误 :react-native-firebase_messaging has not defined a default in project.ext.'react-native'.versions.android.compileSdk in its build.gradle file.