Реагировать на родную версию Firebase. - PullRequest
0 голосов
/ 27 марта 2019

У меня есть зависимости ниже в app / gradle

  implementation project(':react-native-firebase')
    implementation "com.google.firebase:firebase-auth:11.+"
    implementation "com.google.firebase:firebase-core:11.+"
    implementation "com.google.firebase:firebase-firestore:11.+"
    implementation "com.google.firebase:firebase-database:11.+"
    // implementation "com.google.firebase:firebase-auth:11.+"
    implementation(project(':react-native-maps')) {
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
    implementation 'com.google.android.gms:play-services-base:11.+'
    implementation 'com.google.android.gms:play-services-maps:11.+'
    implementation 'com.google.android.gms:play-services-location:11.8.0'
    implementation project(':react-native-geolocation-service')
    // implementation project(':react-native-background-timer')
    // implementation project(':react-native-mauron85-background-geolocation')
    implementation project(':react-native-contacts')
    implementation project(':react-native-gesture-handler')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation "com.facebook.react:react-native:+"  // From node_modules

При указанной конфигурации запрос firebase не работает, он выдает ошибку с onsnapshot или событием с get () в обе стороны.

Когда я изменяю версию firebase согласно обновленным инструкциям

implementation project(':react-native-firebase')
    implementation "com.google.firebase:firebase-core:16.0.8"
    implementation "com.google.firebase:firebase-auth:16.2.0"
    implementation "com.google.firebase:firebase-database:16.1.0"
    implementation "com.google.firebase:firebase-firestore:18.1.0"
    implementation(project(':react-native-maps')) {
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }

    implementation 'com.google.android.gms:play-services-location:15.0.1'
    implementation project(':react-native-geolocation-service')
    implementation project(':react-native-contacts')
    implementation project(':react-native-gesture-handler')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation "com.facebook.react:react-native:+"  // From node_modules

приложение выходит из строя

Пожалуйста, помогите, так как я начал изучать его, так что не могу его получить

Спасибо

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...