Skip to content

Commit 49c6283

Browse files
stydmastermoo
authored andcommitted
Remove unnecessary import (#200)
1 parent 24850b7 commit 49c6283

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ActionButton.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
View,
77
Animated,
88
TouchableOpacity,
9-
Platform
109
} from "react-native";
1110
import ActionButtonItem from "./ActionButtonItem";
1211
import {
@@ -178,7 +177,7 @@ export default class ActionButton extends Component {
178177
};
179178

180179
const Touchable = getTouchableComponent(this.props.useNativeFeedback);
181-
const parentStyle = Platform.OS === "android" &&
180+
const parentStyle = isAndroid &&
182181
this.props.fixNativeFeedbackRadius
183182
? {
184183
right: this.props.offsetX,

ActionButtonItem.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
TouchableNativeFeedback,
99
TouchableWithoutFeedback,
1010
Dimensions,
11-
Platform
1211
} from "react-native";
1312
import {
1413
shadowStyle,
@@ -90,7 +89,7 @@ export default class ActionButtonItem extends Component {
9089

9190
const Touchable = getTouchableComponent(this.props.useNativeFeedback);
9291

93-
const parentStyle = Platform.OS === "android" &&
92+
const parentStyle = isAndroid &&
9493
this.props.fixNativeFeedbackRadius
9594
? {
9695
height: size,

0 commit comments

Comments
 (0)