我使用 react-native-charts-wrapper 。
我的代码:
xAxis: {
drawLabels: true,
position: "BOTTOM",
labelCount: 5,
valueFormatter: testobj.map(item => {
//test
return "a\nb";
})
}
任何想法,如何在valueFormatter中使用“ \ n”?