Pass along variant name as prop to createVariant'ed component #213
Annotations
5 errors and 1 warning
src/test/TestButton.tsx#L39
Argument of type '{ buildStyle: (props: Props, { theme, dimensions, }: { theme: { colors: {}; spacing: {}; buttonVariants: { defaults: {}; }; breakpoints: { phone: number; tablet: number; }; zIndices: { phone: number; }; }; dimensions: Dimensions | null; }) => RNStyle; properties: ("bottom" | ... 8 more ... | keyof TouchableOpacityPr...' is not assignable to parameter of type '{ buildStyle: <TInputProps extends { [key: string]: any; } & { style?: StyleProp<RNStyle>; variant?: string | undefined; }>(props: TInputProps, { theme, dimensions, }: { theme: { colors: {}; spacing: {}; buttonVariants: { ...; }; breakpoints: { ...; }; zIndices: { ...; }; }; dimensions: Dimensions | null; }) => RNSt...'.
|
src/test/TestButton.tsx#L41
No overload matches this call.
|
src/test/TestContainer.tsx#L66
Argument of type '{ buildStyle: (props: RestyleProps, { theme, dimensions, }: { theme: { colors: { background: string; }; spacing: { none: number; m: number; }; breakpoints: { phone: number; tablet: number; }; spacingVariant: { ...; }; }; dimensions: Dimensions | null; }) => RNStyle; properties: ("backgroundColor" | ... 45 more ... |...' is not assignable to parameter of type '{ buildStyle: <TInputProps extends { [key: string]: any; } & { style?: StyleProp<RNStyle>; variant?: string | undefined; }>(props: TInputProps, { theme, dimensions, }: { theme: { colors: { background: string; }; spacing: { ...; }; breakpoints: { ...; }; spacingVariant: { ...; }; }; dimensions: Dimensions | null; }) ...'.
|
src/test/TestContainer.tsx#L67
No overload matches this call.
|
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
This job failed
Loading