feat(lib/discord): add types for FloatingActionButton
This commit is contained in:
parent
3f60b4dfb7
commit
eb3f03fb60
2 changed files with 10 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ export interface Design {
|
|||
Card: DiscordModules.Components.Card
|
||||
ContextMenu: DiscordModules.Components.ContextMenu
|
||||
ContextMenuItem: DiscordModules.Components.ContextMenuItem
|
||||
FloatingActionButton: DiscordModules.Components.FloatingActionButton
|
||||
IconButton: DiscordModules.Components.IconButton
|
||||
ImageButton: DiscordModules.Components.ImageButton
|
||||
LayerScope: DiscordModules.Components.LayerScope
|
||||
|
|
|
|||
|
|
@ -306,6 +306,15 @@ export namespace DiscordModules {
|
|||
|
||||
export type ImageButton = FC<ImageButtonProps>
|
||||
|
||||
export interface FloatingActionButtonProps {
|
||||
icon: number
|
||||
onPress: () => void
|
||||
positionBottom?: number
|
||||
accessibilityLabel?: string
|
||||
}
|
||||
|
||||
export type FloatingActionButton = FC<FloatingActionButtonProps>
|
||||
|
||||
export interface StackProps extends ViewProps {
|
||||
spacing?: number
|
||||
align?: ViewStyle['alignItems']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue