react-native-slidepicker icon indicating copy to clipboard operation
react-native-slidepicker copied to clipboard

我的这个组件没有显示

Open Charlotte-n opened this issue 1 year ago • 3 comments

const dataSource = [
        [
            { label: 'type A', value: 0 },
            { label: 'type B', value: 1 },
            { label: 'type C', value: 2 },
            { label: 'type D', value: 3 },
        ],
        [
            { label: 'red', value: 0 },
            { label: 'yellow', value: 1 },
            { label: 'blue', value: 2 },
            { label: 'green', value: 3 },
            { label: 'gray', value: 4 },
        ],
        [
            { label: 33, value: 33 },
            { label: 34, value: 34 },
            { label: 35, value: 35 },
            { label: 36, value: 36 },
            { label: 37, value: 37 },
            { label: 38, value: 38 },
            { label: 39, value: 39 },
            { label: 40, value: 40 },
            { label: 41, value: 41 },
            { label: 42, value: 42 },
            { label: 43, value: 43 },
            { label: 44, value: 44 },
        ],
    ]
<SlidePicker.Parallel
                visible={isShow}
                wheels={3}
                dataSource={dataSource}
                values={[]}
                onCancelClick={() => console.log('cancel')}
                onConfirmClick={(res: any) => console.log(res)}
   />

我的代码有什么问题吗,我使用的是expo

Charlotte-n avatar Jan 25 '24 10:01 Charlotte-n

求助,我的也没显示,SlidePicker.Parallel节点不渲染,也不报错

0000005 avatar Mar 27 '24 08:03 0000005

@Charlotte-n ,兄弟,你解决了吗

0000005 avatar Mar 27 '24 08:03 0000005

@Charlotte-n ,兄弟,你解决了吗

好像给了个宽高就显示了

Charlotte-n avatar Apr 08 '24 09:04 Charlotte-n