UNPKG

css-to-react-native

Version:
19 lines (12 loc) 374 B
import { SPACE, LINE } from '../tokenTypes' export default tokenStream => { const lines = [] let didParseFirst = false while (tokenStream.hasTokens()) { if (didParseFirst) tokenStream.expect(SPACE) lines.push(tokenStream.expect(LINE).toLowerCase()) didParseFirst = true } lines.sort().reverse() return { textDecorationLine: lines.join(' ') } }