react-native-slidepicker
react-native-slidepicker copied to clipboard
我的这个组件没有显示
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
求助,我的也没显示,SlidePicker.Parallel节点不渲染,也不报错
@Charlotte-n ,兄弟,你解决了吗
@Charlotte-n ,兄弟,你解决了吗
好像给了个宽高就显示了