Components

ProductsScreen

<ProductsScreen />

Constructor

# <ProductsScreen />

You can use this component to showcase your Products screen in your custom screen.

Properties:
Name Type Attributes Description
productIds Array <optional>

Define which in-app products will be shown.

screenTitle String <optional>

List screen title. Default comes from translation files in BuddyBoss site

hideNavigationHeader Boolean <optional>

Use true to hide the screen title container

Example
//In custom_code/MyCustomScreen.js...
import React from 'react';
import { View } from 'react-native';
import ProductsScreen from "@src/containers/Custom/ProductsScreen";
const MyCustomScreen = (props) => {

 return (
   <View style={{ flex: 1 }}>
     <ProductsScreen {...props} screenTitle="Available products" productIds={[3,8,6,7]}/>
   </View>)
}


export default MyCustomScreen;

//In custom_code/index.js...

import MyCustomScreen from "./components/MyCustomScreen";
export const applyCustomCode = externalCodeSetup => {

 externalCodeSetup.navigationApi.addNavigationRoute(
   "book",
   "BookScreen",
   MyCustomScreen,
   "All"
 );
 externalCodeSetup.navigationApi.addNavigationRoute(
   "book",
   "BookScreen",
   MyCustomScreen,
   "Main"
 );
}