Skip to content

Commit c3e25b4

Browse files
authored
Button - fix TS error (#2931)
1 parent c4e0de5 commit c3e25b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/button/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Button extends PureComponent<Props, ButtonState> {
5757
this.setState({size});
5858
}
5959

60-
if (Constants.isAndroid && Platform.Version <= 17) {
60+
if (Constants.isAndroid && (Platform.Version as number) <= 17) {
6161
this.setState({borderRadius: height / 2});
6262
}
6363
};

0 commit comments

Comments
 (0)