react-native-skeleton-content
react-native-skeleton-content copied to clipboard
Typescript getting error: Types of property 'flexDirection' are incompatible.
How do I get the types for creating the layout?
Type '{ flexDirection: string; marginRight: number; children: ({ width: number; height: number; borderRadius: number; marginVertical: number; padding: number; marginBottom?: undefined; } | { width: string; ... 4 more ...; padding?: undefined; })[]; }[]' is not assignable to type 'ICustomViewStyle[]'.
Type '{ flexDirection: string; marginRight: number; children: ({ width: number; height: number; borderRadius: number; marginVertical: number; padding: number; marginBottom?: undefined; } | { width: string; ... 4 more ...; padding?: undefined; })[]; }' is not assignable to type 'ICustomViewStyle'.
Types of property 'flexDirection' are incompatible.
Type 'string' is not assignable to type '"column" | "row" | "row-reverse" | "column-reverse"'