Type Definitions
Type Definitions reveal insight into the type data used by hooks, including which data you need to pass to and from each hook.
# AchievementsComponentProps
AchievementsComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | Default styles |
ContainerComponent
|
React.ComponentType.<any> | Returns the default container component |
achievements
|
Record.<any, any> | Achievement data |
navigateToAchievements
|
function | Navigates to the achievements screen |
# ActionButton
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
icon
|
Number |
<nullable> |
Image loaded via "require" |
label
|
String | Translatable string |
|
doFunction
|
DoFunction | Redux action to dispatch or simple function to execute |
|
getError
|
GetError |
<nullable> |
Redux action to dispatch or simple function to execute |
isNavigation
|
Boolean |
<nullable> |
If true button will not show spinner when changing state |
promptMessage
|
String |
<nullable> |
If set prompt popup with input will show on action executed |
promptDefaultValue
|
function |
# ActionButtonProps
ActionButtonProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
button
|
Record.<any, any> | Default actions when button is pressed |
color
|
Record.<any, any> | Color for icon |
style
|
Record.<any, any> | Style for the button |
t
|
TTranslationFunction | Translation function |
withLabel
|
boolean | Returns |
labelStyle
|
Record.<any, any> | Style for the label |
loading
|
boolean | Returns |
first
|
boolean | Returns |
last
|
boolean | Returns |
highlight
|
boolean | Returns |
# ActiveSubFiltersProps
Properties:
Name | Type | Description |
---|---|---|
defaultSubFilters
|
Object | Default subfilters for the screen |
# ActivitiesItemWidgetComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
User | |
item
|
ActivityViewModel | |
global
|
Object | App global style |
colors
|
Object | App colors |
tagsStyles
|
Object | Tag default styles |
contentWrapperStyle
|
Object | Default content wrapper for activity item |
style
|
Object | Default style for activity item wrapper |
attemptDeepLink
|
function | Helper function which is used for deeplinking |
avatarSize
|
Number | Returns default size of avatar |
hidePrivacy
|
Boolean | Returns |
# ActivitiesWidgetComponentProps
Properties:
Name | Type | Description |
---|---|---|
bgColor
|
String | Background color of the widgets container |
title
|
String | Title for the widgets container |
activities
|
Array.<Object> | Contains activities object with fields such as name, date, media, title etc. |
onActivitiesSeeAllClick
|
function | Function that will redirect to the activities list |
t
|
TranslationFunction | |
navigation
|
NavigationService |
# ActivitiesWidgetTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
icon
|
String | |
title
|
String | Title of the widget |
textColor
|
String | |
seeMoreHidden
|
Boolean | Returns |
seeMoreHandler
|
function | Helper function that redirects to appropriate screen |
seeMoreLabel
|
String | Default label of "See More" button |
activities
|
Array.<ActivityViewModel> | |
t
|
TranslationFunction | |
navigation
|
NavigationService |
# ActivityButtonsFilterCallback(buttons, item, actionsList, settings) → {Array.<Button>}
Parameters:
Name | Type | Description |
---|---|---|
buttons |
Array.<Button> | Current buttons array |
item |
ActivityViewModel | Activity view model |
actionsList |
Array.<string> | List of allowed actions |
settings |
Object | Settings object got from API |
Changed array of buttons
# ActivityCommentAvatarProps
Properties:
Name | Type | Description |
---|---|---|
userId
|
Number | User id of the comment author |
handleAuthorClick
|
function | Navigates to the author's profile |
size
|
Number | Default avatar size |
source
|
Object | Default uri for author's image |
# ActivityCommentHeaderComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Object | Default styles |
handleAuthorClick
|
function | Used for navigating to the author's profile |
username
|
String | Author's name |
date
|
String | Comment date |
item
|
Object | Activity comment details |
# ActivityHeaderComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
User | |
item
|
ActivityViewModel | |
global
|
Object | App global style |
colors
|
Object | App colors |
tagsStyles
|
Object | Tag default styles |
contentWrapperStyle
|
Object | Default content wrapper for activity item |
style
|
Object | Default style for activity item wrapper |
attemptDeepLink
|
function | Helper function which is used for deep linking when activity is pressed |
avatarSize
|
Number | Returns default size of avatar |
hidePrivacy
|
Boolean | Returns |
onChangePrivacy
|
function | Helper function which is used for changing the activity's privacy |
privacyModalVisible
|
Boolean | Returns |
contentWrapperStyle
|
Object | Returns the default styling for the content wrapper |
avatarSize
|
Number | The default size of the avatar |
hidePrivacy
|
Boolean | Returns |
profileAvatarType
|
String | Avatar type to be displayed in the activitypost |
enableProfileGravatar
|
Boolean | Returns |
defaultProfileAvatarType
|
String | The default profile avatar type |
defaultCustomProfileAvatarImage
|
String | The default custom profile avatar image |
activitiesFilter
|
String | Active filter in the activities list |
isGroupScreen
|
Boolean | Returns |
renderActivityOptions
|
function | Function to render activity options |
# ActivityImageComponentProps
Properties:
Name | Type | Description |
---|---|---|
thumbnail
|
String | Url to image's thumbnail |
source
|
String | Url to image's source |
styles
|
Object | Default styles |
resizeMode
|
String | Default resize mode |
# ActivityLikeComponentProps
Properties:
Name | Type | Description |
---|---|---|
icon
|
LocalImageSource | |
pressHandler
|
function | Mark activity as favorite |
tintColor
|
String | Default tint color of activity like button. Changes value depending on if activity is liked or not. |
touchableStyle
|
Array.<Object> | Default styling of the like button container |
style
|
Object | Default styling of the like button |
renderText
|
function | Returns JSX to display text beside the like button |
|
ActivityViewModel |
# ActivityModelDependencies
Properties:
Name | Type | Description |
---|---|---|
config
|
Object | App configuration object |
t
|
TranslationFunction | Translation function |
actions
|
Object | Object with activity actions |
isProfileList
|
boolean | Flag that tells if it's the current screen under profile |
currentUser
|
User | Logged in user |
toUserBasedOnSettings
|
ToUserBasedOnSettings | Navigate to user function |
# ActivityViewModel
Properties:
Name | Type | Description |
---|---|---|
id
|
Number | Activity id |
action
|
String | Description of activity update |
component
|
String | Info on where the activity came from such as "groups", "activity" |
user
|
Object | User's id and name |
content
|
String | Html content of activity to display |
contentStripped
|
String | Content of activity to display stripped of html tags |
parentId
|
Number | Used for activity relative id |
firstParentId
|
Number | Used for activity relative id |
type
|
String | Type of activity. Ex: "activity_update" |
avatarUrl
|
String | Url to user's avatar |
can_report
|
Boolean | True if user can report activity |
reported
|
Boolean | True if user has already reported the activity |
isMine
|
Boolean | True if activity is from user |
can_comment
|
Boolean | True if user can comment |
can_delete
|
Boolean | True if user can delete the activity |
can_favorite
|
Boolean | True if user can mark activity as favorite |
can_edit
|
Boolean | True if user can edit the activity |
isFavorite
|
Boolean | True if activity is marked as favorite |
activityData
|
Object | Contains more activity data such as groupName if post came from group activity |
commentCount
|
Number | Number of people commented in the activity |
authorClick
|
function | Function that will navigate to profile of the user who posted the activity |
dateRecorded
|
String | Ex: "a month ago" |
dateRecordedLong
|
String | Ex: "3 weeks, 6 days ago" |
children
|
Array.<Object> | Activity data related to main activity such as if there are comments in the activity |
media
|
Array.<Object> | Media attached to activity |
documents
|
Array | Documents attached to activity |
platformMedia
|
Array | Platform media attached to activity |
gif
|
Object | Gif information including preview_url, video_url and rendered html |
actions
|
Object.<function()> | Actions for |
privacy
|
String | Privacy setting of the activity |
# ActivityViewModelFilterCallback() → {Object}
Properties:
Name | Type | Description |
---|---|---|
viewModel
|
ActivityViewModel | Activity view model |
activity
|
Activity | Original activity object |
depend
|
ActivityModelDependencies | Dependencies (functions used to create view model) |
New view model
# AfterAboutSettingComponentProps
Properties:
Name | Type | Description |
---|---|---|
t
|
TranslationFunction | |
global
|
Object | App global style |
colors
|
Object | App colors |
listProps
|
Object | Object containing default list styles and other props |
# AfterActivityContentComponentProps
Properties:
Name | Type | Description |
---|---|---|
item
|
ActivityViewModel | |
currentUser
|
User |
# AfterActivitySingleComponentProps
Properties:
Name | Type | Description |
---|---|---|
item
|
ActivityViewModel | |
index
|
Number | |
currentUser
|
User |
# AfterAuthRoutesFilter(routes) → {RoutesObject}
Parameters:
Name | Type | Description |
---|---|---|
routes |
RoutesObject | Current routes |
New routes
# AfterBlogProfileHeaderProps
AfterBlogProfileHeaderProps
Properties:
Name | Type | Description |
---|---|---|
blog
|
BlogViewModel |
# AfterBlogSingleBodyProps
AfterBlogSingleBodyProps
Properties:
Name | Type | Description |
---|---|---|
blog
|
BlogViewModel | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
linkClickHandler
|
function | Helper function which is used for deep linking when a link is pressed |
t
|
TTranslationFunction | |
navigation
|
NavigationService |
# AfterDetailsComponentProps
AfterDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
blog
|
BlogViewModel |
# AfterFilterComponent(props) → (nullable) {React.ComponentType.<any>}
Parameters:
Name | Type | Description |
---|---|---|
props |
FilterProps |
# AfterGroupDetailsComponentProps
AfterGroupDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
group
|
TGroupViewModel |
# AfterGroupProfileHeaderProps
AfterGroupProfileHeaderProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
group
|
TGroupViewModel |
# AfterMaterialsComponentProps
AfterMaterialsComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
lesson
|
TLessonViewModel | |
labels
|
Record.<string, string> | Learndash labels |
t
|
TTranslationFunction | |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
loading
|
boolean | Returns |
course
|
Course | |
navigation
|
NavigationProp.<any, any> | |
materials
|
undefined | string | Lesson materials |
# AfterProfileDetailsComponentProps
AfterProfileDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
TMemberViewModel |
# AfterProfileHeaderProps
AfterProfileHeaderProps
Properties:
Name | Type | Description |
---|---|---|
user
|
TMemberViewModel |
# AfterSearchInputComponent(props) → (nullable) {React.ComponentType.<any>}
Parameters:
Name | Type | Description |
---|---|---|
props |
SearchProps |
# AfterSettingsListComponentProps
Properties:
Name | Type | Description |
---|---|---|
SettingsListProps
|
SettingsListProps |
# AnimatedListHeaderProps
Properties:
Name | Type | Description |
---|---|---|
title
|
String | Screen's title |
subTitle
|
String | |
global
|
Object | App global style |
titleStyle
|
Object |
# animatedSwitchNavigatorProps
Properties:
Name | Type | Description |
---|---|---|
routes
|
Object | Default navigation routes |
options
|
Object | Default navigation options |
routeProps
|
Object | Contains information which can be utilized when creating custom navigators |
# animatedSwitchNavigatorReturn
Properties:
Name | Type | Description |
---|---|---|
routes
|
Object | New navigation routes |
options
|
Object | New navigation options |
# AnswerResultMessageProps
AnswerResultMessageProps
Properties:
Name | Type | Description |
---|---|---|
hideSummaryMessage
|
undefined | boolean | Returns |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
answer
|
Record.<any, any> | Answer details |
# AnswerResultModalMessageProps
AnswerResultModalMessageProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
styles
|
Record.<any, any> | Default styles |
answerResult
|
Record.<any, any> | Answer details |
t
|
TTranslationFunction | |
showSummaryMessage
|
boolean | Returns |
correctIcon
|
number | Returns the source of an icon if answer is correct |
inCorrectIcon
|
number | Returns the source of an icon if answer is incorrect |
iconColor
|
string | Returns default appropriate icon color |
# AppEpic
Redux reducers implemented in app
# AppReducers
Redux reducers implemented in app
# ArcContentProps
Properties:
Name | Type | Description |
---|---|---|
config
|
Object | App configuration object |
t
|
TranslationFunction | |
result
|
Object | Quiz result details |
quizVM
|
QuizVM | |
size
|
Number | Size of circle |
progress
|
Number | Percentage of the score |
arcColor
|
String | Default color depending on the value of the average score |
# AssetFilterCallback(path, source) → {LocalImageSource}
Parameters:
Name | Type | Description |
---|---|---|
path |
string | |
source |
LocalImageSource |
# AssignmentItemCommentProps
AssignmentItemCommentProps
Properties:
Name | Type | Description |
---|---|---|
pressHandler
|
function | Opens the comments modal |
tintColor
|
string | Default button color |
containerStyle
|
Record.<any, any> | undefined | Default container style |
count
|
number | Number of comments |
size
|
string | Button size |
global
|
Record.<any, any> | App global style |
lightMode
|
boolean | undefined | Can be used to determine if button should use light or dark style |
# AssignmentItemCommentProps
AssignmentItemCommentProps
Properties:
Name | Type | Description |
---|---|---|
pressHandler
|
function | Opens the comments modal |
tintColor
|
string | Default button color |
containerStyle
|
Record.<any, any> | undefined | Default container style |
count
|
number | Number of comments |
size
|
string | Button size |
global
|
Record.<any, any> | App global style |
lightMode
|
boolean | undefined | Can be used to determine if button should use light or dark style |
# AssignmentItemDownloadProgressProps
AssignmentItemDownloadProgressProps
Properties:
Name | Type | Description |
---|---|---|
progress
|
number | Download progress |
unfilledColor
|
string | Unfilled color of the ProgressCircle component |
tintColor
|
string | Color of the ProgressCircle component |
# AssignmentItemDownloadProgressProps
AssignmentItemDownloadProgressProps
Properties:
Name | Type | Description |
---|---|---|
progress
|
number | Download progress |
unfilledColor
|
string | Unfilled color of the ProgressCircle component |
tintColor
|
string | Color of the ProgressCircle component |
# AssignmentItemDownloadProps
AssignmentItemDownloadProps
Properties:
Name | Type | Description |
---|---|---|
pressHandler
|
function | Downloads the assignment item |
tintColor
|
string | Default button color |
containerStyle
|
Record.<any, any> | undefined | Default container style |
count
|
number | Number of comments |
size
|
string | Button size |
global
|
Record.<any, any> | App global style |
lightMode
|
boolean | undefined | Can be used to determine if button should use light or dark style |
# AssignmentItemDownloadProps
AssignmentItemDownloadProps
Properties:
Name | Type | Description |
---|---|---|
pressHandler
|
function | Downloads the assignment item |
tintColor
|
string | Default button color |
containerStyle
|
Record.<any, any> | undefined | Default container style |
count
|
number | Number of comments |
size
|
string | Button size |
global
|
Record.<any, any> | App global style |
lightMode
|
boolean | undefined | Can be used to determine if button should use light or dark style |
# AssignmentItemIconProps
AssignmentItemIconProps
Properties:
Name | Type | Description |
---|---|---|
icon
|
number | Default icon for the item |
styles
|
Record.<any, any> | Default style for the item |
# AssignmentItemIconProps
AssignmentItemIconProps
Properties:
Name | Type | Description |
---|---|---|
icon
|
number | Default icon for the item |
styles
|
Record.<any, any> | Default style for the item |
# AssignmentItemStatusProps
AssignmentItemStatusProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
text
|
string | Assignment item status |
containerStyle
|
Record.<any, any> | Default container style |
textStyle
|
Record.<any, any> | Default text style |
# AssignmentItemStatusProps
AssignmentItemStatusProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
text
|
string | Assignment item status |
containerStyle
|
Record.<any, any> | Default container style |
textStyle
|
Record.<any, any> | Default text style |
# AssignmentItemTitleProps
AssignmentItemTitleProps
Properties:
Name | Type | Description |
---|---|---|
title
|
string | Assignment item title |
style
|
Record.<any, any> | Default style for the item |
# AssignmentItemTitleProps
AssignmentItemTitleProps
Properties:
Name | Type | Description |
---|---|---|
title
|
string | Assignment item title |
style
|
Record.<any, any> | Default style for the item |
# AssignmentsHeaderProps
AssignmentsHeaderProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
totalAssignments
|
number | Total number of assignments uploaded |
approved
|
number | Number of assignments approved |
# AssignmentsHeaderProps
AssignmentsHeaderProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
totalAssignments
|
number | Total number of assignments uploaded |
approved
|
number | Number of assignments approved |
# AssociatedGroupComponentProps
Properties:
Name | Type | Description |
---|---|---|
t
|
TranslationFunction | |
colors
|
Object | App colors |
global
|
Object | App global style |
navigate
|
NavigationService | |
uri
|
String | Contains link to group's image |
name
|
String | Group name |
subtitle
|
String | Outputs the value of |
# AuthStackScreenNames
# AverageResultProps
Properties:
Name | Type | Description |
---|---|---|
quizVM
|
QuizVM | |
global
|
Object | App global style |
styles
|
Object | |
progressColor
|
String | |
t
|
TranslationFunction | |
result
|
Object | Quiz result details |
# BackButtonComponentProps
Properties:
Name | Type | Description |
---|---|---|
navigation
|
NavigationService | |
headerColor
|
String | |
styles
|
RNStyleValue | Back button default styling |
delay
|
Boolean | undefined | Returns |
withUnderlay
|
Boolean | undefined | Returns |
text
|
String | Default text |
textStyle
|
Record.<any, any> | Default text style |
textMaxWidth
|
Number | Defaul text max width |
colors
|
Record.<any, any> | App colors |
afterAction
|
function | Action after the screen has navigated to the previous screen |
handlePressParam
|
function | undefined | Default behavior when button is pressed |
containerStyle
|
Object | undefined | Container style |
fontIconName
|
String | undefined | Font name of icon |
fontIconWeight
|
Number | undefined | Font weight of icon |
# BeforeActivitySingleComponentProps
Properties:
Name | Type | Description |
---|---|---|
item
|
ActivityViewModel | |
index
|
Number | |
currentUser
|
User |
# BeforeBlogSingleBodyProps
BeforeBlogSingleBodyProps
Properties:
Name | Type | Description |
---|---|---|
blog
|
BlogViewModel | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
linkClickHandler
|
function | Helper function which is used for deep linking when a link is pressed |
t
|
TTranslationFunction | |
navigation
|
NavigationService |
# BeforeDetailsComponentProps
BeforeDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
blog
|
BlogViewModel |
# BeforeFilterComponent(props) → (nullable) {React.ComponentType.<any>}
Parameters:
Name | Type | Description |
---|---|---|
props |
FilterProps |
# BeforeGroupDetailsComponentProps
BeforeGroupDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
group
|
TGroupViewModel |
# BeforeProfileDetailsComponentProps
BeforeProfileDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
user
|
TMemberViewModel |
# BeforeSearchInputComponent(props) → (nullable) {React.ComponentType.<any>}
Parameters:
Name | Type | Description |
---|---|---|
props |
SearchProps |
# BeforeSettingsListComponentProps
Properties:
Name | Type | Description |
---|---|---|
SettingsListProps
|
SettingsListProps |
# BlockProps
Properties:
Name | Type | Description |
---|---|---|
block
|
Object | Block data from API |
calcFontSize
|
function | Used to calculate font size based on the fixed value you assign and percent set on branding options |
colors
|
Object | App colors |
fontFamilyStyle
|
Object | App font style |
global
|
Object | App global style |
handleLinkClicks
|
function | Link click handler |
htmlHandleClicks
|
function | Link click handler for webview |
isNavActive
|
boolean | Returns true if current screen is visible |
lastItem
|
boolean | Returns true if component is last block |
navigation
|
NavigationService | |
toUserBasedOnSettings
|
ToUserBasedOnSettings | |
viewWidth
|
number | Default window width used by blocks |
wrapHtml
|
function | Function that will wrap string in an HTML template |
wrapStyle
|
ReactStyles | Default wrap style used by blocks |
# BlockTypes
# BlogComment
Blog comment
Properties:
Name | Type | Description |
---|---|---|
id
|
number | Id of comment |
post
|
number | Id of post where comment was written |
parent
|
number | Id of the parent entity if the comment is a child of it |
author
|
number | Id of the author of the comment |
author_name
|
string | Author name |
date
|
string | Date when the comment was posted |
content
|
Record.<any, any> | Content of the comment |
link
|
string | Url to the comment |
status
|
string | Comment status |
can_report
|
boolean | Returns |
reported
|
boolean | Returns |
report_button_text
|
string | Text of the report button |
report_type
|
string | Type of report |
can_delete
|
boolean | Returns |
# BlogDetailsComponentProps
BlogDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
blog
|
BlogViewModel | |
globalStyle
|
Record.<any, any> | App global style |
animatedOpacity
|
function | Uses useMemo() hook and returns |
textStyle
|
Record.<any, any> | Returns a defined style object if blog is using a featured image |
# BlogHeaderAvatarProps
BlogHeaderAvatarProps
Properties:
Name | Type | Description |
---|---|---|
blog
|
BlogViewModel | |
global
|
Record.<any, any> | App global style |
textStyle
|
Record.<any, any> | Returns a defined style object if blog is using a featured image |
# BlogItemProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
item
|
BlogViewModel | |
index
|
Number | |
t
|
TranslationFunction | |
currentUserId
|
Number | |
allowBookmark
|
Boolean | Returns |
bookmarkActions
|
function | Toogles the bookmark action |
isSavedItems
|
Boolean | Returns |
# BlogItemWidgetDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Object | Default styles |
global
|
Object | App global style |
blog
|
BlogViewModel |
# BlogSingleBodyProps
BlogSingleBodyProps
Properties:
Name | Type | Description |
---|---|---|
blog
|
BlogViewModel | |
online
|
boolean | Return |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
navigation
|
NavigationService | |
config
|
Record.<any, any> | App configuration object |
tagsStyles
|
Record.<any, any> | Tag default styles |
baseFontStyle
|
function | Function to set a font style |
computedWidth
|
number | Default computed width of component to render |
linkClickHandler
|
function | Helper function which is used for deep linking when a link is pressed |
onShouldStartLoadWithRequest
|
function | Helper function which can be passed to a webview to start a request by attempting to deep link |
# BlogSubFilterProps
Properties:
Name | Type | Description |
---|---|---|
categories
|
Array.<Object> | |
year
|
Array.<Object> | Year values in the sub filter |
# BlogWebViewProps
BlogWebViewProps
Properties:
Name | Type | Description |
---|---|---|
blog
|
BlogViewModel | |
online
|
boolean |
|
t
|
TTranslationFunction | |
webViewHeight
|
number | Default height for the web view |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
source
|
WebSource | |
onShouldStartLoadWithRequest
|
function | function which can be used by the web view's |
ModalHeaderComponent
|
React.Component.<any> | Modal which shows up when the "Read More" component is pressed |
# BlogWidgetTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
textColor
|
String | |
icon
|
String | |
title
|
String | Title of the widget |
seeMoreHidden
|
Boolean | Returns |
seeMoreHandler
|
function | Helper function that redirects to appropriate screen |
t
|
TranslationFunction |
# BookmarkComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
styles
|
Object | Default styles |
onPress
|
function | Toggles bookmark function |
hitSlop
|
Object | Default hit slop assigned to the button |
animatedStyle
|
Object | Bookmark animation |
fixAlignRight
|
Boolean | Returns |
bookmarked
|
Boolean | Returns |
fontIconName
|
String | Default icon name |
fontIconVariant
|
String | Default icon variant |
tintColor
|
String | Tint color of bookmark |
withUnderlay
|
Boolean | Returns |
underlayTheme
|
String | Returns underlay theme to be used |
navigation
|
NavigationService |
# BookmarkComponentProps
BookmarkComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
styles
|
Record.<any, any> | Default styles |
onPress
|
function | Toggles bookmark function |
hitSlop
|
Record.<any, any> | Default hit slop assigned to the button |
animatedStyle
|
Record.<any, any> | Bookmark animation |
fixAlignRight
|
boolean | Returns |
bookmarked
|
boolean | Returns |
fontIconName
|
string | Default icon name |
fontIconVariant
|
string | Default icon variant |
tintColor
|
string | Tint color of bookmark |
withUnderlay
|
boolean | Returns |
underlayTheme
|
string | Underlay theme to be used |
navigation
|
NavigationService | Navigation service |
# BottomTabBarProps
Properties:
Name | Type | Description |
---|---|---|
state
|
Object | Route state information |
descriptors
|
Object | Bottom tab bar menu items |
navigation
|
NavigationService |
# BottomTabsRoutesFilterCallback(routes, constructTabbarAllScreens, showTabBarOnAllScreens) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
routes |
Object | Current bottom tab routes |
constructTabbarAllScreens |
function | Returns the appropriate screens depending on value of "Tab Bar Visibility" |
showTabBarOnAllScreens |
Boolean | Returns |
New routes
# BottomTabsSettingsFilterCallback(tabsOptions, colors) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
tabsOptions |
Object |
|
colors |
Object | App colors |
New tab settings
# ButtonConfig
ButtonConfig
Properties:
Name | Type | Description |
---|---|---|
permissionField
|
string | |
statusField
|
string | |
flow
|
Array |
# ButtonConfig
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
permissionField
|
String |
<nullable> |
|
statusField
|
String | ||
flow
|
Array.<ButtonFlow> |
# ButtonFlow
ButtonFlow
Properties:
Name | Type | Description |
---|---|---|
check
|
CheckProperty | Checks for a view model property, and based on the check it decides if it should show button |
buttons
|
Array | Buttons to show if check passes |
# ButtonFlow
Properties:
Name | Type | Description |
---|---|---|
check
|
CheckProperty | Checks for a view model property and checks if it should show the button |
buttons
|
Array | Buttons to show if check passes |
# CategoryTagsHiddenCallback
CategoryTagsHiddenCallback
Properties:
Name | Type | Description |
---|---|---|
course
|
TCourseViewModel |
# CheckProperty(object) → {Boolean}
Parameters:
Name | Type | Description |
---|---|---|
object |
Object | View model |
# CircleProgressResultProps
Properties:
Name | Type | Description |
---|---|---|
progress
|
Number | Percentage of the score |
progressColor
|
String | Filled color according to progress |
width
|
Number | Line width of circle |
size
|
Number | Size of circle |
unfilledColor
|
String | Default color used for the unfilled portion of the circle |
children
|
React.ComponentType | Component that contains the content of the circle |
# CommentAvatarProps
CommentAvatarProps
Properties:
Name | Type | Description |
---|---|---|
avatarUrl
|
string | Url of avatar |
# CommentButtonsProps
CommentButtonsProps
Properties:
Name | Type | Description |
---|---|---|
comment
|
BlogComment | |
t
|
TTranslationFunction | |
onComment
|
function | Links the reply to the comment being added in the input component |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
navigateToReport
|
function | Opens a modal for reporting the comment |
# CommentContentProps
CommentContentProps
Properties:
Name | Type | Description |
---|---|---|
commentVM
|
BlogComment | |
global
|
Record.<any, any> | App global style |
blogCommentTagStyles
|
Record.<any, any> | Default styles for blog comments |
onLinkPress
|
function | Helper function which is used for deep linking |
# CommentHeaderProps
CommentHeaderProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
commentVM
|
BlogComment | |
nameDateContainerStyle
|
Record.<any, any> | Default style for container |
# CommentReplyButtonsProps
CommentReplyButtonsProps
Properties:
Name | Type | Description |
---|---|---|
item
|
BlogComment | |
t
|
TTranslationFunction | |
replyPress
|
function | Links the reply to the comment being added in the input component |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
navigateToReport
|
function | Opens a modal for reporting the comment |
# CommentsModalHeaderProps
CommentsModalHeaderProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
modalHeaderContainerStyle
|
Record.<any, any> | Default style of modal header |
closeCommentsModal
|
function | Closes the modal |
allowComments
|
boolean | Returns |
# Course
Course
Properties:
Name | Type | Description |
---|---|---|
id
|
number | Course id |
title
|
Record.<any, any> | Course title |
content
|
Record.<any, any> | Course content |
date
|
string | Date when course was created |
date_gmt
|
string | Date when course was created |
modified
|
string | Date when course was modified |
modified_gmt
|
string | Date when course was modified |
link
|
string | Link to the course |
slug
|
string | Slug of url to course |
author
|
number | User id of author |
excerpt
|
Record.<any, any> | Course excerpt |
menu_order
|
number | |
featured_media
|
Record.<any, any> | Url to featured image |
cover_media
|
Record.<any, any> | Url to cover image |
has_course_access
|
boolean | Returns |
offline_disabled
|
boolean | Returns |
has_content_access
|
boolean | Returns |
materials
|
undefined | string | Course materials |
purchasable
|
boolean | Returns |
price
|
Record.<any, any> | Course price and currency |
hide_content_table
|
boolean | Returns |
progression
|
number | User's progress in the course |
is_closed
|
boolean | Returns |
can_enroll
|
boolean | Returns |
points
|
number | |
duration
|
Record.<any, any> | |
categories
|
Array | Course categories |
tags
|
Array | Course tags |
enrolled_members
|
number | Shows number of enrolled members |
certificate
|
Record.<any, any> | Certificate details |
module
|
Array | |
video
|
string | Url to video of course |
group
|
number | |
forum
|
number | |
lessons
|
Array | Lessons associated to the course |
quizzes
|
Array | Quizzes associated to the course |
completed
|
boolean | Returns |
quiz_completed
|
boolean | Returns |
show_start
|
boolean | Returns |
error_message
|
Array | |
last_activity_time
|
string | |
excerpt_native
|
Record.<any, any> | |
content_native
|
Array | Blocks in the course |
bb_access
|
Record.<any, any> | Access controls |
bbapp_products
|
Record.<any, any> | IAP products associated to the course |
_link
|
Record.<any, any> | |
_embedded
|
Record.<any, any> | |
members
|
Array | Shows members enrolled in course |
# CourseAuthorComponentProps
Properties:
Name | Type | Description |
---|---|---|
hideAuthor
|
Boolean | Returns |
userId
|
Number | User id of the course's author |
global
|
Object | App global style |
colors
|
Object | App colors |
# CourseBlock
Properties:
Name | Type | Description |
---|---|---|
title
|
String | |
tint_color
|
String | |
data_source
|
Object | Object with fields such as course ids, type, any other data added via custom work |
# CourseContentTitleProps
CourseContentTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
labels
|
Record.<any, any> | |
isCollapsable
|
boolean | Returns |
expanded
|
boolean | Returns |
hideAll
|
function | Hides all the collapsable items |
expand
|
function | Expands all the collapsable items |
# CourseDateComponentProps
Properties:
Name | Type | Description |
---|---|---|
showDate
|
Boolean | Returns |
styles
|
Object | Default styles |
date
|
String | Course date |
# CourseDescriptionHiddenCallback
CourseDescriptionHiddenCallback
Properties:
Name | Type | Description |
---|---|---|
course
|
TCourseViewModel |
# CourseDescriptionReadMoreComponentProps
CourseDescriptionReadMoreComponentProps
Properties:
Name | Type | Description |
---|---|---|
courseVM
|
TCourseViewModel | |
openDescriptionModal
|
function | Opens the desription modal |
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction |
# CourseDescriptionSectionTitleProps
CourseDescriptionSectionTitleProps
Properties:
Name | Type | Description |
---|---|---|
shouldRenderBlocks
|
boolean | Returns |
courseVM
|
TCourseViewModel | |
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
labels
|
Record.<any, any> |
# CourseHeaderDetailsProps
CourseHeaderDetailsProps
Properties:
Name | Type | Description |
---|---|---|
courseVM
|
TCourseViewModel | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
labels
|
Record.<any, any> | |
t
|
TTranslationFunction | |
lCount
|
number | Lessons count |
tCount
|
number | Topics count |
qCount
|
number | Quizzes count |
learndashCourseParticipants
|
number | Can be used to determine if participants should be shown in the component |
navigation
|
NavigationProp.<any, any> | |
shouldShowParticipants
|
Boolean | Returns |
shouldShowImageBackground
|
Boolean | Returns |
shouldShowVideo
|
Boolean | Returns |
shouldShowCourseIncludesTitle
|
Boolean | Returns |
shouldShowLessonsText
|
Boolean | Returns |
shouldShowTopicsText
|
Boolean | Returns |
shouldShowQuizzesText
|
Boolean | Returns |
shouldShowCertificatesText
|
Boolean | Returns |
lessonsText
|
String | Returns the lessons label |
topicsText
|
String | Returns the topics label |
quizzesText
|
String | Returns the quizzes label |
enrolledText
|
String | Returns the enrolled label |
styles
|
Record.<any, any> | Default styles |
# CourseHeaderRightProps
CourseHeaderRightProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
courseVM
|
TCourseViewModel | |
isShowingOpenCourseForGuestUser
|
boolean | Returns |
contentStyle
|
Record.<any, any> | Can be used to indicate what DownloadStatusIndicator component style should use |
# CourseMaterialsProps
CourseMaterialsProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
materials
|
string | Contents of course materials field |
tagsStyles
|
Record.<any, any> | Default styles for different tags |
materialsStyles
|
Record.<any, any> | Default styles for course materials |
baseFontStyle
|
function | Function to set a font style |
navigation
|
NavigationProp.<any, any> | |
onLinkPress
|
function | Helper function that handles link press for the HTML component |
# CourseMaterialsSectionTitleProps
CourseMaterialsSectionTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
labels
|
Record.<any, any> |
# CoursePropsFilterCallback
CoursePropsFilterCallback
Properties:
Name | Type | Description |
---|---|---|
oldProps
|
Record.<any, any> | Course props |
# CourseQuizItemProps
CourseQuizItemProps
Properties:
Name | Type | Description |
---|---|---|
item
|
TQuizViewModel | |
style
|
Record.<any, any> | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
skipProgress
|
boolean | Can be used to determine if actual progress should be shown or if item should be indicated as completed |
onPress
|
function | Navigates to the quiz |
allowNavigation
|
boolean | Returns |
IconComponent
|
JSX.Element | Default component for displaying the left-most icon in the item |
# CourseSectionItemProps
CourseSectionItemProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Record.<any, any> | Data about item to be rendered |
progression
|
number | Returns progression of the item |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
allowNavigation
|
boolean | Returns |
onItemPress
|
function | Navigates to the lesson; topic or quiz |
count
|
number | Returns number of topics and quizzes for the top-level item., This can be used when determining if the lesson should be expandable or not. |
icon
|
number | Result of using require() when fetching the appropriate icon for each item |
toggleExpand
|
function | Toggle or expand the item. This can be called when creating a custom IconComponent |
blockType
|
string | undefined | Returs the type of section item |
showAlertMessage
|
function | Calls an alert component which shows an error message |
StepsComponent
|
JSX.Element | Default component for displaying the steps label in the item |
IconComponent
|
JSX.Element | Default component for displaying the left-most icon in the item |
# CoursesItemWidgetDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Object | Default styles |
global
|
Object | App global style |
colors
|
Object | App colors |
hideAuthor
|
Boolean | Returns |
course
|
CourseViewModel |
# CourseStartedHeaderDetailsProps
CourseStartedHeaderDetailsProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
courseVM
|
TCourseViewModel | |
styles
|
Record.<any, any> | Default styles for the header component |
formatDateFunc
|
function | Helper function for parsing dates |
# CourseStatusHiddenCallback
CourseStatusHiddenCallback
Properties:
Name | Type | Description |
---|---|---|
course
|
TCourseViewModel | |
hasStarted
|
boolean | Returns |
courseTree
|
Record.<any, any> | Course structure |
# CoursesWidgetComponentProps
Properties:
Name | Type | Description |
---|---|---|
bgColor
|
String | Background color of the widgets container |
title
|
String | Title for the widgets container |
courses
|
Array.<Object> | Contains courses object with fields such as title, date, has_course_access, slug etc. |
onCourseClick
|
function | Function that will redirect to the selected course |
onCourseSeeAllClick
|
function | Function that will redirect to the courses list |
block
|
CourseBlock | |
t
|
TranslationFunction | |
navigation
|
NavigationService |
# CoursesWidgetTitleProps
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
global
|
Object | App global style |
|
colors
|
Object | App colors |
|
style
|
Object | ||
icon
|
String | ||
title
|
String | Title of the widget |
|
textColor
|
String | ||
seeMoreHidden
|
Boolean |
<nullable> |
Returns |
seeMoreHandler
|
function | Helper function that redirects to appropriate screen |
|
seeMoreLabel
|
String | Default label of "See More" button |
|
block
|
Object | Object which contains block data such as the source, params, colors etc |
|
courses
|
Array.<CourseViewModel> | ||
t
|
TranslationFunction | ||
navigation
|
NavigationService | ||
block
|
CourseBlock |
# CourseTitleComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Object | Default styles |
title
|
String | Course title |
# CourseTitleProps
CourseTitleProps
Properties:
Name | Type | Description |
---|---|---|
course
|
TCourseViewModel | |
_globalStyles
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
lightStyle
|
boolean | Returns |
styles
|
Record.<any, any> | Default title styles |
animatedOpacity
|
Record.<any, any> | Returns an object generated by React Native Animated |
# CourseViewModel
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
canEnroll
|
Boolean | Returns true if user can enroll to the course |
|
incompletePrerequisiteMessage
|
String |
<nullable> |
Returns a message if incomplete prerequisite |
id
|
Number | Course id |
|
featuredUrl
|
String | Url to featured image |
|
coveredUrl
|
String | Url to cover image |
|
title
|
String | Course title |
|
progression
|
Number | Returns course progression by the user |
|
date
|
String | Date of when course was created |
|
lessonsCount
|
Number | Number of lessons in the course |
|
lessonsCompleted
|
Number | Number of lessons completed in the course |
|
onClick
|
function | Default function when a course widget is clicked |
|
isClosed
|
Boolean | Returns true if course is closed |
|
hasAccess
|
Boolean | Returns true if user has access |
|
hasContentAccess
|
Boolean | Returns true if has content access |
|
hidecontentTable
|
Boolean | Returns true if content table is hidden |
|
paidCourse
|
Boolean | Returns true if course can only be accessed if user has paid for it |
|
completed
|
Boolean | Returns true if course has been completed by the logged-in user |
|
link
|
String | Link to the course |
|
puchasable
|
Boolean | Returns true if course can be purchased |
|
offlineDisabled
|
Boolean | Returns true if offline disabled |
|
videoUrl
|
String | undefined | Course video |
|
price
|
Object |
<nullable> |
Course price and currency |
error
|
Object | Error message encountered |
|
authorId
|
Number | Id of course's author |
|
author
|
Object |
<nullable> |
Author details |
modifiedDate
|
String |
<nullable> |
Date of when course was last modified |
certificate
|
Object | Certificate details |
|
enrolledMembers
|
Number | Number of enrolled members in the course |
# CssToCssCallback(htmlContentCss, typographynullable) → {string}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
htmlContentCss |
string | ||
typography |
Typography |
<nullable> |
# CustomAPIRequestFunction(urlPath, method, paramsOrPayload, validation, headers, isfullUrl) → {CancelablePromise}
Parameters:
Name | Type | Description |
---|---|---|
urlPath |
string | URL |
method |
"post" | "get" | "delete" | "patch" | |
paramsOrPayload |
Object | Params to send with request body |
validation |
ValidationFunction | Runs a validation over response object. You can define your own function or use |
headers |
Object | Define request headers |
isfullUrl |
boolean | Set |
# CustomBlockPropsCallback(renderer) → {Object}
Block props
Parameters:
Name | Type | Description |
---|---|---|
renderer |
BlockProps |
New props
# CustomBlockRenderCallback(renderer) → {React.ComponentType.<any>}
A custom block render function
Parameters:
Name | Type | Description |
---|---|---|
renderer |
BlockProps |
React Component
# DeeplinksFallbackCallback(defaultValue, linkObject, navigation) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
defaultValue |
boolean | |
linkObject |
Object | Link object provided by API |
navigation |
NavigationService |
# DeeplinksWithoutEmbeddedCallback(defaultValue, linkObject, navigation) → {Boolean}
Parameters:
Name | Type | Description |
---|---|---|
defaultValue |
Boolean | |
linkObject |
Object | Link object provided by API |
navigation |
NavigationService |
# DocumentItemComponentProps
Properties:
Name | Type | Description |
---|---|---|
currentUserId
|
Number | |
profileUserId
|
Number | |
formatDateFunc
|
function | Function to help format dates |
t
|
TranslationFunction | |
token
|
String | access token for authentication |
global
|
Object | App global style |
colors
|
Object | App colors |
viewModel
|
DocumentViewModel | |
navigation
|
NavigationService | |
item
|
Object | Data fetched from API |
# DocumentViewModel
Properties:
Name | Type | Description |
---|---|---|
id
|
Number | Document id |
activityId
|
Number | |
size
|
String | Document size |
extension_description
|
String | |
parent
|
Number | |
count
|
Number | |
title
|
String | |
filename
|
String | |
extension
|
String | |
description
|
String | |
type
|
String | |
dateModified
|
String | Date when document was last modified |
displayName
|
String | Name of document uploader |
privacy
|
String | Privacy of document |
can_report
|
Boolean | Returns |
reported
|
Boolean | Returns |
visibility
|
String | Members who can view the document |
groupId
|
Number | Group where document is uploaded |
folderId
|
Number | Folder where document is uploaded |
groupName
|
String | Group name where document is uploaded |
groupStatus
|
String | Status of group |
userId
|
Number | User id of uploader |
svgIcon
|
String | |
dateCreatedFormatted
|
String | |
downloadUrl
|
String | Download url of document |
# DoFunction(item, valuenullable) → {function}
Redux action to dispatch or simple function to execute
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
item |
Object | View model |
|
value |
String |
<nullable> |
Value from prompt popup input |
Example
doFunction: (item, value) => () => { navigateToReport(item.id) } // `navigateToReport` is function that we dont want to dispatch on redux
doFunction: (item, value) =>
documentUpdateRequest(item, {
title: value,
group_id: item.groupId,
folder_id: item.folderId
}) // `documentUpdateRequest` is redux action to dispatch
# DownloadProgressComponentProps
DownloadProgressComponentProps
Properties:
Name | Type | Description |
---|---|---|
onPress
|
function | Cancels the download progress |
colors
|
Record.<any, any> | App colors |
progress
|
number | Current progress of download |
size
|
number | Size of progress circle |
lightStyle
|
boolean | Returns |
hitSlop
|
Record.<string, number> | Default hitSlop for component |
containerStyle
|
Record.<any, any> | Default container style |
# EditProfileComponentDidUpdateCallback
EditProfileComponentDidUpdateCallback
Properties:
Name | Type | Description |
---|---|---|
prevProps
|
Record.<any, any> | |
prevState
|
Record.<any, any> | |
props
|
Record.<any, any> | |
state
|
Record.<any, any> | |
updateStoreValues
|
function | Helper function which you can use to update the Edit Profile screen's field values |
# EditProfileInputComponentProps
EditProfileInputComponentProps
Properties:
Name | Type | Description |
---|---|---|
values
|
Record.<any, any> | Profile component details |
handleInput
|
function | Function to handle input changes to the component |
config
|
Record.<any, any> | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
errors
|
undefined | Record.<any, any> | Error details |
formItem
|
Record.<any, any> | Current form component |
# EditProfileItemProps
EditProfileItemProps
Properties:
Name | Type | Description |
---|---|---|
formItem
|
Record.<any, any> | Form item details |
values
|
Record.<any, any> | Profile component details |
handleInput
|
function | Function to handle input changes to the component |
handleVisibility
|
function | Function to handle visibility changes to the component |
config
|
Record.<any, any> | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
errors
|
Record.<any, any> | Error details |
styles
|
Record.<any, any> | Default styles |
# Epic
# ExternalLinkNavigation(path, params, navigate) → {boolean|null}
Parameters:
Name | Type | Description |
---|---|---|
path |
string | |
params |
Object | |
navigate |
function |
# FetchActivitiesParams
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
display_comments
|
String | Allowed values: |
|
search
|
String |
<nullable> |
Limit results to those matching a string. |
# FetchBlogParams
Properties:
Name | Type | Description |
---|---|---|
per_page
|
Number | Maximum number of items to be returned in result set. |
page
|
Number | Current page of the collection. |
search
|
String | Limit results to those matching a string. |
order
|
String | |
orderby
|
String | |
author
|
Number | ID of the user whose blogs user can post to. |
# FetchCourseCategoriesParams
Properties:
Name | Type | Description |
---|---|---|
page
|
Number | Page to fetch |
per_page
|
Number | Maximum number of items to be returned in result set |
courses_limit
|
Number | Number of courses to fetch |
mycourses
|
Number | Limit results to current user courses |
order
|
String | Sort result set by given order. Allowed values: |
orderby
|
String | Sort result set by given field. Allowed values: |
# FetchCourseParams
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
page
|
Number |
<nullable> |
Page to fetch |
per_page
|
Number |
<nullable> |
Maximum number of items to be returned in result set |
order
|
String | Sort result set by given order. Allowed values: |
|
orderby
|
String | Sort result set by given field. Allowed values: |
|
categories
|
Array.<Number> | Limit results to those assigned to specific categories. |
|
include
|
Array.<Number> | Ensure result set includes specific IDs. |
|
_embed
|
boolean |
# FetchDocumentsParams
Properties:
Name | Type | Description |
---|---|---|
group_id
|
Number | A unique numeric ID for the Group. |
folder_id
|
Number | A unique numeric ID for the Document Folder. |
user_id
|
Number | Limit result set to items created by a specific user (ID). |
order
|
String | Order sort attribute ascending or descending. Allowed values: |
orderby
|
String | Order by a specific parameter. Default value: |
search
|
String | Limit results to those matching a string. |
# FetchForumsFactoryParams
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
provider
|
function | Redux state provider, function with no args |
|
requiredPage
|
Number | ||
filter
|
"all" | ||
search
|
String |
<nullable> |
|
_embed
|
Boolean |
# FetchGroupsParams
FetchGroupsParams
Properties:
Name | Type | Description |
---|---|---|
per_page
|
number | Maximum number of items to be returned in result set. |
page
|
number | Current page of the collection. |
search
|
string | Limit results to those matching a string. |
order
|
"asc" | "desc" | Order sort attribute ascending or descending. Default value: |
orderby
|
"date_created" | "last_activity" | "total_member_count" | "name" | "random" | Order Groups by which attribute. Default value: |
type
|
"active" | "newest" | "alphabetical" | "random" | "popular" | Shorthand for certain orderby/order combinations. Default value: |
scope
|
"all" | "personal" | Limit result set to items with a specific scope. Default value: |
# FetchMembersParams
Properties:
Name | Type | Description |
---|---|---|
per_page
|
Number | Maximum number of items to be returned in result set. |
page
|
Number | Current page of the collection. |
scope
|
String | Limit result set to items with a specific scope. |
search
|
String | Limit results to those matching a string. |
type
|
String | Shorthand for certain orderby/order combinations. |
# FetchMessagesParams
Properties:
Name | Type | Description |
---|---|---|
per_page
|
Number | Maximum number of items to be returned in result set. |
page
|
Number | Current page of the collection. |
# FetchNotificationsParams
Properties:
Name | Type | Description |
---|---|---|
per_page
|
Number | Maximum number of items to be returned in result set. |
page
|
Number | Current page of the collection. |
sort_order
|
String | Order sort attribute ascending or descending. Default value: |
order_by
|
String | Name of the field to order according to. Default value: |
is_new
|
Boolean | Limit result set to items from specific states |
# FetchPhotosParams
Properties:
Name | Type | Description |
---|---|---|
page
|
Number | Current page of the collection. |
per_page
|
Number | Maximum number of items to be returned in result set. |
scope
|
String | Scope of the media. Allowed values: |
search
|
String | Limit results to those matching a string. |
type
|
String | Shorthand for certain orderby/order combinations. |
# FetchTopicsParams
Properties:
Name | Type | Description |
---|---|---|
per_page
|
Number | Maximum number of items to be returned in result set. |
page
|
Number | Current page of the collection. |
search
|
String | Limit results to those matching a string. |
orderby
|
String | Sort retrieved topics by parameter. Allowed values: |
order
|
String | Designates ascending or descending order of topics. Allowed values: |
parent
|
Number | Forum ID to retrieve all the topics. |
# FilterAllButtonHiddenCallback(filterType) → {Boolean}
Parameters:
Name | Type | Description |
---|---|---|
filterType |
String | Returns the filter type used in the screen. Such values include: |
Return true
if component should be hidden
# FilterComponent(props) → (nullable) {React.ComponentType.<any>}
Parameters:
Name | Type | Description |
---|---|---|
props |
FilterProps |
# FilterItemComponentProps
Properties:
Name | Type | Description |
---|---|---|
index
|
Number | |
style
|
RNStyleValue | |
onPress
|
function | onPress handler |
global
|
Object | App global style |
text
|
String | Label of filter item |
icon
|
LocalImageSource | |
isSelected
|
Boolean | Returns |
# FilterProps
Note: There are more data available in this props but the listed below are valuable when customizing a filter row. Data also might also be different for each screens.
Properties:
Name | Type | Description |
---|---|---|
filter
|
String | |
activeSubFilters
|
Object | |
navigation
|
NavigationService | |
disableSubFilters
|
Boolean | |
filterType
|
String | |
renderFilter
|
React.ComponentType.<any> |
# FilterProps
Note: There are more data available in this props but the listed below are valuable when customizing a filter row. Data also might also be different for each screens.
Properties:
Name | Type | Description |
---|---|---|
filter
|
String | |
activeSubFilters
|
Object | |
navigation
|
NavigationService | |
disableSubFilters
|
Boolean | |
filterType
|
String | |
renderFilter
|
React.ComponentType.<any> |
# Font
Properties:
Name | Type | Description |
---|---|---|
weight
|
number | Font weight |
style
|
string | Font style |
ext
|
string | Font extension |
base64
|
string | Font value when in base64 |
# FontStyle
Properties:
Name | Type | Description |
---|---|---|
size
|
number | Font size |
family
|
string | Font family |
scale
|
number | Font scale value |
# ForumDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
contentStyle
|
String | Suggested content style |
hideShortContent
|
Boolean | Returns true if a hook was used to indicate that short content should be hidden |
global
|
Object | App global style |
forum
|
ForumViewModel | |
forumShortContent
|
String | Formatted forum short content |
ForumBottomSheetWrapper
|
React.ComponentType | Reusable component derived from src/components/ActionButtons/ActionSheetButtonWrapper |
# ForumHeaderProps
Properties:
Name | Type | Description |
---|---|---|
hideShortContent
|
Boolean | Returns true if forum short content is hidden |
colors
|
Object | App colors |
global
|
Object | App global style |
forum
|
ForumViewModel | |
formatDateFunc
|
function | Helper function which can be used to format dates |
HEADER_HEIGHT
|
Number | Default height of header used for ForumHeader component |
disableActionButtons
|
Boolean | Returns true if actions buttons are disabled |
actionButtons
|
Array.<Object> | Default action buttons such as creating a discussion or toggling subscription to a forum |
t
|
TranslationFunction | |
navigateToGroup
|
function | Function to navigate to associated group |
# ForumItemProps
Properties:
Name | Type | Description |
---|---|---|
forum
|
ForumViewModel | |
colors
|
Object | App colors |
global
|
Object | App global style |
formatDateFunc
|
function | Helper function which can be used to format dates |
t
|
TranslationFunction | |
actionButtons
|
Array.<Object> | Forum actions from redux |
# ForumsGetParam
Properties:
Name | Type | Description |
---|---|---|
page
|
Number | Page to fetch |
per_page
|
Number | Maximum number of items to be returned in result set |
search
|
String | Limit results to those matching a string. |
include
|
Array.<number> | An array of forums IDs to retrieve. |
_embed
|
Boolean |
# ForumsWidgetTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
icon
|
String | |
title
|
String | Title of the widget |
textColor
|
String | |
seeMoreHidden
|
Boolean | Returns |
seeMoreHandler
|
function | Helper function that redirects to appropriate screen |
seeMoreLabel
|
String | Default label of "See More" button |
forums
|
Array.<ForumViewModel> | |
t
|
TranslationFunction | |
navigation
|
NavigationService |
# ForumViewModel
Properties:
Name | Type | Description |
---|---|---|
id
|
Number | Forum id |
title
|
String | Forum title |
shortContent
|
String | Html for displaying forum's description |
can_report
|
Boolean | Returns true if forum can be reported |
reported
|
Boolean | Returns true if forum is already reported |
author
|
Object | Details of forum author |
date
|
String | Date of when forum was created |
modified
|
String | Date of when forum was last modified |
lastActive
|
String | Date of when last activity in forum |
actionStates
|
Object | contains |
replyCount
|
String | Number of replies |
topicCount
|
String | Number of discussions |
group
|
Object | Group associated with the forum |
content
|
String | Html for displaying forum's description |
coverImage
|
String | Link to forum's cover image |
coverImageThumbnail
|
String | Link to forum's thumbnail cover image |
canCreateTopic
|
Boolean | Returns true if user can create a topic in the forum |
canSeeTopics
|
Boolean | Returns true if user can create a topic in the forum |
canSeeSubForums
|
Boolean | Returns true if user can see sub forums in the forum |
subForums
|
Array | Sub forums associated to forum |
subscribe
|
function | Function to subscribe to forum |
toSingle
|
function | Function navigate to forum item |
navigateToProfile
|
function | Function to navigate to a user's profile |
# FreeAnswerComponentProps
FreeAnswerComponentProps
Properties:
Name | Type | Description |
---|---|---|
Wrapper
|
React.ComponentType | Default wrapper for input component |
wrapperOnPress
|
function | Calls default function when wrapper is pressed |
styles
|
Record.<any, any> | Default styles for the input |
defaultValue
|
string | undefined | Returns the default value of the input |
onChangeText
|
function | Updates the answer in the input component |
t
|
TTranslationFunction | |
question
|
QuestionViewModel |
# GetAPI
Properties:
Name | Type | Description |
---|---|---|
customRequest
|
CustomAPIRequestFunction | Used to make custom API requests /** |
# GetError(store) → {any}
Get error from redux state
Parameters:
Name | Type | Description |
---|---|---|
store |
Object | Whole redux store |
Example
state => state.forums.unsubscribe.error
# GroupActionButton
GroupActionButton
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
icon
|
number | ||
label
|
string | ||
doFunction
|
function | Default function of action button |
|
onPressValidation
|
Record.<any, any> |
<optional> |
Validation details |
# GroupDetailsComponentProps
GroupDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
group
|
TGroupViewModel | |
t
|
TTranslationFunction | |
filteredActions
|
Array | Functions used in group details |
onLinkPress
|
function | Default function when a link is pressed |
truncated
|
Record.<any, any> | Group description |
headerStyle
|
Record.<any, any> | used for controlling the alignment of the view |
styles
|
Record.<any, any> | Styles group details component |
showGroupType
|
boolean | Boolean value for controlling Group type text display |
showGroupPrivacy
|
boolean | Boolean value for controlling Group status text display |
# GroupFieldsTitleProps
GroupFieldsTitleProps
Properties:
Name | Type | Description |
---|---|---|
group
|
Record.<any, any> | Fieldset details |
styles
|
Record.<any, any> | Default styles |
# GroupHeaderAvatarProps
GroupHeaderAvatarProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
group
|
TGroupViewModel | |
disableGroupAvatarUpload
|
boolean | Returns |
# GroupHeaderButtonsProps
GroupHeaderButtonsProps
Properties:
Name | Type | Description |
---|---|---|
OldButtonComponent
|
function | Default button component displayed for the group. Ex: "Request to Join", "Member", etc. |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
group
|
TGroupViewModel | |
currentUser
|
Record.<any, any> | Details about the currently logged-in user |
t
|
TTranslationFunction | |
filteredActions
|
Array | Functions used in group details |
onLinkPress
|
function | Default function when a link is pressed |
buttonTextColor
|
string | |
buttonStyle
|
Record.<any, any> | |
styles
|
Record.<any, any> | Default styles |
canJoin
|
boolean | true when user can join Group |
isAdmin
|
boolean | true, if user is admin |
joinGroupLoading
|
boolean | true, when Group join request is processing |
deleteJoinLoading
|
boolean | true, when Group delete join request is processing |
joinGroup
|
function | Functions to join a Group |
deleteJoinRequest
|
function | Functions to delete Group join request |
# GroupItemComponentProps
GroupItemComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
item
|
TGroupViewModel | |
index
|
number | |
t
|
TTranslationFunction | |
actions
|
Array | |
currentUserId
|
number |
# GroupListTab
GroupListTab
Properties:
Name | Type | Description |
---|---|---|
icon
|
number | |
label
|
string | |
count
|
number | Indicates badge value |
loading
|
boolean | Returns |
onPress
|
function | Default function of the tab |
# GroupManageTab
GroupManageTab
Properties:
Name | Type | Description |
---|---|---|
icon
|
number | Default icon |
label
|
string | Default label |
onPress
|
function | Default function to execute when tab is pressed |
# GroupPendingMemberItemComponentProps
GroupPendingMemberItemComponentProps
Properties:
Name | Type | Description |
---|---|---|
colors
|
Record.<any, any> | App colors |
global
|
Record.<any, any> | App global style |
item
|
TMemberViewModel | |
index
|
number | Index of the item in the list |
t
|
TTranslationFunction | |
groupInvite
|
Record.<any, any> | Group inviter details |
# GroupSendInvitesTab
GroupSendInvitesTab
Properties:
Name | Type | Description |
---|---|---|
icon
|
number | Default icon |
label
|
string | Default label |
onPress
|
function | Default function to execute when tab is pressed |
# GroupsWidgetTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
icon
|
String | |
title
|
String | Title of the widget |
textColor
|
String | |
seeMoreHidden
|
Boolean | Returns |
seeMoreHandler
|
function | Helper function that redirects to appropriate screen |
seeMoreLabel
|
String | Default label of "See More" button |
groups
|
Array.<GroupViewModel> | |
t
|
TranslationFunction | |
navigation
|
NavigationService |
# GroupTabArrowComponentProps
GroupTabArrowComponentProps
Properties:
Name | Type | Description |
---|---|---|
tintColor
|
string | Icon color |
icon
|
number | Icon resource |
styles
|
Record.<any, any> | Default styles |
# GroupTabBadgeProps
GroupTabBadgeProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Record.<any, any> | Badge details |
global
|
Record.<any, any> | App global style |
text
|
number | Badge text |
styles
|
Record.<any, any> | Default styles |
# GroupTabIconProps
GroupTabIconProps
Properties:
Name | Type | Description |
---|---|---|
link
|
Record.<any, any> | Icon details |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
# GroupTabTitleComponentProps
GroupTabTitleComponentProps
Properties:
Name | Type | Description |
---|---|---|
index
|
number | Tab index |
styles
|
Record.<any, any> | Default styles |
title
|
string | Tab title |
# HeaderActionComponentProps
Properties:
Name | Type | Description |
---|---|---|
canCreateActivity
|
Boolean | Returns |
onPress
|
function | Navigates user to the create activity post screen |
colors
|
Object | App colors |
# HeaderAuthorComponentProps
HeaderAuthorComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
Record.<any, any> | Author details |
lightStyle
|
boolean | Returns |
global
|
Record.<any, any> | App global style |
userId
|
number | User id of course author |
onUserProfilePress
|
function | |
loadingInProgress
|
function | |
t
|
TTranslationFunction |
# HeaderHeightCallback(defaultHeaderHeight, filterType, navigation) → {Number}
Parameters:
Name | Type | Description |
---|---|---|
defaultHeaderHeight |
Number | Default header height |
filterType |
String | Name of filter in the index screen |
navigation |
NavigationService |
# headerProps
Properties:
Name | Type | Description |
---|---|---|
headerLeft
|
React.ComponentType.<any> | |
headerTitle
|
React.ComponentType.<any> | |
headerRight
|
React.ComponentType.<any> | |
getHeaderRight
|
function |
# HeaderRightComponentProps
Properties:
Name | Type | Description |
---|---|---|
t
|
TranslationFunction | |
forum
|
ForumViewModel | |
colors
|
Object | App colors |
global
|
Object | App global style |
headerColor
|
String | Header color used in app |
actionButtons
|
Array.<Object> | Contains objects for forum actions such as Create Discussion and Subscribe |
# HeaderRightComponentProps
HeaderRightComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | |
t
|
TTranslationFunction | |
group
|
TGroupViewModel | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
onLinkPress
|
function | Handles link press for the HTML component |
icon
|
number | Default icon |
headerColor
|
string | Default header color |
actionButtons
|
Array | Action buttons to render |
canSubscribe
|
boolean | Returns |
isSubscribed
|
boolean | Returns |
subscriptionLoading
|
boolean | Returns |
subscribeToGroup
|
function | Function to toggle user's subscription to the group |
fontIconName
|
string | Default font icon name of the header action button |
fontIconWeight
|
number | Default font icon weight of the header action button |
fontIconSubscribeName
|
string | Default font icon name of the subscribe button |
fontIconSubscribeWeight
|
number | Default font icon weight of the subscribe button |
canPost
|
boolean | Returns |
openCreateActivityScreen
|
function | Function to open Group Activity screen. |
# HeaderRightProps
Properties:
Name | Type | Description |
---|---|---|
headerRight
|
React.ComponentType.<any> | |
headerAction
|
function | Default function called when the HeaderRight component is pressed |
# HOCsFilter(hocs) → {Array.<function()>}
Parameters:
Name | Type | Description |
---|---|---|
hocs |
Array.<function()> | Initial HOCs array |
New HOCs array
# HTMLQuestionTitleProps
HTMLQuestionTitleProps
Properties:
Name | Type | Description |
---|---|---|
tagsStyles
|
Record.<any, any> | Default tags styles |
baseFontStyle
|
Record.<any, any> | Default font style |
html
|
string | Returns the question title in html format |
imageMaxWidth
|
number | Default image max width when generated by the HTML component |
onLinkPress
|
function | Handles link press for the HTML component |
ignoredTags
|
Array | Default ignored tags |
classesStyles
|
Record.<any, any> | Default classes styles |
colors
|
Record.<any, any> | App colors |
navigation
|
NavigationService |
# IAPDisabledMessageComponentProps
Props listed below are props related to IAP. Actual prop might contain more data.
Properties:
Name | Type | Description |
---|---|---|
course
|
CourseViewModel | |
loadProducts
|
function | Function to load products for the course |
inAppEnabled
|
Boolean | Returns |
products
|
Array | Products available for purchase |
# IconProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Object | Route information |
focused
|
Boolean | Returns |
tintColor
|
String | Icon color |
calcFontSize
|
function | Used to calculate font size based on the fixed value you assign and percent set on branding options |
colors
|
Object | App colors |
# InitialAfterAuthRouteCallback(props) → {String}
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | AppNavigator component props |
Route
# InputColors
Properties:
Name | Type | Description |
---|---|---|
inputPlaceholderColor
|
string | |
inputBorderColor
|
string | |
inputFocusBorderColor
|
string | |
inputIconColor
|
string |
# IntercomButtonProps
Properties:
Name | Type | Description |
---|---|---|
insets
|
Object | |
style
|
Object | |
isEnabled
|
Boolean | Returns |
# IOMiddlewareOptions
Properties:
Name | Type | Description |
---|---|---|
navigationService
|
NavigationService | Object similar to the navigation property of "@react-navigation/native". The most used methods are |
buildConfig
|
BuildConfigType | Build configuration object which contains all things required for specific app builds, including URL to the app icon, app launch screen, and many more. |
inApp
|
Object | "react-native-iap" default export object |
getApi
|
GetAPI | Function that gets an instance of the class containing all the methods used for fetching data |
t
|
TranslationFunction |
# ItemCourseComponentProps
Properties:
Name | Type | Description |
---|---|---|
key
|
Number | Index of the item |
viewModel
|
CourseViewModel | |
global
|
Object | App global style |
colors
|
Object | App colors |
textColor
|
string | Text color used in the component item |
locale
|
string | App locale |
inList
|
boolean | Returns true if the item is in vertical self-loading list |
wStyles
|
Object | Defined styles for |
online
|
boolean | Returns true if user is online |
labels
|
Object | Dynamic names for Leandash CPTs; set on site |
# KeyboardOptionsButtonsProps
Properties:
Name | Type | Description |
---|---|---|
navigation
|
NavigationService | |
richTextEnabled
|
Boolean | Returns |
photosEnabled
|
Boolean | Returns |
videosEnabled
|
Boolean | Returns |
docsEnabled
|
Boolean | Returns |
gifsEnabled
|
Boolean | Returns |
RichTextButton
|
React.ComponentType | Renders the rich text button |
PhotoButton
|
React.ComponentType | Renders the photo button |
VideoButton
|
React.ComponentType | Renders the video button |
DocButton
|
React.ComponentType | Renders the document button |
GifButton
|
React.ComponentType | Renders the gif button |
renderMoreOptions
|
function | Renders additional buttons depending on which screen the KeyboardOptions component is |
richTextButtonOnPress
|
function | Calls the default on press function of the rich text button |
photoButtonOnPress
|
function | Calls the default on press function of the photo button |
videoButtonOnPress
|
function | Calls the default on press function of the video button |
docButtonOnPress
|
function | Calls the default on press function of the doc button |
gifButtonOnPress
|
function | Calls the default on press function of the gif button |
# LabelProps
Properties:
Name | Type | Description |
---|---|---|
props
|
Object | Route information |
textStyle
|
Array.<Object> | Default style for the text component |
# LearnTopic
LearnTopic
Properties:
Name | Type | Description |
---|---|---|
id
|
number | Topic id |
title
|
Record.<any, any> | Topic title |
date
|
string | Date created |
date_gmt
|
string | Date created |
modified
|
string | Date modified |
modified_gmt
|
string | Date modified |
link
|
string | Link to topic |
slug
|
string | Topic's url slug |
author
|
number | User id of author |
excerpt
|
Record.<any, any> | Topic excerpt |
menu_order
|
number | |
has_course_access
|
boolean | Returns |
topic
|
number | Topic id where quiz is located |
completed
|
boolean | Returns |
can_take_again
|
boolean | Returns |
has_content_access
|
boolean | Returns |
featured_media
|
Record.<any, any> | Featured media of topic |
course
|
number | Course id of topic's parent |
lesson
|
number | Lesson id of topic's parent |
next_topic
|
number | Id of the next topic |
materials
|
string | Topic materials |
duration
|
Record.<any, any> | |
video
|
string | Url for video progression |
assignment_upload
|
boolean | Returns |
category
|
Record.<any, any> | Topic category |
tag
|
Record.<any, any> | Topic's tag |
quizzes
|
Array | Quizzes associated to the topic |
categories
|
Array | Course categories |
categoriesCount
|
number | Number of course categories |
isEnrolling
|
boolean | Returns |
# LearnTopicActionComponentProps
LearnTopicActionComponentProps
Properties:
Name | Type | Description |
---|---|---|
showComplete
|
boolean | Returns |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
topicVM
|
TLearnTopicViewModel | |
onCompleteTopicClick
|
function | Helper function which considers different conditions (such as if quizzes inside a topic are already completed) before calling the |
completing
|
boolean | Returns |
completeDisabled
|
boolean | Returns |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
# LearnTopicAfterContentRendererProps
LearnTopicAfterContentRendererProps
Properties:
Name | Type | Description |
---|---|---|
topic
|
LearnTopic | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
navigation
|
NavigationService |
# LearnTopicAfterMaterialsComponentProps
LearnTopicAfterMaterialsComponentProps
Properties:
Name | Type | Description |
---|---|---|
topic
|
TLearnTopicViewModel | |
lessonOrder
|
number | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
labels
|
Record.<any, any> | |
lesson
|
Lesson | |
t
|
TTranslationFunction | |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
course
|
Course | |
loading
|
boolean | Returns |
navigation
|
NavigationService | |
materials
|
string | Topic material |
# LearnTopicHeaderProps
LearnTopicHeaderProps
Properties:
Name | Type | Description |
---|---|---|
topic
|
TLearnTopicViewModel | |
lessonOrder
|
number | |
paddingTop
|
number | |
setHeaderHeight
|
function | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
labels
|
Record.<any, any> | Learndash labels |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
courseId
|
number | Course id of lesson/topic/quiz |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
backToCourse
|
React.ComponentType | Returns default back button component |
course
|
Course | |
loading
|
boolean | Returns |
renderTimer
|
boolean | React.ComponentType | Returns |
onTimePassed
|
function | Function which updates the seconds passed in the topic screen container |
navigation
|
NavigationService | |
hidePrevNext
|
boolean | Returns |
prevNext
|
boolean | React.ComponentType | Returns |
# LearnTopicMaterialsSectionTitleProps
LearnTopicMaterialsSectionTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction |
# LearnTopicOfflineComponentProps
LearnTopicOfflineComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
containerStyle
|
Record.<any, any> | Default container style |
emptyListStyle
|
Record.<any, any> | Default style of EmptyList component |
# LearnTopicPrevNextComponentProps
LearnTopicPrevNextComponentProps
Properties:
Name | Type | Description |
---|---|---|
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
courseId
|
number | Course id of lesson/topic/quiz |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
# LearnTopicScreenHeaderProps
LearnTopicScreenHeaderProps
Properties:
Name | Type | Description |
---|---|---|
headerLeftStyle
|
Record.<any, any> | Default styling for left section of the header |
style
|
Record.<any, any> | Default styling of lesson header |
headerRightAuthWrapperProps
|
Record.<any, any> | Props which can be passed to an AuthWrapper |
topic
|
TLearnTopicViewModel | |
lessonOrder
|
number | |
paddingTop
|
number | |
setHeaderHeight
|
function | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
labels
|
Record.<any, any> | |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
courseId
|
number | Course id of lesson/topic/quiz |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
backToCourse
|
React.ComponentType | Returns default back button component |
course
|
Course | |
loading
|
boolean | Returns |
renderTimer
|
boolean | React.ComponentType | Returns |
onTimePassed
|
function | Function which updates the seconds passed in the topic screen container |
navigation
|
NavigationService | |
hidePrevNext
|
boolean | Returns |
prevNext
|
boolean | React.ComponentType | Returns |
# LearnTopicVideoProgressionComponentProps
LearnTopicVideoProgressionComponentProps
Properties:
Name | Type | Description |
---|---|---|
topicVideoStyle
|
Record.<any, any> | Default styling applied to topic video |
controls
|
boolean | Returns |
autoPlay
|
boolean | Returns |
videoCallback
|
function | Helper function which can be called when the video has finished playing |
url
|
string | Video url |
width
|
number | Player width |
height
|
number | Player height |
global
|
Record.<any, any> | App global style |
isNavActive
|
boolean | Returns |
topic
|
TLearnTopicViewModel | |
showVideo
|
boolean | Returns |
videoWatched
|
boolean | Returns |
setVideoWatched
|
function | Dispatches an action and marks the video as watched |
completeTopic
|
function | Dispatches an action to mark the topic as complete |
onCompleteTopicClick
|
function | Function which considers different conditions (such as if quizzes inside a topic are already completed) before calling the |
# LearnTopicWebViewContentComponentProps
LearnTopicWebViewContentComponentProps
Properties:
Name | Type | Description |
---|---|---|
online
|
boolean | Returns |
t
|
TTranslationFunction | |
onShouldStartLoadWithRequest
|
function | The default function used for determining how to handle webview requests. |
height
|
number | Default height |
source
|
Record.<any, any> | Contains data of the web site to be loaded in the webview |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
ModalHeaderComponent
|
React.FC | Modal which shows up when the "Read More" component is pressed |
# Lesson
Lesson
Properties:
Name | Type | Description |
---|---|---|
id
|
number | Lesson id |
title
|
Record.<any, any> | Lesson title |
content
|
Record.<any, any> | Lesson content |
date
|
string | Date created |
date_gmt
|
string | Date created |
modified
|
string | Date modified |
modified_gmt
|
string | Date modified |
link
|
string | Url to lesson |
slug
|
string | Lesson's url slug |
author
|
number | User id of author |
excerpt
|
Record.<any, any> | Lesson excerpt |
menu_order
|
number | |
has_course_access
|
boolean | Returns |
has_content_access
|
boolean | Returns |
featured_media
|
Record.<any, any> | Featured media of lesson |
course
|
number | Course id of lessons's parent |
next_lesson
|
number | Next lesson's id |
duration
|
Record.<any, any> | |
materials
|
string | Lesson materials |
video
|
string | Url for video progression |
assignment_upload
|
boolean | Returns |
is_sample
|
boolean | |
topics
|
Array | Topics associated to the lesson |
quizzes
|
Array | Quizzes associated to the lesson |
completed
|
boolean | Returns |
quiz_completed
|
boolean | Returns |
settings
|
Record.<any, any> | |
can_complete
|
boolean | Returns |
error_message
|
Array | |
excerpt_native
|
Record.<any, any> | |
content_native
|
Record.<any, any> | Blocks in the lesson |
_links
|
Record.<any, any> | |
_embedded
|
Record.<any, any> |
# LessonActionComponentProps
LessonActionComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
lesson
|
TLessonViewModel | |
labels
|
Record.<string, string> | Learndash labels |
t
|
TTranslationFunction | |
onCompleteButtonClick
|
function | Helper function which considers different conditions (such as if topics inside a lesson are already completed) before calling the |
showComplete
|
boolean | Returns |
completing
|
boolean | Returns |
completeDisabled
|
boolean | Returns |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
# LessonEntitiesCallback(columns) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
columns |
Object | Lesson columns |
New columns
# LessonEntitiesCallback(columns) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
columns |
Object | Lesson columns |
New columns
# LessonHeaderProps
LessonHeaderProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
lesson
|
TLessonViewModel | |
labels
|
Record.<string, string> | Learndash labels |
t
|
TTranslationFunction | |
paddingTop
|
number | |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
courseId
|
number | Course id of lesson/topic/quiz |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
backToCourse
|
React.ComponentType | Returns default back button component |
loading
|
boolean | Returns |
course
|
TCourseViewModel | |
renderTimer
|
boolean | React.ComponentType | Returns |
onTimePassed
|
function | Function which updates the seconds passed in the lesson screen container |
navigation
|
NavigationProp.<any, any> | |
hidePrevNext
|
boolean | Returns |
prevNext
|
boolean | React.ComponentType | Returns |
# LessonMaterialsSectionTitleProps
LessonMaterialsSectionTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction |
# LessonProgressStepsProps
LessonProgressStepsProps
Properties:
Name | Type | Description |
---|---|---|
t
|
TTranslationFunction | |
item
|
Record.<any, any> | Item details |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
count
|
number | Number of items inside the item |
course
|
TCourseViewModel | |
blockType
|
string | Describes the type of item being generated |
completedSteps
|
number | Number of completed steps inside the lesson |
# LessonScreenHeaderProps
LessonScreenHeaderProps
Properties:
Name | Type | Description |
---|---|---|
headerLeftStyle
|
Record.<any, any> | Default styling for left section of the header |
style
|
Record.<any, any> | Default styling of lesson header |
headerRightAuthWrapperProps
|
Record.<any, any> | Props which can be passed to an AuthWrapper |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
lesson
|
TLessonViewModel | |
labels
|
Record.<string, string> | Learndash labels |
t
|
TTranslationFunction | |
paddingTop
|
number | |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
courseId
|
number | Course id of lesson/topic/quiz |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
backToCourse
|
React.ComponentType | Returns default back button component |
loading
|
boolean | Returns |
course
|
TCourseViewModel | |
renderTimer
|
boolean | React.ComponentType | Returns |
onTimePassed
|
function | Function which updates the seconds passed in the lesson screen container |
navigation
|
NavigationProp.<any, any> | |
hidePrevNext
|
boolean | Returns |
prevNext
|
boolean | React.ComponentType | Returns |
# LinksWidgetTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
textColor
|
String | |
icon
|
String | |
title
|
String | Title of the widget |
seeMoreHidden
|
Boolean | Returns |
quickLinks
|
Array.<Object> | Quick links object |
t
|
TranslationFunction | |
navigation
|
NavigationService |
# LoginButtonProps
Properties:
Name | Type | Description |
---|---|---|
t
|
TranslationFunction | |
global
|
Object | App global style |
colors
|
Object | App colors |
stateUsername
|
String | Username field state |
statePassword
|
String | Password field state |
doLogin
|
function | Default login function |
auth
|
Object | |
screenProps
|
Object |
# LoginLogoProps
Properties:
Name | Type | Description |
---|---|---|
hideLogo
|
Boolean | undefined | Returns |
headerStyle
|
Object | Default style of the logo container |
logoStyle
|
Object | Default style of the logo image |
source
|
Number | Returns the image for the logo |
# LogoutComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | |
t
|
TranslationFunction | |
isLoggingOut
|
Boolean | Returns |
logout
|
function | Use this to execute the logout function |
# MainMenuScreenNames
# MainStackScreenNames
# MapStateToProps(state) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | Redux state |
- Props
# MaterialsComponentProps
MaterialsComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
materials
|
string | Contents of course materials field |
tagsStyles
|
Record.<any, any> | Default styles for different HTML tags |
materialsStyles
|
Record.<any, any> | Default styles for course materials |
baseFontStyle
|
function | Function to set a font style |
navigation
|
NavigationService | |
onLinkPress
|
function | Handles link press for the HTML component |
# MaterialsComponentProps
MaterialsComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
materials
|
string | Contents of course materials field |
tagsStyles
|
Record.<any, any> | Default styles for different HTML tags |
materialsStyles
|
Record.<any, any> | Default styles for course materials |
baseFontStyle
|
function | Function to set a font style |
navigation
|
NavigationProp.<any, any> | |
onLinkPress
|
function | Handles link press for the HTML component |
# MatrixItemOnDragEndCallbackProps
MatrixItemOnDragEndCallbackProps
Properties:
Name | Type | Description |
---|---|---|
dragEnd
|
function | Calls the |
index
|
number | Index of item |
item
|
Record.<any, any> | Answer details |
# MatrixItemOnDraggingCallbackProps
MatrixItemOnDraggingCallbackProps
Properties:
Name | Type | Description |
---|---|---|
dragging
|
function | Calls the |
index
|
number | Index of item |
item
|
Record.<any, any> | Answer details |
# MatrixItemOnDragStartCallbackProps
MatrixItemOnDragStartCallbackProps
Properties:
Name | Type | Description |
---|---|---|
dragStart
|
function | Calls the |
index
|
number | Index of item |
item
|
Record.<any, any> | Answer details |
# MemberItemComponentProps
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
groupId
|
Number |
<nullable> |
Group Id |
groupMember
|
Boolean |
<nullable> |
Returns |
colors
|
Object | App colors |
|
global
|
Object | App global style |
|
item
|
MemberViewModel | ||
index
|
Number | Index of the item in the list |
|
t
|
TranslationFunction | ||
actions
|
Array | Member actions |
|
settings
|
Object | App settings |
|
lastItem
|
Boolean | Returns |
|
locale
|
String | ||
rawData
|
Object | Member data from API |
# MembersWidgetTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
icon
|
String | |
title
|
String | Title of the widget |
seeMoreHidden
|
Boolean | Returns |
seeMoreHandler
|
function | Helper function that redirects to appropriate screen |
seeMoreLabel
|
String | Default label of "See More" button |
users
|
Array.<MemberViewModel> | |
t
|
TranslationFunction | |
navigation
|
NavigationService |
# MessageSingleComponentProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Object | Message data |
index
|
Number | |
user
|
MemberViewModel | |
toThread
|
function | Helper function to redirect user to the message thread screen |
t
|
TranslationFunction | |
global
|
Object | App global style |
colors
|
Object | App colors |
# MoreScreenNavigationCallback(navigation, routeName, menuItem, userId)
Parameters:
Name | Type | Description |
---|---|---|
navigation |
NavigationService | |
routeName |
String | |
menuItem |
Object | Information about the menu item such as label, icon, type |
userId |
number | Logged-in user's id |
# MoreScreenProfileItemProps
Properties:
Name | Type | Description |
---|---|---|
user
|
Object | Object containing user details |
global
|
Object | App global style |
colors
|
Object | App colors |
styles
|
Object | Default Component style |
navigateToUserProfile
|
function | function which navigates to user's profile |
hideHandle
|
Boolean | Boolean specifying whether to show or hide handles |
showProfile
|
Boolean | Boolean specifying whether to show or hide Profile Component set via custom code |
# MoreScreenRendererProps
Properties:
Name | Type | Description |
---|---|---|
screenProps
|
Object | |
navigation
|
NavigationService | |
settings
|
Object | App settings |
user
|
MemberViewModel | |
menuSettings
|
Object | Information about the menu such as items in the tab bar and in the more screen |
auth
|
Object | Logged-in user information |
onMenuItemPress
|
function | Default navigation function or what was set in moreScreenApi.navigationHandler hook |
sections
|
Object | Menu items in more screen |
# NavigateToTabCallback
NavigateToTabCallback
Properties:
Name | Type | Description |
---|---|---|
defaultNavigation
|
function | Function to call to navigate to the next default screen |
currentTab
|
string | Current tab |
nextTab
|
string | Next tab |
group
|
Record.<any, any> | Group object |
navigation
|
NavigationService |
# NavigationService
Navigation object from "@react-navigation/native"
Properties:
Name | Type | Description |
---|---|---|
navigate
|
function | |
dispatch
|
function | |
replace
|
function | |
push
|
function | |
pop
|
function | |
goBack
|
function | |
reset
|
function | |
setParams
|
function | |
isFocused
|
function | |
canGoBack
|
function | |
isActive
|
Boolean |
# Navigator
Properties:
Name | Type | Description |
---|---|---|
navigation
|
NavigationService | Navigation object |
dispatch
|
function | Dispatch function |
# NavigatorEventListenerCallback(navigator)
Parameters:
Name | Type | Description |
---|---|---|
navigator |
Navigator | Root navigator object |
# NewReplyKeyboardOptionsButtonsProps
Properties:
Name | Type | Description |
---|---|---|
navigation
|
NavigationService | |
richTextEnabled
|
Boolean | Returns |
photosEnabled
|
Boolean | Returns |
videosEnabled
|
Boolean | Returns |
docsEnabled
|
Boolean | Returns |
gifsEnabled
|
Boolean | Returns |
RichTextButton
|
React.ComponentType | Renders the rich text button |
PhotoButton
|
React.ComponentType | Renders the photo button |
VideoButton
|
React.ComponentType | Renders the video button |
DocButton
|
React.ComponentType | Renders the document button |
GifButton
|
React.ComponentType | Renders the gif button |
renderMoreOptions
|
function | Renders additional buttons depending on which screen the KeyboardOptions component is |
# NotificationItemMoreButtonProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
notList
|
Boolean | Returns |
# NotificationsItemRowComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Object | Notification item styles |
renderContent
|
function | Helper function which renders the content of the notification item row. Parameters to pass in order are: |
global
|
Object | App global style |
colors
|
Object | App colors |
item
|
Object | Notification object |
textColor
|
String | |
navigation
|
NavigationService | |
formatDateFunc
|
function | Helper function which returns time since last posted |
DefaultMetadataComponent
|
React.ComponentType | Can be used to render the default metadata component. Requires the following props: |
# NotificationsItemWidgetAvatarComponentProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Object | Notification object |
styles
|
Object | Default notification item styles |
notList
|
Boolean | Returns boolean which can be used to set marginLeft of notification item |
getAvatar
|
function | Helper function which returns the url of the user's avatar |
# NotificationsItemWidgetContentComponentProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Object | Notification object |
textStyle
|
Object | Default notification text styles |
textProps
|
Object | Contains information on how text should be rendered |
truncate
|
Boolean | Returns |
capitalizedStrippedTitle
|
String | Returns title with capitalized character |
navigation
|
NavigationService | |
global
|
Object | App global style |
colors
|
Object | App colors |
# NotificationsItemWidgetMetadataComponentProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Object | Notification object |
formatDateFunc
|
function | Helper function which returns time since last posted |
global
|
Object | App global style |
# NotificationsItemWrapperComponentProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Object | Notification object |
notList
|
Boolean | Returns |
thisRowCollapsed
|
function | Function that is called when action panel starts animating on close. |
renderRightActions
|
function | Function that is expected to return an action panel that is going to be revealed from the right side when user swipes left. |
onItemPress
|
function | Function that is called when user pressed on the notification. |
wrapperProps
|
Object | Contains different objects such as colors, action buttons, navigation etc. |
# NotificationsListHeaderComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Object | Default styles |
t
|
TranslationFunction | |
screenTitle
|
String | Title of screen |
adjustedScroll
|
function | Returns calculated values using react animated |
global
|
Object | App global style |
colors
|
Object | App colors |
filterProps
|
Object | Props used by the filter |
headerIsDark
|
Boolean | Returns |
fontSizeAdjustment
|
Number | Returns font adjusted values for the filter |
# NotificationsMoreButtonWrapperComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
item
|
Object | Notification object |
navigation
|
NavigationService | |
actionButtons
|
Array | Action buttons for ActionSheetButtonWrapper |
t
|
TranslationFunction | |
notList
|
Boolean | Returns |
renderInnerContent
|
function | Can be used by ActionSheetButtonWrapper to render the notification item row content |
renderSheetHeader
|
function | Can be used by ActionSheetButtonWrapper to render its ActionSheetHeader |
shouldOpen
|
Boolean | Returns |
wrapStyle
|
Object | Default wrap component style |
# NotificationsWidgetTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
icon
|
String | |
title
|
String | Title of the widget |
textColor
|
String | |
seeMoreHidden
|
Boolean | Returns |
seeMoreHandler
|
function | Helper function that redirects to appropriate screen |
seeMoreLabel
|
String | Default label of "See More" button |
notifications
|
Array.<Object> | Notification object |
t
|
TranslationFunction | |
navigation
|
NavigationService |
# OfflineComponentProps
OfflineComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
containerStyle
|
Record.<any, any> | Default container style |
emptyListStyle
|
Record.<any, any> | Default style of EmptyList component |
# OnChangeEventListenerCallback
OnChangeEventListenerCallback
Properties:
Name | Type | Description |
---|---|---|
id
|
number | Field id |
groupKey
|
number | Group key |
required
|
boolean | Returns |
isDate
|
boolean | Returns |
newValue
|
string | Returns value of input |
# OnNavigationStateChangeCallback(navState)
Parameters:
Name | Type | Description |
---|---|---|
navState |
Object | Navigation state object from React Native WebView's onNavigationStateChange method |
# OnShouldStartLoadWithRequestCallback(index, req, isLoading, isFocused, currentUrl, nextUrl, isExternalDeeplink, onNext, openExternal, shouldOpenInExternalBrowser, isSameSite, attemptDeepLink)
Parameters:
Name | Type | Description |
---|---|---|
index |
Number | Web view page index |
req |
Object | Request object from React Native WebView's onShouldStartLoadWithRequest method |
isLoading |
Boolean | Returns |
isFocused |
Boolean | Returns |
currentUrl |
Object | Data of current url |
nextUrl |
Object | Data of next url |
isExternalDeeplink |
function | Helper function to determine if deep link url should be opened externally |
onNext |
function | Helper function to render the new WebView and animate the current WebView out of view |
openExternal |
Boolean | Returns value of navigation state's |
shouldOpenInExternalBrowser |
function | Helper function to determine if url should open in an external browser |
isSameSite |
Boolean | Returns |
attemptDeepLink |
function | Helper function to attempt deep link |
# OverrideQuestionHTMLWrapperCallback
OverrideQuestionHTMLWrapperCallback
Properties:
Name | Type | Description |
---|---|---|
HTML
|
string | Default HTML wrapper |
inputHTML
|
string | HTML that contains the input element |
css
|
string | CSS passed to webview by default |
# OverrideQuestionImageSizeCallback
OverrideQuestionImageSizeCallback
Properties:
Name | Type | Description |
---|---|---|
isPopup
|
boolean | Returns |
value
|
number | Current image max width |
# PageRenderer(props, component)
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | Props which can be used to create a custom page renderer |
component |
React.ComponentType.<any> | Default component used in the app |
# ParentGroupBarProps
ParentGroupBarProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | Default styles |
parentGroup
|
null | Record.<any, any> | Details of group's parent |
group
|
TGroupViewModel | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
navigateToParent
|
function | Navigate to parent group |
t
|
TTranslationFunction |
# PostInComponentProps
Properties:
Name | Type | Description |
---|---|---|
disableSelection
|
Boolean | Returns |
togglePostInOptions
|
function | Toggles the modal where the user can select visibility |
global
|
Object | App global style |
colors
|
Object | App colors |
styles
|
Object | Default styles |
icon
|
Object | Default Icon |
# PrevNextComponentProps
PrevNextComponentProps
Properties:
Name | Type | Description |
---|---|---|
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
courseId
|
number | Course id of lesson/topic/quiz |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
# PrevNextPlaceholderProps
PrevNextPlaceholderProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
# ProductListComponentProps
Props listed below are props related to IAP. Actual prop might contain more data.
Properties:
Name | Type | Description |
---|---|---|
storeProductPairs
|
Array.<Object> | Information about loaded products |
productsIds
|
Array | Ids of products |
iapSettings
|
Object | Settings related to in-app purchases |
# ProfileHeaderButtonObject
ProfileHeaderButtonObject
Properties:
Name | Type | Description |
---|---|---|
icon
|
number | Button icon |
label
|
string | Button label |
doFunction
|
function | Function to call |
getError
|
function | Callback if an error occured |
# ProfileHeaderWrapperProps
ProfileHeaderWrapperProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | |
children
|
React.ComponentType |
# ProfileItemProps
ProfileItemProps
Properties:
Name | Type | Description |
---|---|---|
isLast
|
boolean | Returns |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
formatDateFunc
|
function | Helper function which can be used to format dates |
attemptDeepLink
|
function | Helper function which is used for deep linking |
styles
|
Record.<any, any> | Default styles |
field
|
Record.<any, any> | Field details |
# ProfileItemValueProps
ProfileItemValueProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
data
|
Record.<any, any> | Field details |
type
|
string | Field type |
options
|
Array | Field options |
formatDateFunc
|
function | Helper function which can be used to format dates |
attemptDeepLink
|
function | Helper function which is used for deep linking |
ProfileItemValue
|
React.ComponentType.<any> | Default component used for rendering the values |
# ProgressListItemComponentProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Object | |
global
|
Object | App global style |
colors
|
Object | App colors |
onPress
|
function | onPress handler |
allowNavigation
|
Boolean |
# QuestionAssessmentHTMLProps
QuestionAssessmentHTMLProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Record.<any, any> | Question assessment details |
index
|
number | Index of item |
styles
|
Record.<any, any> | Default styles |
global
|
Record.<any, any> | App global style |
tagsStyles
|
Record.<any, any> | Default tags styles which can be used for rendering the question assessment HTML description |
# QuestionClosedComponentProps
QuestionClosedComponentProps
Properties:
Name | Type | Description |
---|---|---|
contentId
|
string | |
source
|
Record.<any, any> | Source to render in the webview |
inputChange
|
function | Updates the answer in the input component |
typography
|
function | |
htmlStylesCss
|
string | Default css for webview |
htmlAdjustedCss
|
string | Default css for webview |
tagsStyles
|
Record.<any, any> | Default tags styles for rendering the HTML |
baseFontStyle
|
Record.<any, any> | Default font styles for rendering the HTML |
questionText
|
string | Question to render in the HTML component |
computedWidth
|
number | Can be used for |
alterChildren
|
function | Default alterChildren value which can be used for the HTML component |
onLinkPress
|
function | Implements deep linking in the HTML component |
ignoredTags
|
Array | Default list of ignored tags |
renderers
|
function | Default renderer value which can be used for the HTML component |
# QuestionCountComponentProps
QuestionCountComponentProps
Properties:
Name | Type | Description |
---|---|---|
hideTitle
|
undefined | boolean | |
styles
|
Record.<any, any> | Default styles |
t
|
TTranslationFunction | |
labels
|
Record.<any, any> | Learndash labels |
total
|
number | Total number of questions |
questionNumber
|
number | Current question number |
# QuestionEssayComponentProps
QuestionEssayComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | Default styles |
error
|
null | string | Returns a string if an error was encountered |
t
|
TTranslationFunction | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
onPress
|
function | Calls function to enable upload |
showIcon
|
boolean | Returns |
showLoading
|
boolean | Returns |
icon
|
string | number | Default icon |
title
|
string | Default title of upload button |
# QuestionHintComponentProps
QuestionHintComponentProps
Properties:
Name | Type | Description |
---|---|---|
showFooter
|
boolean | Returns |
global
|
Record.<any, any> | App global style |
question
|
Record.<any, any> | Question data |
htmlStylesCss
|
string | Default html css styles. This can be added to an html string if the hint is to be generated in an HTML component. |
htmlAdjustedCss
|
string | Default html css styles. This can be added to an html string if the hint is to be generated in an HTML component. |
typography
|
Record.<any, any> | Font data |
t
|
TTranslationFunction | |
styles
|
Record.<any, any> | Default styles for the Hint component |
# QuestionNumberIndicatorsProps
QuestionNumberIndicatorsProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction |
# QuestionNumberProps
QuestionNumberProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Record.<any, any> | Question details |
onPress
|
function | Selects the question when executed |
title
|
number | Title of the component |
markItemSize
|
number | Size of the status indicated placed on the component |
isMarked
|
boolean | Returns |
titleColor
|
string | Title color |
itemSize
|
number | Question number component size |
backgroundColor
|
string | Background color for the question number component |
markColor
|
string | Color of the status indicator placed on the component |
# QuestionOverviewButtonsProps
QuestionOverviewButtonsProps
Properties:
Name | Type | Description |
---|---|---|
style
|
Record.<any, any> | |
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
labels
|
Record.<any, any> | Learndash labels |
onReviewPress
|
function | Marks a question for review |
onSummaryPress
|
function | Shows summary of the quiz |
disableSummaryButton
|
boolean | Returns |
# QuestionSortItemComponentProps
QuestionSortItemComponentProps
Properties:
Name | Type | Description |
---|---|---|
Component
|
React.ComponentType | Default wrapper for sort component |
styles
|
Record.<any, any> | Default styles |
data
|
Record.<any, any> | Item data |
icon
|
number | Default icon for sort component |
active
|
boolean | Returns |
# QuestionSubmitButtonProps
QuestionSubmitButtonProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | |
global
|
Record.<any, any> | App global style |
quiz
|
TQuizViewModel | |
hasAnswer
|
boolean | Returns |
hasBackButton
|
boolean | Returns |
showNoAnswerAlert
|
function | Shows an alert modal if a question requires an answer but no answer was inputted |
isLastQuestion
|
false | Returns |
completing
|
boolean | Returns |
onQuestionOverviewSummaryPress
|
function | Shows the quiz summary in a modal |
submitQuiz
|
function | Submits the quiz |
onQuestionSubmitClick
|
function | Submits the answer to a question |
label
|
string | Returns the default button label |
submitting
|
boolean | Returns |
# QuestionViewModel
QuestionViewModel
Properties:
Name | Type | Description |
---|---|---|
category
|
string | Question category |
quizId
|
number | Id of quiz |
id
|
number | Id of question |
index
|
number | Index of question in the quiz |
title
|
string | Question title |
titleNative
|
Array | Title block |
hint
|
string | Hint |
options
|
Array | Answer options |
matrixValues
|
Array | Answer data if question is matrix sorting |
questionType
|
string | Question type |
gradedType
|
string | Graded type |
resumeData
|
Record.<any, any> | Data for resuming a question |
# Quiz
Quiz
Properties:
Name | Type | Description |
---|---|---|
id
|
number | Quiz id |
title
|
string | Quiz title |
date
|
string | Date when quiz was created |
date_gmt
|
string | Date when quiz was created |
modified
|
string | Date when quiz was last modified |
modified_gmt
|
string | Date when quiz was last modified |
timeLimit
|
number | undefined | Slug of url to quiz, Time limit to take the quiz |
content
|
string | Quiz content |
contentNative
|
Array | |
author
|
Record.<any, any> | Name and avatar of author |
link
|
string | undefined | Link to quiz |
completed
|
boolean | Returns |
hasAccess
|
boolean | Returns |
hasContentAccess
|
boolean | Returns |
canTakeAgain
|
boolean | Returns |
disabledAnswerMark
|
boolean | Returns |
hideAnswerMessageBox
|
boolean | Returns |
numberedAnswer
|
boolean | Returns |
showReviewQuestion
|
boolean | Returns |
hideQuestionNumbering
|
boolean | Returns |
showCategory
|
boolean | Returns |
showPoints
|
boolean | Returns |
forcingQuestionSolve
|
boolean | Returns |
titleHidden
|
boolean | null | Returns |
formActivated
|
boolean | Returns |
formShowPosition
|
number | Returns the position of the form |
form
|
boolean | Array | Returns the quiz form |
quizSummaryHide
|
boolean | Returns |
autoStart
|
boolean | null | Returns |
quizSaving
|
boolean | Record.<any, any> | Returns data about quiz saving |
quizSavingTimeout
|
number | Returns number of seconds allowed for taking the quiz |
quizSavedAnswers
|
Record.<any, any> | Quiz saved answers |
onClick
|
function | Executes an "onClick" function passed to the model |
# QuizCompleteButtonProps
Properties:
Name | Type | Description |
---|---|---|
showContinue
|
Boolean | Returns |
global
|
Object | App global style |
colors
|
Object | App colors |
onCompleteButtonClick
|
function | Function to execute when the continue button is pressed |
t
|
TranslationFunction |
# QuizDetailVM
Properties:
Name | Type | Description |
---|---|---|
showCategoryScore
|
Boolean | Returns |
hideResultQuizTime
|
Boolean | Returns |
hideResultPoints
|
Boolean | Returns |
showAverageResult
|
Boolean | Returns |
btnViewQuestionHidden
|
Boolean | Returns |
# QuizMaterialsComponentProps
QuizMaterialsComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
materials
|
string | Contents of course materials field |
tagsStyles
|
Record.<any, any> | Default styles for different HTML tags |
materialsStyles
|
Record.<any, any> | Default styles for course materials |
baseFontStyle
|
function | Function to set a font style |
navigation
|
NavigationService | |
onLinkPress
|
function | Handles link press for the HTML component |
# QuizOfflineComponentProps
QuizOfflineComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
wrapperCompsStyle
|
Record.<any, any> | Default wrapper style |
renderNav
|
function | Renders the navigation component |
styles
|
Record.<any, any> | Default styles for the offline component |
# QuizPrevNextComponentProps
QuizPrevNextComponentProps
Properties:
Name | Type | Description |
---|---|---|
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction | |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
courseId
|
number | Course id of lesson/topic/quiz |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
headerRightAuthWrapperProps
|
Record.<any, any> | Props which can be passed to an AuthWrapper |
# QuizReviewFreeAnswerComponentProps
QuizReviewFreeAnswerComponentProps
Properties:
Name | Type | Description |
---|---|---|
answer
|
Record.<any, any> | Answer details |
correct
|
boolean | Returns |
styles
|
Record.<any, any> | Default styles |
icon
|
Record.<any, any> | Default success or fail icon |
tintColor
|
string | Default tint color for success or fail status |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
# QuizReviewHTMLQuestionTitleProps
QuizReviewHTMLQuestionTitleProps
Properties:
Name | Type | Description |
---|---|---|
tagsStyles
|
Record.<any, any> | Default tags styles |
baseFontStyle
|
Record.<any, any> | Default font style |
html
|
string | Returns the question title in html format |
imageMaxWidth
|
number | Default image max width when generated by the HTML component |
onLinkPress
|
function | Handles link press for the HTML component |
ignoredTags
|
Array | Default ignored tags |
classesStyles
|
Record.<any, any> | Default classes styles |
colors
|
Record.<any, any> | App colors |
navigation
|
NavigationService |
# QuizReviewQuestionAssessmentHTMLProps
QuizReviewQuestionAssessmentHTMLProps
Properties:
Name | Type | Description |
---|---|---|
item
|
Record.<any, any> | Question assessment details |
index
|
number | Index of item |
styles
|
Record.<any, any> | Default styles |
global
|
Record.<any, any> | App global style |
tagsStyles
|
Record.<any, any> | Default tags styles which can be used for rendering the question assessment HTML description |
# QuizReviewQuestionClosedComponentProps
QuizReviewQuestionClosedComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
styles
|
Record.<any, any> | Default styles |
questionText
|
string | Question and answer details |
tagsStyles
|
Record.<any, any> | Default tags styles for rendering the HTML |
# QuizReviewQuestionEssayComponentProps
QuizReviewQuestionEssayComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | Default styles |
t
|
TTranslationFunction | |
global
|
Record.<any, any> | App global style |
# QuizReviewQuestionSortItemComponentProps
QuizReviewQuestionSortItemComponentProps
Properties:
Name | Type | Description |
---|---|---|
Component
|
React.ComponentType | Default wrapper for sort component |
styles
|
Record.<any, any> | Default styles |
data
|
Record.<any, any> | Item data |
icon
|
Record.<any, any> | Default icon for sort component |
active
|
boolean | Returns |
# QuizReviewRadioDescriptionProps
QuizReviewRadioDescriptionProps
Properties:
Name | Type | Description |
---|---|---|
index
|
number | Index of the answer |
color
|
string | Default color of the description component |
styles
|
Record.<any, any> | Default styles for the description |
baseFontStyle
|
Record.<any, any> | Font details |
description
|
string | Description of the answer |
renderers
|
Record.<any, any> | Default renderers for the HTML component |
# QuizReviewRadioIconProps
QuizReviewRadioIconProps
Properties:
Name | Type | Description |
---|---|---|
multiselect
|
boolean | Returns |
styles
|
Record.<any, any> | Default styles for the radio |
isWrong
|
boolean | undefined | Returns |
isRight
|
boolean | undefined | Returns |
multipleChoiceIcon
|
number | Returns the default resource used in the radio |
radio
|
Record.<any, any> | Answer details |
# QuizScreenHeaderProps
QuizScreenHeaderProps
Properties:
Name | Type | Description |
---|---|---|
quiz
|
TQuizViewModel | |
currentSwiperPosition
|
number | |
global
|
Record.<any, any> | App global style |
labels
|
Record.<any, any> | Learndash labels |
questions
|
Array | Current questions in the quiz |
quizOrder
|
number | |
quizTotalCount
|
number | |
colors
|
Record.<any, any> | App colors |
setHeaderHeight
|
function | Helper function which can be called to set header height |
renderQuizTimer
|
boolean | React.ComponentType | Returns |
t
|
TTranslationFunction | |
navigation
|
NavigationService | |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
courseId
|
number | Course id of lesson/topic/quiz |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
course
|
Course | |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
isResultsVisible
|
boolean | Returns |
backToCourse
|
React.ComponentType | Returns default back button component |
hideQuestionNumbering
|
boolean | Returns |
hidePrevNext
|
boolean | Returns |
prevNext
|
boolean | React.ComponentType | Returns |
headerLeftStyle
|
Record.<any, any> | Default styling for left section of the header |
style
|
Record.<any, any> | Default styling of lesson header |
# QuizSectionTitleProps
QuizSectionTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction |
# QuizStartButtonProps
QuizStartButtonProps
Properties:
Name | Type | Description |
---|---|---|
showStart
|
boolean | Returns |
global
|
Record.<any, any> | App global style |
styles
|
Record.<any, any> | Default styles for the button. |
quiz
|
TQuizViewModel | |
quizStartLoading
|
boolean | Returns |
checkForm
|
function | Checks form and sets state as invalid if applicable. |
startQuiz
|
function | Starts the quiz. |
t
|
TTranslationFunction | |
labels
|
Record.<any, any> | Learndash labels |
isResumeQuiz
|
boolean | null | Returns |
# QuizTimerProps
QuizTimerProps
Properties:
Name | Type | Description |
---|---|---|
showTimer
|
boolean | Returns |
item
|
TQuizViewModel | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
styles
|
Record.<any, any> | |
timerRef
|
Record.<any, any> | |
onTimePassed
|
function | Updates the timer value |
onTimeOver
|
function | Submits the quiz |
# QuizTitleComponentProps
QuizTitleComponentProps
Properties:
Name | Type | Description |
---|---|---|
quiz
|
TQuizViewModel | |
currentSwiperPosition
|
number | |
global
|
Record.<any, any> | App global style |
labels
|
Record.<any, any> | Learndash labels |
questions
|
Array | Current questions in the quiz |
quizOrder
|
number | |
quizTotalCount
|
number | |
colors
|
Record.<any, any> | App colors |
setHeaderHeight
|
function | Helper function which can be called to set header height |
renderQuizTimer
|
boolean | React.ComponentType | Returns |
t
|
TTranslationFunction | |
navigation
|
NavigationService | |
onQuizClick
|
function | Function to execute if previous or next button is a quiz |
onLessonClick
|
function | Function to execute if previous or next button is a lesson |
onTopicClick
|
function | Function to execute if previous or next button is a topic |
courseId
|
number | Course id of lesson/topic/quiz |
prevObject
|
Record.<any, any> | Data about previous lesson/topic/quiz |
nextObject
|
Record.<any, any> | Data about next lesson/topic/quiz |
course
|
Course | |
nextLockedAlert
|
function | Shows an alert with information that next object is locked |
isResultsVisible
|
boolean | Returns |
backToCourse
|
React.ComponentType | Returns default back button component |
hideQuestionNumbering
|
boolean | Returns |
hidePrevNext
|
boolean | Returns |
prevNext
|
boolean | React.ComponentType | Returns |
# QuizVM
Properties:
Name | Type | Description |
---|---|---|
showCategoryScore
|
Boolean | Returns |
hideResultQuizTime
|
Boolean | Returns |
hideResultPoints
|
Boolean | Returns |
showAverageResult
|
Boolean | Returns |
toplistActivated
|
Boolean | Returns |
hideResultCorrectQuestion
|
Boolean | Returns |
btnRestartQuizHidden
|
Boolean | Returns |
toplistData
|
Object | Contains top list data used for showing quiz leader board |
resultGradeEnabled
|
Boolean | Returns |
resultText
|
Object | Contains result message which can also be displayed in Quiz Details screen |
# QWebViewContentComponentProps
QWebViewContentComponentProps
Properties:
Name | Type | Description |
---|---|---|
online
|
boolean | Returns |
t
|
TTranslationFunction | |
onShouldStartLoadWithRequest
|
function | The default function used for determining how to handle webview requests. |
height
|
number | Default height |
source
|
Record.<any, any> | Contains data of the web site to be loaded in the webview |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
ModalHeaderComponent
|
React.FC | Modal which shows up when the "Read More" component is pressed |
# RadioContainerProps
RadioContainerProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | Default styles |
key
|
number | Index of the component |
Component
|
React.FC | Returns the default component used |
onPress
|
function | Calls the function used when the component is pressed |
selected
|
boolean | Returns |
numbered
|
boolean | Returns |
children
|
React.FC | Default children components |
# RadioDescriptionProps
RadioDescriptionProps
Properties:
Name | Type | Description |
---|---|---|
index
|
number | Index of the answer |
styles
|
Record.<any, any> | Default styles for the description |
baseFontStyle
|
Record.<any, any> | Font details |
description
|
string | Description of the answer |
ignoredTags
|
Array | List of tags to be ignored by the html renderer |
navigation
|
NavigationService |
# RadioIconProps
RadioIconProps
Properties:
Name | Type | Description |
---|---|---|
multiselect
|
boolean | Returns |
styles
|
Record.<any, any> | Default styles for the radio |
isWrong
|
boolean | undefined | Returns |
isRight
|
boolean | undefined | Returns |
multipleChoiceIcon
|
number | Returns the default resource used in the radio |
radio
|
Record.<any, any> | Answer details |
# RadioOnPressCallbackProps
RadioOnPressCallbackProps
Properties:
Name | Type | Description |
---|---|---|
setRadioState
|
function | Selects the radio |
multiselect
|
boolean | Returns |
radios
|
Array | Answer details |
selected
|
Array | Selected answers |
index
|
number | Index of the pressed radio |
# Reducer(previousState, action) → {ReduxStore}
Redux reducer
Parameters:
Name | Type | Description |
---|---|---|
previousState |
ReduxStore | The current state |
action |
ReduxAction | An action to execute to update the store |
The next state
# ReducerWrapper() → {Reducer}
Parameters:
Type | Description |
---|---|
Reducer | Original reducer |
- Changed reducer
# ReduxAction
Redux action
Properties:
Name | Type | Description |
---|---|---|
type
|
String | Indicator for the handling of the action |
# ReduxMiddleware()
# ReplyItemAvatarProps
Properties:
Name | Type | Description |
---|---|---|
reply
|
Object | Reply details |
global
|
Object | App global style |
isNested
|
Boolean | Returns |
# ReplyItemContentProps
Properties:
Name | Type | Description |
---|---|---|
formatTextForDisplay
|
function | Helper function which formats a text |
filterContentCss
|
function | Helper function which filters css to a safe format |
reply
|
Object | Reply details |
colors
|
Object | App colors |
t
|
TranslationFunction | |
global
|
Object | App global style |
tagsStyles
|
Object | Default styling for HTML tags |
imagesInitialDimensions
|
Object | |
computedWidth
|
Number | |
referer
|
String | Used by iframeRender to add |
alterChildrenHTML
|
function | Helper function which cleans up HTML |
attemptDeepLink
|
function | Helper function to attempt deep link |
aTagRenderer
|
function | Helper function for rendering anchor tags |
iframeRender
|
function | Helper function for rendering iFrame in an HTML |
# ReplyItemHeaderProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
headerTitleStyle
|
Object | Default styling applied to the component |
reply
|
Object | Reply details |
formatDateFunc
|
function | Helper function which can be used to format dates |
# RestartQuizButtonProps
Properties:
Name | Type | Description |
---|---|---|
quizVM
|
QuizVM | |
global
|
Object | App global style |
colors
|
Object | App colors |
styles
|
Object | |
onAgainClick
|
function | Allows users to take the quiz again |
# ResultCorrectCountProps
Properties:
Name | Type | Description |
---|---|---|
quizVM
|
QuizVM | |
global
|
Object | App global style |
labels
|
Object | Learndash labels |
correctAnswers
|
Number | Total count of correct answers |
result
|
Object | Quiz result details |
# ResultDetailsProps
Properties:
Name | Type | Description |
---|---|---|
result
|
Object | Quiz result details |
quizVM
|
QuizDetailVM | |
global
|
Object | App global style |
colors
|
Object | App colors |
t
|
TranslationFunction |
# ResultQuizTimeProps
Properties:
Name | Type | Description |
---|---|---|
quizVM
|
QuizVM | |
global
|
Object | App global style |
colors
|
Object | App colors |
t
|
TranslationFunction | |
result
|
Object | Quiz result details |
# ReviewQuizButtonProps
Properties:
Name | Type | Description |
---|---|---|
|
ResultDetailsProps | |
bottomSafeArea
|
Number | |
onReviewClick
|
function | Helper function that navigates to Quiz Review screen |
labels
|
Object | Learndash labels |
# RoutesObject
Example
{
AppLockScreen: {screen: AppLockNavigator},
Main: {screen: MainScreenNavigator, navigationOptions: {header: null}},
...
}
# screenProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | |
colors
|
Object | |
t
|
TranslationFunction | |
isFeatureEnabled
|
boolean |
# ScrollHeaderProps
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
headerProps
|
Array.<headerProps> | ||
navigation
|
NavigationService | ||
screenTitle
|
String | Title of screen |
|
global
|
Object | App global style |
|
t
|
TranslationFunction | ||
headerTitleStyle
|
Object | ||
screenSubtitle
|
String |
<nullable> |
# SearchInputComponent(props) → (nullable) {React.ComponentType.<any>}
Parameters:
Name | Type | Description |
---|---|---|
props |
SearchProps |
# SearchProps
Properties:
Name | Type | Description |
---|---|---|
searchTerm
|
String | |
setSearchTerm
|
function | |
inputProps
|
Object | |
global
|
Object | App global style |
colors
|
Object | App colors |
animatedHeight
|
Animated.Node.<number> | |
containerStyle
|
Object | Default search component container style |
renderAdvancedSearch
|
function | Boolean | |
t
|
TranslationFunction | |
cancelSearchTextStyle
|
Object | Default cancel component style |
lightStyle
|
Boolean | Returns |
SearchComponent
|
React.ComponentType | Renders the default search component |
# ServerUrlOverriderFunction(sitesState) → (nullable) {string}
Parameters:
Name | Type | Description |
---|---|---|
sitesState |
SitesState |
url
# SettingsListProps
Properties:
Name | Type | Description |
---|---|---|
navigation
|
navigationService | |
settings
|
Object | App settings from API |
config
|
Object | App config from API |
user
|
Object | Information about logged-in user |
lockAppFeatureEnabled
|
Boolean | Returns |
pushNotificationsEnabled
|
Boolean | Returns |
isMultisiteEnabled
|
Boolean | Returns |
isBiometricEnrolled
|
Boolean | Returns |
isLocalAuthEnabled
|
Boolean | Returns |
supportedBiometric
|
Number | Returns the number of supported biometric |
autoLock
|
Boolean | Returns |
autoLockDuration
|
Number | Returns the number of auto lock duration in seconds |
bugReportingEnabled
|
Boolean | Returns |
feedbackEnabled
|
Boolean | Returns |
hasDevAccess
|
Boolean | Returns |
termsPage
|
Object | Title and link to terms page |
privacyPage
|
Object | Title and link to privacy page |
restorePurchases
|
function | Function to restore app purchases |
logout
|
function | Function to logout from app |
toggleLocalAuth
|
function | Function to enable or disable app local authentication |
toggleLocalAuthAutoLock
|
function | Function to enable or diable auto lock of app |
changeAutoLockDuration
|
function | Function to change auto lock duration |
# ShouldUpdateCallback(thisProps, nextProps, thisState, nextState) → {Boolean}
Parameters:
Name | Type | Description |
---|---|---|
thisProps |
Object | Current props |
nextProps |
Object | Next props |
thisState |
Object | Current state |
nextState |
Object | Next state |
Return true
if component should update
# showMarkAsCompleteProps
showMarkAsCompleteProps
Properties:
Name | Type | Description |
---|---|---|
topic
|
LearnTopic |
# SignupButtonProps
Properties:
Name | Type | Description |
---|---|---|
disabled
|
Boolean | Returns |
global
|
Object | App global style |
doSignup
|
function | Default signup function |
label
|
String | Button label |
loading
|
Boolean | Returns |
spinnerColor
|
Boolean | Returns spinner color in button |
visibleFields
|
Array.<Object> | Visible fields in sign up form |
fieldValues
|
Object | Default field values. See: https://react-hook-form.com/v5/api#getValues |
formState
|
Object | Information about form state. See: https://react-hook-form.com/v5/api#formState |
getValues
|
function | Returns entire form data. See: https://react-hook-form.com/v5/api#getValues |
# SignupFields
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
display
|
boolean |
<nullable> |
|
id
|
string | Ex: |
|
label
|
string | Field's label |
|
member_type
|
string | ||
options
|
Array.<any> | If field is a checkbox, this contains the checkbox fields |
|
required
|
boolean | True if field is required |
|
type
|
string | Ex: |
# SignupFieldsFilterCallback(fields) → {Array.<SignupFields>}
Parameters:
Name | Type | Description |
---|---|---|
fields |
Array.<SignupFields> | Old fields array |
Changed fields array
# SignUpInputComponentProps
Properties:
Name | Type | Description |
---|---|---|
DefaultComponent
|
React.Component | Default input component |
label
|
String | Input label |
field
|
Record.<any, any> | Input details |
setValue
|
function | Function to handle input changes to the component |
theme
|
Record.<any, any> | Default style |
initialValue
|
undefined | string | Initial value of field |
# SignUpInputsValidationCallback(doValidation, fieldName, field, t) → {void}
Parameters:
Name | Type | Description |
---|---|---|
doValidation |
function | Calls the default validation function |
fieldName |
String | Name of the field |
field |
Object | Field details |
t |
TranslationFunction |
# SignUpLinkProps
Properties:
Name | Type | Description |
---|---|---|
isSignUpEnabled
|
Boolean | Returns |
footerRef
|
Object | Footer reference for the component |
onPress
|
function | Calls the default sign up function |
styles
|
Object | Default style of the component |
t
|
TranslationFunction | |
global
|
Object | App global style |
colors
|
Object | App colors |
navigation
|
NavigationService |
# Site
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
blog_id
|
number | ||
blogname
|
string | ||
domain
|
string | ||
path
|
string | ||
siteurl
|
string | ||
app_home_screen_logo
|
string |
<nullable> |
|
app_splash
|
string |
<nullable> |
# SortItemOnDragEndCallbackProps
SortItemOnDragEndCallbackProps
Properties:
Name | Type | Description |
---|---|---|
dragEnd
|
function | Calls the |
index
|
number | Index of the item related to |
data
|
Array | Answer details |
order
|
Array | Order of answers displayed |
# SortItemOnDraggingCallbackProps
SortItemOnDraggingCallbackProps
Properties:
Name | Type | Description |
---|---|---|
dragging
|
function | Calls the |
data
|
Array | Answer details |
order
|
Array | Order of answers displayed |
# SortItemOnDragStartCallbackProps
SortItemOnDragStartCallbackProps
Properties:
Name | Type | Description |
---|---|---|
dragStart
|
function | Calls the |
index
|
number | Index of the item related to |
data
|
Array | Answer details |
order
|
Array | Order of answers displayed |
# SubscreenObject(list) → {Array.<string>}
Parameters:
Name | Type | Description |
---|---|---|
list |
Array.<ActivitiesFilter> |
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
icon
|
number | Record.<any, any> | ||
label
|
string | ||
count
|
number |
<optional> |
|
onPress
|
function |
- New list
# TCourseViewModel
TCourseViewModel
Properties:
Name | Type | Description |
---|---|---|
id
|
number | Course id |
featuredUrl
|
string | Url to featured image |
coverUrl
|
string | Url to cover image |
canEnroll
|
boolean | Returns |
incompletePrerequisiteMessage
|
string | Returns a message if incomplete prerequisite |
title
|
string | Course title |
progression
|
number | Returns course progression by the user |
date
|
string | Date of when course was created |
lessonsCount
|
number | Number of lessons in the course |
lessonsCompleted
|
number | Number of lessons completed in the course |
onClick
|
function | Default function when a course widget is clicked |
isClosed
|
boolean | Returns |
hasAccess
|
boolean | Returns |
hasContentAccess
|
boolean | Returns |
hideContentTable
|
boolean | Returns |
paidCourse
|
boolean | Returns |
completed
|
boolean | Returns |
link
|
string | Link to the course |
purchasable
|
boolean | Returns |
offlineDisabled
|
boolean | Returns |
videoUrl
|
string | undefined | Url to video of course |
bb_access
|
Record.<any, any> | Returns detail of access granted |
price
|
Record.<any, any> | Course price and currency |
error
|
Record.<any, any> | Error message encountered |
authorId
|
number | Id of course's author |
author
|
Record.<any, any> | Author details |
modifiedDate
|
string | Date of when course was last modified |
showStart
|
boolean | Returns |
certificate
|
Record.<any, any> | Certificate details |
members
|
Array | Shows members enrolled in course |
enrolledMmebers
|
number | Shows number of enrolled members |
iapProducts
|
Array | IAP products associated to the course |
forumId
|
number | Forum associated to the course |
materials
|
undefined | string | Course materials |
content
|
string | Course content |
contentNative
|
Array | Blocks in the course |
lessons
|
Array | Lessons associated to the course |
loading
|
boolean | Returns |
quizzes
|
Array | Quizzes associated to the course |
categories
|
Array | Course categories |
categoriesCount
|
number | Number of course categories |
isEnrolling
|
boolean | Returns |
# TGroupViewModel
TGroupViewModel
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
parentId
|
number | Returns id of the group parent if available |
|
id
|
number | Group id |
|
avatar
|
string | Group avatar |
|
coverImage
|
string | Returns |
|
coverIsDefault
|
boolean | Returns |
|
isMember
|
boolean | Returns |
|
isAdmin
|
boolean | Returns |
|
isAuthor
|
boolean | Returns |
|
isMod
|
boolean | Returns |
|
isSoloOrganizer
|
boolean | Returns |
|
notAdmin
|
boolean | Returns |
|
inviteId
|
number | boolean | Returns the invite id if logged in user has been invited to join. Otherwise, will return |
|
can_report
|
boolean | Returns |
|
reported
|
boolean | Returns |
|
requestId
|
number | boolean | Returns request id if logged in user is trying to join the group. Otherwise, will return |
|
title
|
string | Group title |
|
content
|
string | Group description |
|
contentRendered
|
string | Group description rendered |
|
shortContent
|
string | Group short description |
|
hasForum
|
boolean | Returns |
|
membersCount
|
number | Number of members in the group |
|
status
|
string | Group visibility. Ex: |
|
admins
|
Array.<TMember> | ||
role
|
string | Role of logged in user |
|
roleLabel
|
string | Role label of logged in user |
|
type
|
string | Group type |
|
subgroupIds
|
Array | ||
navigateToWeb
|
function | Function to navigate to group link in web |
|
navigateToForum
|
function |
<optional> |
Function to navigate to group's forum |
subscribeClick
|
function |
<optional> |
Toggle subscription to group |
getGroup
|
function | Function to get all fields given by api. Ex: |
|
canPost
|
boolean | Returns |
|
canJoin
|
boolean | Returns |
|
canCreateMedia
|
boolean | Returns |
|
canCreateDocument
|
boolean | Returns |
|
onClick
|
function | Function to navigate to group item |
# ThreadItemAvatarProps
Properties:
Name | Type | Description |
---|---|---|
message
|
Object | Message data filtered by a view model |
thread
|
Object | Contains thread information such as recipients, messages etc |
item
|
Object | Message data |
size
|
Number | Default avatar size in message thread item |
source
|
Object | Contains uri of user image |
style
|
Object | Default thread item style |
# ThreadItemHeaderProps
Properties:
Name | Type | Description |
---|---|---|
message
|
Object | Message data filtered by a view model |
thread
|
Object | Contains thread information such as recipients, messages etc |
item
|
Object | Message data |
global
|
Object | App global style |
# ThreadItemTextProps
Properties:
Name | Type | Description |
---|---|---|
message
|
Object | Message data filtered by a view model |
thread
|
Object | Contains thread information such as recipients, messages etc |
item
|
Object | Message data |
t
|
TranslationFunction | |
global
|
Object | App global style |
attemptDeepLink
|
function | Attempt deep linking |
size
|
Number | Character length to display |
# TLearnTopicViewModel
TLearnTopicViewModel
Properties:
Name | Type | Description |
---|---|---|
id
|
number | Topic id |
title
|
string | Topic title |
contentNative
|
Record.<any, any> | Blocks in the topic |
content
|
string | Topic content |
author
|
Record.<any, any> | Topic author |
video
|
Record.<any, any> | Video progression |
link
|
string | Link to topic |
videoUrl
|
string | Url of the video used in video progression |
order
|
number | Order number of topic |
total
|
number | Number of topics |
lessonProgress
|
number | |
completed
|
boolean | Returns |
assignment_upload
|
boolean | Returns |
quizzes
|
Array | Quizzes associated to the topic |
requiredTimer
|
boolean | Returns |
duration
|
number | Duration of timer |
settings
|
Record.<any, any> | |
date
|
string | Date created |
# TLessonViewModel
TLessonViewModel
Properties:
Name | Type | Description |
---|---|---|
id
|
number | Lesson id |
title
|
string | Lesson title |
content
|
string | Lesson content |
contentNative
|
Array | Blocks used in the lesson |
excerpt
|
string | Lesson excerpt |
link
|
string | Url to lesson |
quizCompleted
|
boolean | Returns |
lessonQuizzes
|
Array | |
completed
|
boolean | Returns |
requireTimer
|
boolean | Returns |
timerRequiredTime
|
number | Timer required time |
progression
|
number | User's progress in the lesson |
hasAccess
|
boolean | Returns |
hasContentAccess
|
boolean | Returns |
topicsCount
|
number | Number of topics in the lesson |
videoUrl
|
string | Url added in video progression of the lesson |
video
|
Record.<any, any> | Video details |
# TMember
TMember
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id
|
number | User id |
|
name
|
string | Name of user |
|
user_login
|
string | Login name of user |
|
link
|
string | Url to user's profile |
|
member_types
|
Record.<any, any> | Member type |
|
registered_date
|
string | User's date of registration |
|
profile_name
|
string | User's profile name |
|
last_activity
|
string | User's last activity |
|
xprofile
|
Record.<any, any> | Extended profile data |
|
followers
|
number | Number of followers |
|
following
|
number | Number of user's connections |
|
is_wp_admin
|
boolean | Returns |
|
friendship_status
|
"pending" | "is_friend" | "not_friends" | "awaiting_response" | Friendship status |
|
mention_name
|
string | User's handle |
|
avatar_urls
|
Record.<any, any> |
<optional> |
User's avatars |
cover_url
|
string | boolean | User's profile cover image |
|
cover_is_default
|
boolean | ||
points
|
Record.<any, any> | Gamipress points |
|
is_admin
|
boolean | ||
user_points
|
Array | User's points |
# ToolbarHeaderProps
Properties:
Name | Type | Description |
---|---|---|
t
|
TranslationFunction | |
renderToolBarHeader
|
function | Function that returns the default component used for the screen |
colors
|
Object | App colors |
global
|
Object | App global style |
# TopicContentComponentProps
Properties:
Name | Type | Description |
---|---|---|
topicProps
|
TopicProps | |
tagsStyles
|
Object | Styles used for different HTML tags |
content
|
String | Topic content |
attemptDeepLink
|
function | Helper function to attempt deep link |
computedWidth
|
Number | Default computed width of component to render |
# TopicItemHeaderProps
Properties:
Name | Type | Description |
---|---|---|
item
|
TopicViewModel | |
formatDateFunc
|
FormatDateFunction | Function to help format date |
global
|
Object | App global style |
textColor
|
String | Default text color |
linkColor
|
String | Default link color |
light
|
Boolean | Returns |
alignItems
|
String | Default alignment of items |
avatarSize
|
Number | Default size of avatar |
titleStyle
|
Object | Default styling for title |
actionButtons
|
Object | Topic functions from redux |
# TopicItemProps
Properties:
Name | Type | Description |
---|---|---|
firstItem
|
Boolean | Returns |
topic
|
TopicViewModel | |
formatDateFunc
|
FormatDateFunction | Function to help format date |
styles
|
Object | App global style and app colors |
actionButtons
|
Object | Topic functions from redux |
t
|
TranslationFunction |
# TopicItemWidgetComponentProps
Properties:
Name | Type | Description |
---|---|---|
topic
|
Array.<Object> | Contains topic object with fields such as title, shortContent, id etc. |
isLast
|
Boolean | Returns |
global
|
Object | App global style |
colors
|
Object | App colors |
# TopicProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
t
|
TranslationFunction | |
topic
|
TopicViewModel |
# TopicReplyButtonProps
Properties:
Name | Type | Description |
---|---|---|
topicProps
|
TopicProps | |
topicCloseForUser
|
Boolean | Returns |
openClosedDiscussionModal
|
function | Helper function that shows a modal if the topic has been closed to new replies |
# TopicsItemWidgetDetailsComponentProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Object | Default styles |
global
|
Object | App global style |
topic
|
TopicViewModel |
# TopicsWidgetComponentProps
Properties:
Name | Type | Description |
---|---|---|
title
|
String | Title for the widgets container |
topics
|
Array.<Object> | Contains topics object with fields such as title, slug, id etc. |
onTopicSeeAllClick
|
function | Function that will redirect to the topics list |
onTopicClick
|
function | Function that will redirect to the topic |
onAvatarClick
|
function | Function that will redirect to the profile of the author of the topic |
t
|
TranslationFunction |
# TopicsWidgetTitleProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
icon
|
String | |
title
|
String | Title of the widget |
textColor
|
String | |
seeMoreHidden
|
Boolean | Returns |
seeMoreHandler
|
function | Helper function that redirects to appropriate screen |
seeMoreLabel
|
String | Default label of "See More" button |
topics
|
Array.<TopicViewModel> | |
t
|
TranslationFunction | |
navigation
|
NavigationService |
# TopicViewModel
Properties:
Name | Type | Description |
---|---|---|
id
|
Number | Topic id |
title
|
String | Topic title |
shortContent
|
String | Topic short content |
author
|
Object | Details about topic creator |
replyCount
|
String | Number of replies in the topic |
voiceCount
|
String | Number of members replied in the topic |
date
|
String | Date created |
canSeeReplies
|
Boolean | Returns |
canReply
|
Boolean | Returns |
content
|
String | HTML string of topic content |
mediaItems
|
Array | Media items in the topic |
lastActive
|
String | Date of the topic's last activity |
forumTitle
|
String | Forum title of the topic's parent |
navigateToForum
|
function | Function to navigate to topic's forum |
navigateToProfile
|
function | Function to navigate to topic author's profile |
newReply
|
function | Function to open new reply screen |
favourite
|
function | Function to toggle topic as favourite |
# ToUserBasedOnSettings(selectedTabIdnullable, User, params)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
selectedTabId |
String |
<nullable> |
Profile subscreen idenitifier |
User |
User | User to navigate to |
|
params |
Object | Params to send through route |
# TransformActivityCommentButtons
Properties:
Name | Type | Description |
---|---|---|
params
|
Array.<String> | Default buttons allowed in the ActivityComment component |
# TransformBlogButtonsCallback
TransformBlogButtonsCallback
Properties:
Name | Type | Description |
---|---|---|
buttons
|
Array | Buttons for comment, facebook and twitter share |
blog
|
BlogViewModel |
# TransformBlogSubFiltersFilterCallback() → {Object}
Properties:
Type | Description |
---|---|
BlogSubFilterProps |
# TransformCategoriesSubFiltersFilterCallback(filters) → {Array.<string>}
Parameters:
Name | Type | Description |
---|---|---|
filters |
Array.<string> | Available filters: |
# TransformContainerPaddingTopCallback(containerPaddingTop) → {Number}
Parameters:
Name | Type | Description |
---|---|---|
containerPaddingTop |
Number |
New padding top value
# TransformContentHeadersCallback(headers, rootSiteUrl, url, accessToken) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
headers |
Object | |
rootSiteUrl |
String | |
url |
String | |
accessToken |
String |
- New headers object
# TransformContentInsetTopCallback(contentInsetTop) → {Number}
Parameters:
Name | Type | Description |
---|---|---|
contentInsetTop |
Number |
New content inset value
# TransformContentOffsetYCallback(contentOffsetY) → {Number}
Parameters:
Name | Type | Description |
---|---|---|
contentOffsetY |
Number |
New content offset value
# TransformCourseActionButtonsCallback
TransformCourseActionButtonsCallback
Properties:
Name | Type | Description |
---|---|---|
CourseActionBtn
|
JSX.Element | |
course
|
TCourseViewModel | |
t
|
function | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
products
|
Array | Products associated to the course |
navigation
|
NavigationService | |
startCourse
|
function | Starts the course when called |
continueCourse
|
function | Continues the course when called for a course in progress |
priceComponentRender
|
function | Renders the price component when called |
# TransformCourseCategoriesParams() → {Object}
Parameters:
Type | Description |
---|---|
FetchCourseCategoriesParams |
# TransformCourseViewModelCallback() → {Object}
Properties:
Name | Type | Description |
---|---|---|
viewModel
|
CourseViewModel | |
course
|
Object | Course raw data from API |
params
|
Object | Additional data passed by component |
navigation
|
NavigationService |
New view model
# TransformCreateActivityParams
Properties:
Name | Type | Description |
---|---|---|
props
|
Object | Activity details |
# TransformEditProfileFieldSetsCallback
TransformEditProfileFieldSetsCallback
Properties:
Name | Type | Description |
---|---|---|
id
|
number | id of field set |
name
|
string | Name of the field set |
description
|
Record.<any, any> | Description of the field set |
group_order
|
number | Order of the group |
can_delete
|
boolean | Returns |
repeater_enabled
|
boolean | Returns |
fields
|
Array | Fields in a field set |
# TransformForumActionButtonsCallback()
Properties:
Name | Type | Description |
---|---|---|
action
|
Array.<Object> | Contains objects for default action buttons |
# TransformForumParamsCallback(ForumsGetParam) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
ForumsGetParam |
ForumsGetParam |
# TransformForumViewModelCallback(viewModel, forum) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
viewModel |
Object | |
forum |
Forum |
# TransformGroupActionButtonsCallback
TransformGroupActionButtonsCallback
Properties:
Name | Type | Description |
---|---|---|
action
|
Array |
# TransformGroupActionsCallback
TransformGroupActionsCallback
Properties:
Name | Type | Description |
---|---|---|
TransformGroupActionsCallback
|
Array |
# TransformGroupsParams
TransformGroupsParams
Properties:
Name | Type | Description |
---|---|---|
group
|
FetchGroupsParams |
# TransformGroupSubFiltersFilterCallback
TransformGroupSubFiltersFilterCallback
Properties:
Name | Type | Description |
---|---|---|
type
|
Record.<any, any> | Filter types such as |
group_type
|
Record.<any, any> | Group types |
# TransformLearnTopicViewModelCallback
TransformLearnTopicViewModelCallback
Properties:
Name | Type | Description |
---|---|---|
viewModel
|
TLearnTopicViewModel | |
topic
|
LearnTopic |
# TransformLessonActionButtonsCallback
TransformLessonActionButtonsCallback
Properties:
Name | Type | Description |
---|---|---|
LessonButton
|
React.ComponentType | Lesson action button |
showComplete
|
boolean | Returns |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
lesson
|
TLessonViewModel | |
completing
|
boolean | Returns |
labels
|
Record.<string, string> | Learndash labels |
# TransformLessonViewModelCallback
TransformLessonViewModelCallback
Properties:
Name | Type | Description |
---|---|---|
viewModel
|
TLessonViewModel | |
lesson
|
Record.<any, any> |
# TransformMemberActionsCallback() → {Array.<ButtonConfig>}
Parameters:
Type | Description |
---|---|
Array.<ButtonConfig> |
# TransformMemberViewModelCallback(viewModel, item, toUserBasedOnSettings, isOwnAccount, isProfile) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
viewModel |
MemberViewModel | |
item |
Object | Member data from API |
toUserBasedOnSettings |
ToUserBasedOnSettings | |
isOwnAccount |
Boolean | Returns |
isProfile |
Boolean |
# TransformMessageActionsCallback(buttonConfig) → {Array}
Parameters:
Name | Type | Description |
---|---|---|
buttonConfig |
Array | Contains the default buttons for the list |
# TransformModalStyleCallback(styles) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
styles |
Object |
# TransformMoreScreenListCallback(section, dispatch, navigation, toUserBasedOnSettings, attemptDeepLink, auth) → {Array.<Object>}
Parameters:
Name | Type | Description |
---|---|---|
section |
Array.<Object> | Menu item information |
dispatch |
function | Redux dispatch function |
navigation |
NavigationService | |
toUserBasedOnSettings |
function | Navigate to user function |
attemptDeepLink |
function | Attempt deep linking |
auth |
Object | User details |
Modified section
# TransformNotificationListPropsCallback() → {Object}
Properties:
Name | Type | Description |
---|---|---|
props
|
Object | Notifications list props |
# TransformNotificationsParams() → {Object}
Parameters:
Type | Description |
---|---|
FetchNotificationsParams |
# TransformNotificationViewModelCallback() → {Object}
Properties:
Name | Type | Description |
---|---|---|
viewModel
|
Object | Notifications view model |
New view model
# TransformProfileHeaderButtonsCallback(profileHeaderButtons) → {Array.<ProfileHeaderButtonObject>}
Parameters:
Name | Type | Description |
---|---|---|
profileHeaderButtons |
Array.<ProfileHeaderButtonObject> | Array of objects that renders the header buttons |
New Array of objects
# TransformProfileIgnoredSubscreensCallback
Logged-in user's data
Properties:
Name | Type | Description |
---|---|---|
list
|
"xprofile" | "courses" | "certificates" | "gamipress_points" | "gamipress_achievements" | "gamipress_ranks" | "badgeos_points" | "badgeos_achievements" | "badgeos_ranks" | "results" | "favourites" | "subscribed" | "replies" | "topics" | "activities" | "forums" | "friends" | "blocked_users" | "groups" | "documents" | |
isOwnAcccount
|
boolean | Returns |
# TransformProfileSubscreensListCallback
TransformProfileSubscreensListCallback
Properties:
Name | Type | Description |
---|---|---|
list
|
Array | |
navigation
|
NavigationService | |
user
|
User | |
isOwnAccount
|
boolean | Returns |
# TransformSearchContainerPaddingTopCallback(listTopMargin, navHeight) → {Number}
Parameters:
Name | Type | Description |
---|---|---|
listTopMargin |
Number | |
navHeight |
Number |
New padding top value. Note: aside from the result of add(), you can also return a number as the new value.
# TransformSubFiltersFilterCallback(filters) → {Array.<string>}
Parameters:
Name | Type | Description |
---|---|---|
filters |
Array.<string> | Available filters: |
# TransformSubFiltersFilterCallback(filters) → {Array.<string>}
Parameters:
Name | Type | Description |
---|---|---|
filters |
Array.<string> | Available filters: |
# TransformTopicActionButtonsCallback
TransformTopicActionButtonsCallback
Properties:
Name | Type | Description |
---|---|---|
TopicButton
|
JSX.Element | Topic action button |
showComplete
|
boolean | Returns |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
topic
|
TLearnTopicViewModel | |
completing
|
boolean | Returns |
labels
|
Record.<any, any> | Learndash labels |
handleComplete
|
function | Marks the topic as complete |
# TransformTopicSubFiltersFilterCallback(filters) → {Array.<string>}
Parameters:
Name | Type | Description |
---|---|---|
filters |
Array.<string> | Available filters: |
# TransformTopicViewModelCallback(viewModel, topic) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
viewModel |
TopicViewModel | |
topic |
Object |
- new view model
# TransformUpdateActivityParams
Properties:
Name | Type | Description |
---|---|---|
props
|
Object | Activity details |
# TransformViewProfileFieldSetsCallback
TransformViewProfileFieldSetsCallback
Properties:
Name | Type | Description |
---|---|---|
id
|
number | id of field set |
name
|
string | Name of the field set |
description
|
Record.<any, any> | Description of the field set |
group_order
|
number | Order of the group |
can_delete
|
boolean | Returns |
repeater_enabled
|
boolean | Returns |
fields
|
Array | Fields in a field set |
# Translation
Example
"en_US" :{
// Key value
"common.failDefaultMessage": "Server request failed",
}
# TranslationFunction() → {string}
Parameters:
Type | Description |
---|---|
string |
Example
t("common:ok") // gives "Ok"
# TTranslationFunction(arg0, arg1opt) → {string}
Helper function to translate string
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
arg0 |
string | ||
arg1 |
Record.<any, any> |
<optional> |
# Typography
Properties:
Name | Type | Description |
---|---|---|
bodyText
|
FontStyle | |
appHeaderTitle
|
FontStyle | |
appHeadings
|
FontStyle | |
appTabBar
|
FontStyle | |
appMenus
|
FontStyle |
# User
User
Properties:
Name | Type | Description |
---|---|---|
id
|
number | The user's ID |
name
|
string | The user's name |
url
|
string | The user's URL |
description
|
string | A description of the user |
link
|
string | The user's link |
slug
|
string | The user's slug |
avatar_urls
|
Record.<any, any> | An object containing the user's avatar URLs |
meta
|
Record.<any, any> | An object containing metadata about the user |
push_notification_settings
|
Record.<any, any> | An object containing the user's push notification settings |
nicename
|
string | The user's "nice" name (lowercase, no spaces, with hyphens) |
points
|
Record.<any, any> | An object containing the user's points |
loggedin_user_permissions
|
Record.<any, any> | An object containing the logged-in user's permissions |
bbp_user_profile_url
|
string | The URL of the user's profile |
topics_started_count
|
number | The number of topics started by the user |
replies_created_count
|
number | The number of replies created by the user |
forum_role
|
string | The user's forum role |
user_points
|
Array | An array of the user's points |
user_achievements
|
Array | An array of the user's achievements |
user_ranks
|
Array | An array of the user's ranks |
member_rest
|
Record.<any, any> | An object containing information about the user's membership |
user_login
|
string | The user's login name |
member_types
|
Record.<any, any> | An object containing information about the user's member types |
registered_date
|
string | The date when the user registered |
profile_name
|
string | The user's profile name |
last_activity
|
string | The date of the user's last activity |
xprofile
|
Record.<any, any> | An object containing the user's extended profile information |
followers
|
number | The number of followers the user has |
following
|
number | The number of users the user is following |
is_wp_admin
|
boolean | A boolean value indicating whether the user is a WordPress admin |
friendship_status
|
string | The user's friendship status |
friendship_id
|
any | The ID of the user's friendship (if applicable) |
create_friendship
|
boolean | A boolean value indicating whether the user can create a friendship |
is_following
|
boolean | A boolean value indicating whether the user is following the logged-in user |
mention_name
|
string | The user's mention name |
cover_url
|
string | The URL of the user's cover image |
cover_is_default
|
boolean | A boolean value indicating whether the user's cover image is the default |
can_report
|
boolean | A boolean value indicating whether the user can be reported |
reported
|
boolean | A boolean value indicating whether the user has been reported |
can_user_report
|
boolean | A boolean value indicating whether the logged-in user can report the user |
user_reported
|
boolean | A boolean value indicating whether the user has been reported by the logged-in user |
# UserAgreementModalComponentProps
Properties:
Name | Type | Description |
---|---|---|
calcFontSize
|
function | Used to calculate font size based on the fixed value you assign and percent set on branding options |
authDarkStyle
|
Boolean | Returns |
config
|
Object | |
modalContent
|
String | Modal content string |
modalHeader
|
String | Modal header string |
onClosed
|
function | Helper function which resets the modal |
refModal
|
function | Modal reference |
hideModal
|
function | Helper function which closes the modal |
global
|
Object | App global style |
colors
|
Object | App colors |
t
|
TranslationFunction | |
termsOfService
|
Object | Terms of service data |
privacyPolicy
|
Object | Privacy policy data |
withCheckbox
|
Boolean | Returns |
onPress
|
function | Helper function which shows the user agreement content |
onAgreementChecked
|
function | Sets the state of |
agreementChecked
|
function | Returns |
# UserAgreementTextComponentProps
Properties:
Name | Type | Description |
---|---|---|
t
|
TranslationFunction | |
authBg
|
String | Screen background color |
global
|
Object | App global style |
backgroundColor
|
String | input wrap background color |
textColor
|
String | |
userIcon
|
Number | Default user icon |
setUsernameState
|
function | Helper function for setting the username state |
stateUsername
|
String | Username field state |
placeholderColor
|
String | |
calcFontSize
|
function | |
passwordIcon
|
Number | Default password icon |
setPasswordState
|
function | Helper function for setting the password state |
statePassword
|
String | Password field state |
doLogin
|
function | Default login function |
setInputRef
|
function | Helper function which sets the component reference within the parent component /** |
register
|
Boolean | Returns |
global
|
Object | App global style |
colors
|
Object | App colors |
t
|
TranslationFunction | |
termsOfService
|
Object | Terms of service data |
privacyPolicy
|
Object | Privacy policy data |
withCheckbox
|
Boolean | Returns |
onPress
|
function | Helper function which shows the user agreement content |
onAgreementChecked
|
function | Sets the state of |
agreementChecked
|
function | Returns |
# UserAgreementTextComponentProps
Properties:
Name | Type | Description |
---|---|---|
isSignUpEnabled
|
Boolean | Returns |
register
|
Boolean | |
global
|
Object | App global style |
colors
|
Object | App colors |
t
|
TranslationFunction | |
guestEnabled
|
Boolean | Returns |
termsOfService
|
Object | Terms of service details |
privacyPolice
|
privacyPolice | Privacy police details |
withCheckBox
|
Boolean | Returns |
onPress
|
function | Calls the default on press function |
onAgreementChecked
|
function | Calls the default function when agreement is checked |
agreementChecked
|
Boolean | Returns |
style
|
Object | Default style of the component |
navigation
|
NavigationService |
# UserAvatarContainerProps
UserAvatarContainerProps
Properties:
Name | Type | Description |
---|---|---|
styles
|
Record.<any, any> | Default styles |
# UserAvatarProps
UserAvatarProps
Properties:
Name | Type | Description |
---|---|---|
isOwnAccount
|
boolean | Returns |
t
|
TTranslationFunction | |
global
|
Record.<any, any> | App global style |
user
|
TMemberViewModel |
# UserFollowingComponentProps
UserFollowingComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
TMemberViewModel | |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
t
|
TTranslationFunction |
# UserFullNameComponentProps
UserFullNameComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
TMemberViewModel | |
global
|
Record.<any, any> | App global style |
textStyle
|
Record.<any, any> | |
topicLoading
|
Record.<any, any> |
# UserHandleComponentProps
UserHandleComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
TMemberViewModel | |
global
|
Record.<any, any> | App global style |
textStyle
|
Record.<any, any> | |
hideHandle
|
boolean | Returns |
# UserRegisteredComponentProps
UserRegisteredComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
TMemberViewModel | |
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
formatDateFunc
|
function | Helper function for parsing dates |
# UserTypeComponentProps
UserTypeComponentProps
Properties:
Name | Type | Description |
---|---|---|
isUserProfile
|
boolean | |
user
|
TMemberViewModel | |
global
|
Record.<any, any> | App global style |
textStyle
|
Record.<any, any> |
# ValidationFunction(responseObject) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
responseObject |
Object | Object returned in response |
# VideoProgressionComponentProps
VideoProgressionComponentProps
Properties:
Name | Type | Description |
---|---|---|
lessonVideoStyle
|
Record.<any, any> | Default styling applied to lesson video |
controls
|
boolean | Returns |
autoplay
|
boolean | Returns |
videoCallback
|
function | Helper function which can be called when the video has finished playing |
url
|
string | Video url |
width
|
number | Player width |
height
|
number | Player height |
global
|
Record.<any, any> | App global style |
isNavActive
|
boolean | Returns |
lesson
|
TLessonViewModel | |
showVideo
|
boolean | Returns |
videoWatched
|
boolean | Returns |
setVideoWatched
|
boolean | Helper function which dispatches an action and marks the video as watched |
completeLesson
|
function | Helper function which dispatches an action to mark the lesson as complete |
onCompleteButtonClick
|
function | Helper function which considers different conditions (such as if topics inside a lesson are already completed) before calling the |
# ViewCertificateButtonProps
Properties:
Name | Type | Description |
---|---|---|
result
|
Object | Quiz result details |
styles
|
Object | |
t
|
TranslationFunction | |
setIsDownloadingState
|
function | Sets the |
setIsNotDownloadingState
|
function | Sets the |
downloading
|
Boolean | Returns |
# ViewDetailsQuizButtonProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Object | App global style |
colors
|
Object | App colors |
styles
|
Object | |
onDetailsClick
|
function | Allows users to redirect to Quiz Details screen |
# WebViewContentComponentProps
WebViewContentComponentProps
Properties:
Name | Type | Description |
---|---|---|
online
|
boolean | Returns |
t
|
TTranslationFunction | |
onShouldStartLoadWithRequest
|
function | The default function used for determining how to handle webview requests. |
height
|
number | Default height |
source
|
Record.<any, any> | Contains data of the web site to be loaded in the webview |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
ModalHeaderComponent
|
React.FC | Modal which shows up when the "Read More" component is pressed |
# WebViewDescriptionComponentProps
WebViewDescriptionComponentProps
Properties:
Name | Type | Description |
---|---|---|
online
|
boolean | Returns |
t
|
TTranslationFunction | |
onShouldStartLoadWithRequest
|
function | The default function used for determining how to handle webview requests. |
heightLimit
|
number | Default height limit |
source
|
Record.<any, any> | Contains data of the web site to be loaded in the webview |
global
|
Record.<any, any> | App global style |
colors
|
Record.<any, any> | App colors |
ModalHeaderComponent
|
React.FC | Modal which shows up when the "Read More" component is pressed |
# WebViewOfflineComponentProps
WebViewOfflineComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
containerStyle
|
Record.<any, any> | Default container style |
emptyListStyle
|
Record.<any, any> | Default style of EmptyList component |
# WebViewPropsParams(url, index, online, screenProps, source)
Parameters:
Name | Type | Description |
---|---|---|
url |
String | Returns the url of the website being loaded |
index |
Number | Index of the webview being loaded |
online |
Boolean | Returns |
screenProps |
Object | |
source |
Object | Source used by the web view |
# XProfileUserAvatarProps
XProfileUserAvatarProps
Properties:
Name | Type | Description |
---|---|---|
isOwnAccount
|
boolean | Returns |
t
|
TTranslationFunction | |
global
|
Record.<any, any> | App global style |
user
|
TMemberViewModel | |
size
|
number | Default avatar size |
imagePickerProps
|
Record.<any, any> | Default settings for image picker |
# XProfileUserFollowingComponentProps
XProfileUserFollowingComponentProps
Properties:
Name | Type | Description |
---|---|---|
global
|
Record.<any, any> | App global style |
styles
|
Record.<any, any> | Default styles |
t
|
TTranslationFunction | |
user
|
TMemberViewModel |
# XProfileUserFullNameComponentProps
XProfileUserFullNameComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
TMemberViewModel | |
styles
|
Record.<any, any> | Default styles |
# XProfileUserHandleComponentProps
XProfileUserHandleComponentProps
Properties:
Name | Type | Description |
---|---|---|
hideHandle
|
boolean | Returns |
name
|
string | User nickname |
colors
|
Record.<any, any> | App colors |
styles
|
Record.<any, any> | Default styles |
# XProfileUserRegisteredComponentProps
XProfileUserRegisteredComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
TMemberViewModel | |
global
|
Record.<any, any> | App global style |
t
|
TTranslationFunction | |
formatDateFunc
|
function | Helper function for parsing dates |
# XProfileUserTypeComponentProps
XProfileUserTypeComponentProps
Properties:
Name | Type | Description |
---|---|---|
user
|
TMemberViewModel | |
styles
|
Record.<any, any> | Default styles |