Constructor
# <GroupSendInvites />
You can use this component to display Groups Send Invites Screen in your custom screen.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
groupId
|
Number |
<optional> |
Id of group to display |
searchTerm
|
String |
<optional> |
If the group is not yet available in the app state, the component will attempt to load a list of groups. You can use this field to search for the specific group you want to load instead of loading a list of groups. |
hideBackButton
|
Boolean |
<optional> |
Use |
hideNavigationHeader
|
Boolean |
<optional> |
Use |
inviteFilters
|
Array |
<optional> |
Use this to modify the available filters.
Available values: |
screenTitle
|
String |
<optional> |
List screen title |
showSearch
|
Boolean |
<optional> |
Use |
LoadingComponent
|
ReactComponent |
<optional> |
Use this to display your own loading component while the screen is loading |
Example
//In custom_code/components/MyCustomScreen.js...
import React from 'react';
import GroupSendInvites from "@src/containers/Custom/Group/GroupSendInvites";
const MyCustomScreen = (props) => (
<GroupSendInvites {...props}
groupId={9}
showSearch={false}
hideBackButton={true}
inviteFilters={["invite", "inviteFriends"]}
screenTitle="Send Invitations"
hideNavigationHeader={false}
/>
)
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"
);
}