Preview: fontFamily.js
Size: 456 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/css-to-react-native/src/transforms/fontFamily.js
import { SPACE, IDENT, STRING } from '../tokenTypes'
export default tokenStream => {
let fontFamily
if (tokenStream.matches(STRING)) {
fontFamily = tokenStream.lastValue
} else {
fontFamily = tokenStream.expect(IDENT)
while (tokenStream.hasTokens()) {
tokenStream.expect(SPACE)
const nextIdent = tokenStream.expect(IDENT)
fontFamily += ` ${nextIdent}`
}
}
tokenStream.expectEmpty()
return { fontFamily }
}
Directory Contents
Dirs: 0 × Files: 15