How to customize the MessengerLauncher layout #81
elliot-choic
announced in
Launcher
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Versions
Summary
You can customize the position, margin, and display mode of the
MessengerLauncherGuide & Snippet
iOS
Steps to Customize the Launcher Layout
You can customize the MessengerLauncher layout in iOS using
SBALauncherOptions.Basic Configuration
Configuration Options
positionLauncherPosition.leadingTop,.trailingTop,.leadingBottom,.trailingBottom(default)marginLauncherAreaMargin.default(16pt all sides)useSafeAreaBooltrue(default),falseentryPointSBAEntryPoint.conversation(default),.conversationListdisplayStyleDisplayStyle.overlay()(default),.fullscreen()Display Style Options
Overlay Style
spacingCGFloat12overlayLauncherBoolfalsetrue, launcher stays visible over conversationFullscreen Style
presentationStyleUIModalPresentationStyle.fullScreen.fullScreen,.pageSheet,.formSheet,.overFullScreenparentControllerUIViewController?nilAdvanced Examples
Android
Steps to Customize the Launcher Layout
Step 1: Set Up
LauncherLayoutParamsYou can define the following parameters:
launchModeEXPANDED(full screen) orANCHORED(popup near launcher)marginlocationTOP_START,TOP_END,BOTTOM_START,BOTTOM_ENDStep 2: Example (Kotlin)
React
Steps to Customize the Launcher Layout
You can customize the
FixedMessengerlayout usingFixedMessenger.Style.Configuration Options
positionstring'start-top','start-bottom','end-top','end-bottom'launcherSizenumber32,48,56)marginobject{ start, end, top, bottom }in pixelsExample
React Native
Steps to Customize the Launcher Layout
You can customize the
FixedMessengerlayout usingFixedMessenger.StyleandwindowModeprops.Configuration Options
FixedMessenger Props:
entryPointstring'Conversation''Conversation','ConversationList'windowModestring'floating''floating','fullscreen'fullscreenInsetsobject{ top: 0, left: 0, right: 0, bottom: 0 }{ top?, left?, right?, bottom? }in pixelsedgeToEdgeEnabledbooleantruetrue,falseFixedMessenger.Style Properties:
positionstring'end-bottom''start-top','start-bottom','end-top','end-bottom'launcherSizenumber4832,48,56)marginobject{ top: 24, bottom: 24, start: 24, end: 24 }{ start?, end?, top?, bottom? }in pixelsspacingnumber12Example
Reference
No response
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions