Nativebase: Disabling Fabs android Ripple effect

Created on 28 Sep 2018  路  9Comments  路  Source: GeekyAnts/NativeBase

Issue Description

Cannot disable the android ripple effect for FABs.

npm, react-native, react and native-base version version used

"react": "16.4.1",
"react-native": "0.56.0",
"native-base": "^2.8.0",

Expected behaviour

No ripple effect or changed color of android ripple effect.

Actual behaviour

Cannot change the FABs android ripple color.

Steps to reproduce

Tried changing the style and containerStyle of FAB to change the androidRippleEffect.
2

Only on android

android

Most helpful comment

This is a workaround.

<Fab
    containerStyle={{ borderRadius: 28, overflow: "hidden" }}>
   // inner elements
</Fab>

All 9 comments

I'm also seeing this issue. Is there a way to disable this behavior? I didn't see anything in the documentation.

I'm also trying to remove the ripple effect on the container of the FAB with no success. It should be applied only to the circle.

No update so far! Any workarounds @SupriyaKalghatgi or anyone

This is a workaround.

<Fab
    containerStyle={{ borderRadius: 28, overflow: "hidden" }}>
   // inner elements
</Fab>

@YoonjaeYoo thanks for the workaround, it does the trick for me

@YoonjaeYoo That does not give the desired output
When Fab is toggled from active to inactive, the button shrink and retains back to usual size

@SupriyaKalghatgi yes it's not perfect, but it's at least "pretty-enough" compared to a square overflowing , so it's indeed not a fix, but a "better-than-nothing workaround"

@sharathprabhal thanks a lot, can't wait for the bugfix release :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aloifolia picture aloifolia  路  3Comments

agersoncgps picture agersoncgps  路  3Comments

chetnadaffodil picture chetnadaffodil  路  3Comments

nschurmann picture nschurmann  路  3Comments

mcpracht picture mcpracht  路  3Comments