1.0.0 • Published 3 years ago
react-native-single-choice-lb v1.0.0
描述
import SingleChoice from 'react-native-siglechoice'
数据结构:
arrayList: [
{
item: '质量',
children: [
{item: '优秀', score: 10},
{item: '良好', score: 8},
{item: '合格', score: 6},
],
},
{
item: '安全',
children: [
{item: '安全', score: 8},
{item: '不安全', score: 6},
],
},
],
使用方式:
<SingleChoice arrayList={this.state.arrayList} number={3} sureSumit={(newList,score)=>{}}/>
1.0.0
3 years ago