How to use @react-native-firebase/common - 10 common examples

To help you get started, weโ€™ve selected a few @react-native-firebase/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github invertase / react-native-firebase / packages / ml-vision / lib / VisionCloudDocumentTextRecognizerOptions.js View on Github external
setLanguageHints(hintedLanguages) {
    // quick check the first entry is a string only
    if (!isArray(hintedLanguages) || !hintedLanguages.length || !isString(hintedLanguages[0])) {
      throw new Error(
        `firebase.mlKitVision() VisionCloudTextRecognizerOptions.setLanguageHints(*) 'hintedLanguages' must be an non empty array of strings.`,
      );
    }

    return this.set('hintedLanguages', hintedLanguages);
  }
}
github invertase / react-native-firebase / packages / analytics / lib / structs.js View on Github external
destination: 'string?',
});

export const Search = struct({
  search_term: 'string',
  number_of_nights: 'number?',
  number_of_rooms: 'number?',
  number_of_passengers: 'number?',
  origin: 'string?',
  destination: 'string?',
  start_date: 'shortDate?',
  end_date: 'shortDate?',
  travel_class: 'string?',
});

export const SelectContent = struct({
  content_type: 'string',
  item_id: 'string',
});

export const Share = struct({
  content_type: 'string',
  item_id: 'string',
});

export const SignUp = struct({
  method: 'string',
});

export const SpendVirtualCurrency = struct({
  item_name: 'string',
  virtual_currency_name: 'string',
github invertase / react-native-firebase / packages / analytics / lib / structs.js View on Github external
export const LevelEnd = struct({
  level: 'number',
  success: 'string?',
});

export const LevelStart = struct({
  level: 'number',
});

export const LevelUp = struct({
  level: 'number',
  character: 'string?',
});

export const Login = struct({
  method: 'string',
});

export const PostScore = struct({
  score: 'int',
  level: 'int?',
  character: 'string?',
});

export const PresentOffer = struct({
  item_id: 'string',
  item_name: 'string',
  item_category: 'string',
  quantity: 'int',
  price: 'int?',
  value: 'int?',
github invertase / react-native-firebase / packages / analytics / lib / structs.js View on Github external
number_of_nights: 'number?',
  number_of_rooms: 'number?',
  number_of_passengers: 'number?',
  origin: 'string?',
  destination: 'string?',
  start_date: 'shortDate?',
  end_date: 'shortDate?',
  travel_class: 'string?',
});

export const SelectContent = struct({
  content_type: 'string',
  item_id: 'string',
});

export const Share = struct({
  content_type: 'string',
  item_id: 'string',
});

export const SignUp = struct({
  method: 'string',
});

export const SpendVirtualCurrency = struct({
  item_name: 'string',
  virtual_currency_name: 'string',
  value: 'number',
});

export const UnlockAchievement = struct({
  id: 'string',
github invertase / react-native-firebase / packages / analytics / lib / structs.js View on Github external
start_date: 'shortDate?',
  end_date: 'shortDate?',
});

export const AddToWishlist = struct({
  itemId: 'string',
  itemName: 'string',
  item_category: 'string',
  quantity: 'number',
  price: 'number?',
  value: 'number?',
  currency: 'string?',
  item_location_id: 'string?',
});

export const BeginCheckout = struct({
  value: 'number?',
  currency: 'string?',
  transaction_id: 'string?',
  number_of_nights: 'number?',
  number_of_rooms: 'number?',
  number_of_passengers: 'number?',
  origin: 'string?',
  destination: 'string?',
  start_date: 'shortDate?',
  end_date: 'shortDate?',
  travel_class: 'shortDate?',
});

export const CampaignDetails = struct({
  source: 'string',
  medium: 'string',
github invertase / react-native-firebase / packages / analytics / lib / structs.js View on Github external
export const LevelUp = struct({
  level: 'number',
  character: 'string?',
});

export const Login = struct({
  method: 'string',
});

export const PostScore = struct({
  score: 'int',
  level: 'int?',
  character: 'string?',
});

export const PresentOffer = struct({
  item_id: 'string',
  item_name: 'string',
  item_category: 'string',
  quantity: 'int',
  price: 'int?',
  value: 'int?',
  currency: 'string?',
  item_location_id: 'string?',
});

export const PurchaseRefund = struct({
  currency: 'string?',
  value: 'number?',
  transaction_id: 'string?',
});
github invertase / react-native-firebase / packages / analytics / lib / structs.js View on Github external
quantity: 'number?',
  currency: 'string?',
  value: 'number?',
  flight_number: 'string?',
  number_of_passengers: 'number?',
  number_of_nights: 'number?',
  number_of_rooms: 'number?',
  origin: 'string?',
  destination: 'string?',
  start_date: 'shortDate?',
  end_date: 'shortDate?',
  search_term: 'string?',
  travel_class: 'string?',
});

export const ViewItemList = struct({
  item_category: 'string',
});

export const ViewSearchResults = struct({
  search_term: 'string',
});
github invertase / react-native-firebase / packages / analytics / lib / structs.js View on Github external
number_of_nights: 'number?',
  number_of_rooms: 'number?',
  number_of_passengers: 'number?',
  origin: 'string?',
  destination: 'string?',
  start_date: 'shortDate?',
  end_date: 'shortDate?',
  travel_class: 'string?',
});

export const GenerateLead = struct({
  currency: 'string?',
  value: 'number?',
});

export const JoinGroup = struct({
  group_id: 'string',
});

export const LevelEnd = struct({
  level: 'number',
  success: 'string?',
});

export const LevelStart = struct({
  level: 'number',
});

export const LevelUp = struct({
  level: 'number',
  character: 'string?',
});
github invertase / react-native-firebase / packages / analytics / lib / structs.js View on Github external
start_date: 'shortDate?',
  end_date: 'shortDate?',
  travel_class: 'string?',
});

export const SelectContent = struct({
  content_type: 'string',
  item_id: 'string',
});

export const Share = struct({
  content_type: 'string',
  item_id: 'string',
});

export const SignUp = struct({
  method: 'string',
});

export const SpendVirtualCurrency = struct({
  item_name: 'string',
  virtual_currency_name: 'string',
  value: 'number',
});

export const UnlockAchievement = struct({
  id: 'string',
});

export const ViewItem = struct({
  item_id: 'string',
  item_name: 'string',
github invertase / react-native-firebase / packages / analytics / lib / structs.js View on Github external
export const RemoveFromCart = struct({
  item_id: 'string',
  item_name: 'string',
  item_category: 'string',
  quantity: 'number?',
  value: 'number?',
  price: 'number?',
  currency: 'string?',
  item_location_id: 'string?',
  start_date: 'shortDate?',
  end_date: 'shortDate?',
  origin: 'string?',
  destination: 'string?',
});

export const Search = struct({
  search_term: 'string',
  number_of_nights: 'number?',
  number_of_rooms: 'number?',
  number_of_passengers: 'number?',
  origin: 'string?',
  destination: 'string?',
  start_date: 'shortDate?',
  end_date: 'shortDate?',
  travel_class: 'string?',
});

export const SelectContent = struct({
  content_type: 'string',
  item_id: 'string',
});