React-Native:iPhoneX上Chartview组件上不需要的边框

时间:2019-02-07 22:10:11

标签: react-native iphone-x

我正在尝试在react本机应用程序中使用chartView组件呈现图表。特别是在iPhoneX上,图表周围有一个灰色边框,而在旧版本的iPhone或Android上则没有。还有其他人遇到过这个问题吗?如果是这样,如何解决呢?这是我的代码:

//Component that uses chartView being rendered in main app
<View style={{ alignItems: 'center' }}>
            <MyBudgetApp budget={budget} spent={spent} hexColor={hexColor} />
        </View>

//ChartView render within component
return (
    <ChartView
        style={styles.container}
        config={conf}
    />
);

//styles.container
container: {
    height: 220,
    width: 220,
    padding: 0
}

0 个答案:

没有答案