Constructor
# <MyLibraryScreen />
You can use this component to display the MyLibrary screen in your custom screen.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
screenTitle
|
String |
<optional> |
List screen title. Default comes from translation files in BuddyBoss site |
showSearch
|
Boolean |
<optional> |
Use |
hideTitle
|
Boolean |
<optional> |
Use |
hideNavigationHeader
|
Boolean |
<optional> |
Use |
headerHeight
|
Number |
<optional> |
Define header height |
Example
//In custom_code/components/MyCustomScreen.js...
import React from 'react';
import { View } from 'react-native';
import MyLibraryScreen from "@src/containers/Custom/MyLibraryScreen";
const MyCustomScreen = (props) => {
return (
<View style={{ flex: 1 }}>
<MyLibraryScreen {...props} hideNavigationHeader={false} screenTitle="My Downloaded Courses" showSearch={false}/>
</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"
);
}