Class

NewReplyScreenHooksApi

NewReplyScreenHooksApi()

New Reply Screen Hooks. Instance name: newReplyScreenHooksApi

You can use this hook to personalize reply screens such as hiding the tags input when users reply in a discussion.

Constructor

# new NewReplyScreenHooksApi()

Example
externalCodeSetup.newReplyScreenHooksApi.METHOD_NAME

Methods

# hideNotifyViaEmail()

Hides the component that the users can enable to notify them of follow-up replies via email.

Example
externalCodeSetup.newReplyScreenHooksApi.hideNotifyViaEmail();

# hideTags()

Use this to hide the tags input component when replying in a discussion

Example
externalCodeSetup.newReplyScreenHooksApi.hideTags()

# setKeyboardOptionsButtons(KeyboardOptionsButtons)

You can use this hook to customize the keyboard options buttons such as the RichTextButton and PhotoButton components. For example, you can add your own component together with the default keyboard options buttons.

Parameters:
Name Type Description
KeyboardOptionsButtons NewReplyKeyboardOptionsButtonsProps
Example
externalCodeSetup.newReplyScreenHooksApi.setKeyboardOptionsButtons(
    ({
        navigation,
        richTextEnabled,
        photosEnabled,
        videosEnabled,
        docsEnabled,
        gifsEnabled,
        RichTextButton,
        PhotoButton,
        VideoButton,
        DocButton,
        GifButton,
        renderMoreOptions
    }) => {
        return (
            <>
                {richTextEnabled && <RichTextButton />}
                {photosEnabled && <PhotoButton />}
                {videosEnabled && <VideoButton />}
                {docsEnabled && <DocButton />}
                {gifsEnabled && <GifButton />}
                {renderMoreOptions()}
            </>
        );
    }
);