diff --git a/ActionButton.js b/ActionButton.js index d8402af..2053c58 100644 --- a/ActionButton.js +++ b/ActionButton.js @@ -6,7 +6,6 @@ import { View, Animated, TouchableOpacity, - Platform } from "react-native"; import ActionButtonItem from "./ActionButtonItem"; import { @@ -178,7 +177,7 @@ export default class ActionButton extends Component { }; const Touchable = getTouchableComponent(this.props.useNativeFeedback); - const parentStyle = Platform.OS === "android" && + const parentStyle = isAndroid && this.props.fixNativeFeedbackRadius ? { right: this.props.offsetX, diff --git a/ActionButtonItem.js b/ActionButtonItem.js index e58ae03..c2640f5 100644 --- a/ActionButtonItem.js +++ b/ActionButtonItem.js @@ -8,7 +8,6 @@ import { TouchableNativeFeedback, TouchableWithoutFeedback, Dimensions, - Platform } from "react-native"; import { shadowStyle, @@ -90,7 +89,7 @@ export default class ActionButtonItem extends Component { const Touchable = getTouchableComponent(this.props.useNativeFeedback); - const parentStyle = Platform.OS === "android" && + const parentStyle = isAndroid && this.props.fixNativeFeedbackRadius ? { height: size,