Useful or not, from you.
react-native-firebase Error: 400: Your project does not own Dynamic Links domain:

<!--- BEFORE YOU MAKE AN ISSUE

The issue list of this repo is exclusively for bug reports.

  1. For feature requests, please use our Canny board: https://react-native-firebase.canny.io/feature-requests

  2. For questions and support please use our Discord chat: https://discord.gg/C9aK28N or Stack Overflow: https://stackoverflow.com/questions/tagged/react-native-firebase

  3. If this is a setup issue then please make sure you've correctly followed the setup guides, most setup issues such as 'duplicate dex files', 'default app has not been initialized' etc are all down to an incorrect setup as the guides haven't been correctly followed. -->

Issue

Getting an error: "Error: 400: Your project does not own Dynamic Links domain:" while try to create short dynamic link, when create usual link, it works fine!

Code for the creating short dynamic link:

onClickShare= () => {
const link =
    new firebase.links.DynamicLink(redirectLink , Config.FIREBASE_CONFIG.dynamicLink)
      .android.setPackageName(Config.ANDROID_PACKAGE_NAME)
      .ios.setBundleId(Config.IOS_BUNDLE_ID)
      .ios.setAppStoreId(Config.IOS_APP_STORE_ID)
      .social.setDescriptionText(description)
      .social.setTitle(this.props.event.title)

      firebase.links()
      .createShortDynamicLink(link, 'SHORT')
      .then((url) => {
      Share.share({
        message: _('shareLinkMessage') + " " + url,
        title: _('shareLinkTitle'),
       }, {
        // Android only:
        dialogTitle:  _('shareLinkAndroid'),
        })
      })  

<!--- Please write your issue here, provide as much detail as you can, code snippets, key files which will help us to debug such as your Podfile and/or app/build.gradle file). -->

Environment

<!--- (e.g. iOS, Android, Both) ---> Android

  1. Application Target Platform: macOS Sierra <!--- (e.g. macOS Sierra, Windows 10) --->

  2. Development Operating System:

Xcode 10.2 Android studio 3.0.1

<!--- (Xcode or Android Studio version, iOS or Android SDK version - if relevant) --->

  1. React Native version: 0.47.2

<!--- (e.g. 2.1.3) --->

  1. RNFirebase Version: 4.0.3

<!--- (e.g. database, auth, messaging, analytics etc - or N/A if not applicable) --->

  1. Firebase Module:

dynamic links

<!-- Love react-native-firebase? Please consider supporting our collective: 👉 https://opencollective.com/react-native-firebase/donate -->

That's a useful answer
Without any help

@chrisbianca - We have added custom domain and got the right api-key. How should we configure a project for Dynamic Links? { "error": { "code": 400, "message": "Your project has not configured Dynamic Links. [https://firebase.google.com/docs/dynamic-links/rest#before_you_begin]", "status": "INVALID_ARGUMENT" } }