From c7a02a1658343ab00c77fc4266fd3163e745abc2 Mon Sep 17 00:00:00 2001 From: Salakar Date: Fri, 3 Apr 2020 14:12:50 +0100 Subject: [PATCH] chore(docs): prettier & gen new typedocs --- docs/admob/displaying-ads.md | 32 +--- docs/admob/european-user-consent.md | 13 +- docs/admob/usage/index.md | 2 +- docs/analytics/usage/index.md | 4 +- docs/app/utils.md | 6 +- docs/auth/phone-auth.md | 11 +- docs/auth/social-auth.md | 34 ++-- docs/auth/usage/index.md | 46 ++--- docs/contributing.md | 8 +- docs/crashlytics/android-setup.md | 8 +- docs/crashlytics/crash-reports.md | 10 +- docs/crashlytics/usage/index.md | 16 +- docs/database/offline-support.md | 24 +-- docs/database/presence-detection.md | 16 +- docs/database/usage/index.md | 73 ++++---- docs/dynamic-links/usage/index.md | 17 +- docs/firestore/enabling-multidex.md | 6 +- docs/firestore/usage-with-flatlists.md | 42 +++-- docs/firestore/usage/index.md | 168 ++++++++++-------- docs/firestore/usage/installation/android.md | 4 +- docs/functions/usage/index.md | 14 +- docs/functions/writing-deploying-functions.md | 23 ++- docs/iid/usage/index.md | 6 +- docs/in-app-messaging/usage/index.md | 24 +-- docs/index.md | 16 +- docs/messaging/ios-permissions.md | 18 +- docs/messaging/notifications.md | 18 +- docs/messaging/server-integration.md | 35 ++-- docs/messaging/usage/index.md | 56 +++--- docs/messaging/usage/installation/android.md | 3 +- docs/ml-natural-language/usage/index.md | 27 +-- docs/ml-vision/barcode-scanning.md | 13 +- docs/ml-vision/face-detection.md | 17 +- docs/ml-vision/image-labelling.md | 21 +-- docs/ml-vision/landmark-recognition.md | 9 +- docs/ml-vision/text-recognition.md | 16 +- docs/ml-vision/usage/index.md | 20 +-- docs/perf/axios-integration.md | 2 +- docs/perf/usage/index.md | 30 ++-- docs/perf/usage/installation/android.md | 1 - docs/releases/index.md | 4 +- docs/releases/v6.0.0.md | 4 +- docs/releases/v6.4.0.md | 1 - docs/remote-config/index.md | 1 - docs/remote-config/usage/index.md | 15 +- docs/storage/usage/index.md | 46 +++-- docs/typedoc.json | 8 - docs/typedoc.min.json | 2 +- docs/typescript.md | 8 +- 49 files changed, 492 insertions(+), 506 deletions(-) diff --git a/docs/admob/displaying-ads.md b/docs/admob/displaying-ads.md index 874264e8..d11f09af 100644 --- a/docs/admob/displaying-ads.md +++ b/docs/admob/displaying-ads.md @@ -20,9 +20,7 @@ Google AdMob dashboard under "Ad units" should be used: ```js import { InterstitialAd, TestIds } from '@react-native-firebase/admob'; -const adUnitId = __DEV__ - ? TestIds.INTERSTITIAL - : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; +const adUnitId = __DEV__ ? TestIds.INTERSTITIAL : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; const interstitial = InterstitialAd.createForAdRequest(adUnitId, { requestNonPersonalizedAdsOnly: true, @@ -43,15 +41,9 @@ To listen to events, such as when the advert from the network has loaded or when ```jsx import React, { useEffect, useState } from 'react'; import { Button } from 'react-native'; -import { - InterstitialAd, - AdEventType, - TestIds, -} from '@react-native-firebase/admob'; +import { InterstitialAd, AdEventType, TestIds } from '@react-native-firebase/admob'; -const adUnitId = __DEV__ - ? TestIds.INTERSTITIAL - : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; +const adUnitId = __DEV__ ? TestIds.INTERSTITIAL : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; const interstitial = InterstitialAd.createForAdRequest(adUnitId, { requestNonPersonalizedAdsOnly: true, @@ -120,9 +112,7 @@ Google AdMob dashboard under "Ad units" should be used: ```js import { RewardedAd, TestIds } from '@react-native-firebase/admob'; -const adUnitId = __DEV__ - ? TestIds.INTERSTITIAL - : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; +const adUnitId = __DEV__ ? TestIds.INTERSTITIAL : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; const rewarded = RewardedAd.createForAdRequest(adUnitId, { requestNonPersonalizedAdsOnly: true, @@ -143,15 +133,9 @@ To listen to events, such as when the advert from the network has loaded or when ```js import React, { useEffect, useState } from 'react'; import { Button } from 'react-native'; -import { - RewardedAd, - RewardedAdEventType, - TestIds, -} from '@react-native-firebase/admob'; +import { RewardedAd, RewardedAdEventType, TestIds } from '@react-native-firebase/admob'; -const adUnitId = __DEV__ - ? TestIds.REWARDED - : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; +const adUnitId = __DEV__ ? TestIds.REWARDED : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; const rewarded = RewardedAd.createForAdRequest(adUnitId, { requestNonPersonalizedAdsOnly: true, @@ -224,9 +208,7 @@ a banner: import React from 'react'; import { BannerAd, BannerAdSize, TestIds } from '@react-native-firebase/admob'; -const adUnitId = __DEV__ - ? TestIds.BANNER - : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; +const adUnitId = __DEV__ ? TestIds.BANNER : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy'; function App() { return ( diff --git a/docs/admob/european-user-consent.md b/docs/admob/european-user-consent.md index 91900e3a..8d3311f6 100644 --- a/docs/admob/european-user-consent.md +++ b/docs/admob/european-user-consent.md @@ -76,9 +76,7 @@ To request consent, call the method as early as possible within your app before ```js import { AdsConsent } from '@react-native-firebase/admob'; -const consentInfo = await AdsConsent.requestInfoUpdate([ - 'pub-6189033257628123', -]); +const consentInfo = await AdsConsent.requestInfoUpdate(['pub-6189033257628123']); ``` The result of the method returns an `AdsConsentInfo` interface, which provides information about the users status and location: @@ -130,9 +128,7 @@ You must provide a privacy policy URL. ```js import { AdsConsent, AdsConsentStatus } from '@react-native-firebase/admob'; -const consentInfo = await AdsConsent.requestInfoUpdate([ - 'pub-6189033257628123', -]); +const consentInfo = await AdsConsent.requestInfoUpdate(['pub-6189033257628123']); if ( consentInfo.isRequestLocationInEeaOrUnknown && @@ -220,10 +216,7 @@ To set a debug location, use the `setDebugGeography` method. It accepts 3 values For example: ```js -import { - AdsConsent, - AdsConsentDebugGeography, -} from '@react-native-firebase/admob'; +import { AdsConsent, AdsConsentDebugGeography } from '@react-native-firebase/admob'; await AdsConsent.setDebugGeography(AdsConsentDebugGeography.EEA); ``` diff --git a/docs/admob/usage/index.md b/docs/admob/usage/index.md index bf3ab1d2..d6284a74 100644 --- a/docs/admob/usage/index.md +++ b/docs/admob/usage/index.md @@ -89,7 +89,7 @@ npx react-native run-android ## Configure outbound requests Before requesting ads, you must tell the AdMob network what type of content you'd wish to receive based on your target -audience. +audience. For example, if the application targets children then you must configure the outbound requests to only receive content suitable for children before loading any adverts. diff --git a/docs/analytics/usage/index.md b/docs/analytics/usage/index.md index a9c32c0f..9c9c08fc 100644 --- a/docs/analytics/usage/index.md +++ b/docs/analytics/usage/index.md @@ -70,8 +70,8 @@ function App() { ## Pre-defined Events -To help you get started, Analytics provides a number of [event methods](/reference/analytics) that are common among -different types of apps, including retail and ecommerce, travel, and gaming apps. To learn more about these events and +To help you get started, Analytics provides a number of [event methods](/reference/analytics) that are common among +different types of apps, including retail and ecommerce, travel, and gaming apps. To learn more about these events and when to use them, browse the [Events and properties](https://support.google.com/analytics/answer/9322688?hl=en&ref_topic=9267641) articles in the Firebase Help Center. diff --git a/docs/app/utils.md b/docs/app/utils.md index 5929bca5..523d1dec 100644 --- a/docs/app/utils.md +++ b/docs/app/utils.md @@ -5,7 +5,7 @@ next: /crashlytics/usage previous: /app/usage --- -The App module also provides access to some handy utility methods which have been exposed to aid with your +The App module also provides access to some handy utility methods which have been exposed to aid with your development. # File Paths @@ -31,13 +31,13 @@ and screenshots—in the Firebase console. It is useful to change the apps configuration if it is being run in Test Lab, for example disabling Analytics data collection. Such functionality can be carried out by taking advantage of the `isRunningInTestLab`. - + > Be aware, `isRunningInTestLab` is Android only property! ```js import { utils } from '@react-native-firebase/app'; import analytics from '@react-native-firebase/analytics'; - + async function bootstrap() { if (utils().isRunningInTestLab) { await analytics().setAnalyticsCollectionEnabled(false); diff --git a/docs/auth/phone-auth.md b/docs/auth/phone-auth.md index 099ffdf8..2a3449e8 100644 --- a/docs/auth/phone-auth.md +++ b/docs/auth/phone-auth.md @@ -15,7 +15,7 @@ end-user consent prior to using the Firebase Authentication phone number sign-in > Firebase Phone Auth is not supported in all countries. Please see their [FAQs](https://firebase.google.com/support/faq/#develop) for more information. -Ensure the "Phone" sign-in provider is enabled on the [Firebase Console](https://console.firebase.google.com/project/_/authentication/providers). +Ensure the "Phone" sign-in provider is enabled on the [Firebase Console](https://console.firebase.google.com/project/_/authentication/providers). # Sign-in @@ -62,10 +62,7 @@ function PhoneSignIn() { return ( <> setCode(text)} /> -