nandorojo / dripsy

🍷 Responsive, unstyled UI primitives for React Native + Web.

Home Page:https://dripsy.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Styled function Autocomplete don't work

matifriaz opened this issue · comments

After updating Dripsy and Typescript. Typescript is showing us this error

Type '{ width: number; height: number; }' is not assignable to type 'FactoryValue<ResponsiveValue<string | number | (string & {})>>'. Object literal may only specify known properties, and 'width' does not exist in type '(string | number | (string & {}))[] | readonly (string | number | (string & {}))[] | ((theme: DripsyFinalTheme) => ResponsiveValue<string | number | (string & {})>)'.ts(2322)
image

image

And also the autocomplete in styled function is not working
image

I believe the issue is with the StyledProps.
image

thanks for reporting this, i’ll look into the inline shadows. i only tested the boxShadow variant property

Fixed in 4.0.2

The issue is still there. The Typescript intellisense not showing me any style.
image

I am having the same issue with the View component on Version 4.0.2
my usage is like this,
<View sx={{ shadowOffset: { width: 0, height: 4 }, }} >

Screenshot 2023-04-08 at 05 02 03

@matifriaz I have updated to TypsScript 5, and Every thing working as Magic :D

great!

i linked to a guide for using TS 5 with expo in the release notes btw