Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to add styles to the action-wrapper in FABGroup #4657

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions src/components/FAB/FABGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export type Props = {
* - `accessibilityHint`: accessibility hint for the action
* - `style`: pass additional styles for the fab item, for example, `backgroundColor`
* - `containerStyle`: pass additional styles for the fab item label container, for example, `backgroundColor` @supported Available in 5.x
* - `wrapperStyle`: pass additional styles for the wrapper of the action item.
* - `labelStyle`: pass additional styles for the fab item label, for example, `fontSize`
* - `labelMaxFontSizeMultiplier`: specifies the largest possible scale a title font can reach.
* - `onPress`: callback that is called when `FAB` is pressed (required)
Expand All @@ -53,6 +54,7 @@ export type Props = {
accessibilityHint?: string;
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
containerStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
wrapperStyle?: StyleProp<ViewStyle>;
labelStyle?: StyleProp<TextStyle>;
labelMaxFontSizeMultiplier?: number;
onPress: (e: GestureResponderEvent) => void;
Expand Down Expand Up @@ -376,6 +378,7 @@ const FABGroup = ({
<View
key={i} // eslint-disable-line react/no-array-index-key
style={[
it.wrapperStyle,
styles.item,
{
marginHorizontal,
Expand Down