“ valueFormatter”中的新行

时间:2018-08-10 19:40:36

标签: react-native

我使用 react-native-charts-wrapper

我的代码:

              xAxis: {
                drawLabels: true,
                position: "BOTTOM",
                labelCount: 5, 
                valueFormatter: testobj.map(item => {
                  //test
                  return "a\nb";
                })
              }

enter image description here

任何想法,如何在valueFormatter中使用“ \ n”?

0 个答案:

没有答案