By default, it contains an About Menu Item under the Settings section that redirects to the About Screen.
It also fetches the documents under the category of 'settings' to the API. So each document retrieved from the API will be displayed as a Menu Item dynamically in the Settings section.
Each document should contain a content with type url or pdf. This links/documents from the API are opened in the Setting Document Screen.
Functionality
Redux state management of these documents are handled by contentsDocuments slice.
Prop Name
Type
Description
initialItems
Array<SectionMenu>
Array of the items that make up the initial part of the menu
finalItems
Array<SectionMenu>
Array of the items that make up the final part of the menu
settingsItems
Array<SectionMenu>
Array of the items that make up the settings part of the menu
Renders content within the safe area boundaries of a device and automatically applies padding to reflect the portion of the view that is not covered by navigation bars, tab bars, toolbars, and other views.
Prop Name
Type
Description
headerComponent
JSX.Element
Renders a screen header
hideHeader
boolean
If true, the header component will be hidden.
defaultHeaderProps
MainLayoutHeaderProps
Props for the header component in the safe area layout
contentStyle
ViewStyle
Style applied to the content inside the safe area layout
showLoading
boolean
If true, a loader will be rendered when refreshing the content in the safe area layout
withScroll
boolean
If true, scroll will be enabled
refreshControlProps
RefreshControlProps
Enable pull to refresh functionality
children
React.ReactNode
Children for the component
background
React.ReactNode
Background of the safe area layout
stylesBackground
ViewStyle
Style applied to the background of the safe area layout
backgroundColor
string
backgroundColor for the safe area layout. It covers the entire screen including the Header component.