首页 > 解决方案 > 样式化组件和 PlatformColor React-Native 0.63

问题描述

我有这个文件,我在其中操作我的应用程序的所有颜色,我打算使用 React-Native 0.63 的 PlatformColor 但出现错误:

在此处输入图像描述

带颜色的文件:

  colors: {
    background: '#000',
    text: '#fff',
    subText: '#f27b35',
    red: '#d32f2f',
    green: '#388e3c',
    primary: '#353132',
    second: '#f22973',
    third: '#d09c44',
    notify: '#BF343F',
    warning: '#d09c44',
    gray: '#ccc',
    inactive: '#626262',
    icons: '#f22973',
    status: {
      orcamento: '#1976D2',
      aguardando: '#FF5722',
      recebido: '#FFC107',
      processado: '#689F38',
      pago: '#388E3C',
      faturado: '#8BC34A',
      enviado: '#673AB7',
      encerrado: '#607D8B',
    },
  },
  barStyle: 'light-content',
};

标签: react-native

解决方案


推荐阅读