Skip to content

Commit

Permalink
fix: tabBar underline, when animated is false.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang740 committed Jan 5, 2018
1 parent 2c0e609 commit 8ebfaef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rmc-tabs",
"version": "1.2.23",
"version": "1.2.24",
"description": "React Mobile Tabs Component(web & react-native)",
"keywords": [
"react",
Expand Down
3 changes: 1 addition & 2 deletions src/Tabs.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export class Tabs extends Component<PropsType, StateType> {
}

onScroll = (evt?: RN.NativeSyntheticEvent<RN.NativeScrollEvent>) => {
const { animated } = this.props;
if (evt && animated) {
if (evt) {
Animated.event([{
nativeEvent: { contentOffset: { x: this.state.scrollX } }
}], )(evt);
Expand Down

1 comment on commit 8ebfaef

@zhang740
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.