Closed Stukz closed 2 years ago
what if you do this:
const weights = {
custom: 'bold',
} as const
I now see that it’s because fontWeight
requires that the values be specific strings.
You could also put ‘bold’ as const
I just found this solution doing some research about Function.Narrow, I didn't notice this response before but thanks for it!
Error
without spread
with spread
Steps to Reproduce
npx react-native init MyApp --template react-native-template-typescript
cd MyApp
yarn add dripsy
import { makeTheme } from 'dripsy';
const theme = makeTheme({ fontWeights: { ...weights, }, });