Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getStyleObject ({css, filePath}) {
let styleObject = {}
try {
styleObject = transformCSS(css)
} catch (err) {
Util.printLog(processTypeEnum.WARNING, 'css-to-react-native 报错', filePath)
console.log(chalk.red(err.stack))
}
return styleObject
}