Skip to content

Commit

Permalink
feat(picker-view): update
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshunnn committed Dec 24, 2024
1 parent 5770661 commit d68fce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const _PickerViewColumn = forwardRef<HandlerRef<ScrollView & View, ColumnProps>,

const onItemLayout = (e: LayoutChangeEvent) => {
const { height: rawH } = e.nativeEvent.layout
// console.log('[mpx-picker-view-column], onItemLayout --->', 'columnIndex=', columnIndex, 'width=', width)
if (rawH && itemRawH !== rawH) {
setItemRawH(rawH)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const createFaces = (
.reverse(),

// center item
{ index: 0, deg: 0, opacity: 1, offsetY: 0, scale: 1.031, screenHeight: itemHeight },
{ index: 0, deg: 0, opacity: 1, offsetY: 0, scale: 1, screenHeight: itemHeight },

// bottom items
...degrees.map<Faces>((degree, index) => {
Expand Down

0 comments on commit d68fce7

Please sign in to comment.