Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

why i need RegisteredStyle type? #50

Open
fantasy525 opened this issue Oct 18, 2018 · 0 comments
Open

why i need RegisteredStyle type? #50

fantasy525 opened this issue Oct 18, 2018 · 0 comments

Comments

@fantasy525
Copy link

Error:(26, 11) TS2322: Type 'RegisteredStyle<{ fontSize: number; textAlign: string; margin: number; }>' is not assignable to type 'StyleProp<TextStyle>'. Type 'RegisteredStyle<{ fontSize: number; textAlign: string; margin: number; }>' is not assignable to type 'RecursiveArray<false | TextStyle | RegisteredStyle<TextStyle> | null | undefined>'. Property 'length' is missing in type 'Number & { __registeredStyleBrand: { fontSize: number; textAlign: string; margin: number; }; }'.
You did not declare the type of the style file when creating the style in hello.tsx in your readme file,
Why did I have this error when I created my own style

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant