Skip to content

Commit

Permalink
Fab: don't use TouchableNativeFeedback.Ripple if not Android
Browse files Browse the repository at this point in the history
Fixes web crash due to TouchableNativeFeedback.Ripple being undefined on web
  • Loading branch information
joshbalfour committed Aug 24, 2020
1 parent 4764338 commit f62104d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/Fab.js
Expand Up @@ -462,7 +462,7 @@ class Fab extends Component {
return (
<Animated.View style={this.getContainerStyle()}>
{this.renderButtons()}
{Platform.OS === PLATFORM.IOS ||
{Platform.OS !== PLATFORM.ANDROID ||
variables.androidRipple === false ||
Platform.Version <= 21 ? (
<TouchableOpacity
Expand Down

0 comments on commit f62104d

Please sign in to comment.