UNPKG

@quidone/react-native-wheel-picker

Version:

Picker is a UI component for selecting an item from a list of options.

11 lines 289 B
export const getPageIndex = (offset, _ref) => { let { maxIndex, pageLength } = _ref; let index = Math.floor((offset + pageLength / 2) / pageLength); index = Math.max(0, index); index = Math.min(index, maxIndex); return index; }; //# sourceMappingURL=getPageIndex.js.map