Skip to content

Commit 882ed2f

Browse files
authored
fix eslint (#1107)
* fix eslint * remove unwanted word * removed unwanted space
1 parent 4454cb5 commit 882ed2f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/incubator/WheelPicker/helpers/useListMiddleIndex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export default ({itemHeight, listSize}: ItemType) => {
1919
return valueInRange(calculatedIndex, 0, listSize - 1);
2020
};
2121

22-
return middleIndex
22+
return middleIndex;
2323
};

src/incubator/WheelPicker/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// TODO: Support onChange callback
22
// TODO: Support style customization
33
// TODO: Support control of visible items
4-
import _ from 'lodash';
54
import React, {useCallback, useRef, useMemo} from 'react';
65
import {TextStyle, FlatList, NativeSyntheticEvent, NativeScrollEvent} from 'react-native';
76
import Animated from 'react-native-reanimated';
@@ -55,7 +54,7 @@ const WheelPicker = ({items, itemHeight = 48, activeTextColor, inactiveTextColor
5554
index => {
5655
if (scrollView.current?.getNode()) {
5756
//@ts-ignore for some reason scrollToOffset isn't recognized
58-
scrollView.current?.getNode()?.scrollToOffset({offset: index * itemHeight, animated: true})
57+
scrollView.current?.getNode()?.scrollToOffset({offset: index * itemHeight, animated: true});
5958
}
6059
},
6160
[itemHeight]
@@ -83,7 +82,7 @@ const WheelPicker = ({items, itemHeight = 48, activeTextColor, inactiveTextColor
8382

8483
const fader = useMemo(
8584
() => (position: FaderPosition) => {
86-
return <Fader visible position={position} size={60} />;
85+
return <Fader visible position={position} size={60}/>;
8786
},
8887
[]
8988
);

0 commit comments

Comments
 (0)