如何在 React Native Paper 中将主题设置为深色主题?在我所有的屏幕中,所有的<View>
's 仍然有白色背景。
const theme = {
...DarkTheme,
colors: {
...DarkTheme.colors,
primary: '#2d3436',
accent: '#1C1C1C',
background : '#636e72'
}
};
render() {
return(
<PaperProvider theme={theme}>
<App />
</PaperProvider>
);
}