I've found that some of the FAB button options are not working or displaying unexpected behaviour including:
alignVertically does not affect the vertical position.size does not affect the size of the Fab button.Fab defined in actions emit the root Fab id not its id.// playground/src/screens/ScrollViewScreen.tsx
fab: {
id: 'FAB 1',
// ...other configs
alignVertically: 'top',
size: 300,
actions: [
{
id: 'FAB 2',
}
]
},
navigationButtonPressed({ buttonId }) {
// Clicking `FAB 2` button will emit `FAB 1` not `FAB 2`.
console.log(buttonId)
}
'mini' | 'regular'Fab is a very frustrating component. For a while the support library FAB was completely broken on Lollipop, that's why we've decided to use an OSS FAB component... which is no longer maintained.
We'd like to migrate to the Material Components FAB but it requires a breaking change (application style needs to extended the new Theme.MaterialComponents.* and it doesn't support actions. We'll migrate soon but for now it seems like there's no point in supporting fab actions.
@guyca Thanks heaps for the clarification! Will update the docs and types accordingly.