Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/components/FAB/AnimatedFAB.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ export type Props = $Omit<$RemoveChildren<typeof Surface>, 'mode'> & {

const SIZE = 56;
const SCALE = 0.9;
const SHADOW_LAYER_Z_INDEX = 1;
const CONTENT_LAYER_Z_INDEX = 2;

/**
* An animated, extending horizontally floating action button represents the primary action in an application.
Expand Down Expand Up @@ -596,9 +598,19 @@ const styles = StyleSheet.create({
innerWrapper: {
flexDirection: 'row',
overflow: 'hidden',
...Platform.select({
android: {
zIndex: CONTENT_LAYER_Z_INDEX,
},
}),
},
shadowWrapper: {
elevation: 0,
...Platform.select({
android: {
zIndex: SHADOW_LAYER_Z_INDEX,
},
}),
},
shadow: {
elevation: 6,
Expand Down
Loading