Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wintercounter committed Aug 16, 2020
1 parent c325e3b commit 383837d
Show file tree
Hide file tree
Showing 65 changed files with 12,509 additions and 11,475 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/createOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { parsePseudo } from './parsers'

export const createOptions = <T>(overrides?: T | (T & Partial<CCSSOptions>)): T & Partial<CCSSOptions> => {
const options: Partial<CCSSOptions> = {
unit: 'rem',
applyUnit: n => `${n}${options.unit}`,
unit: typeof navigator != 'undefined' && navigator.product === 'ReactNative' ? 'px' : 'rem',
applyUnit: (n) => `${n}${options.unit}`,
outputTransformer: stringOutputTransformer,
props: createProps(),
valueMap: createValueMap(),
Expand Down
Loading

0 comments on commit 383837d

Please sign in to comment.