Pass along variant name as prop to createVariant'ed component #213
restyle.yml
on: pull_request
Build Typescript
25s
Build fixture Typescript
25s
Lint Typescript
24s
Test Typescript
25s
Build Android
4m 1s
Annotations
20 errors and 5 warnings
Lint Typescript:
src/hooks/useRestyle.ts#L1
Replace `·useMemo·` with `useMemo`
|
Lint Typescript:
src/hooks/useRestyle.ts#L2
Replace `·StyleProp,·useWindowDimensions·` with `StyleProp,·useWindowDimensions`
|
Lint Typescript:
src/hooks/useRestyle.ts#L4
Replace `·BaseTheme,·RNStyle,·Dimensions·` with `BaseTheme,·RNStyle,·Dimensions`
|
Lint Typescript:
src/hooks/useRestyle.ts#L10
Replace `·[key:·string]:·unknown·` with `[key:·string]:·unknown`
|
Lint Typescript:
src/hooks/useRestyle.ts#L13
Replace `·[key·in·keyof·TProps]:·boolean·` with `[key·in·keyof·TProps]:·boolean`
|
Lint Typescript:
src/hooks/useRestyle.ts#L16
Replace `·variant?:·unknown·` with `variant?:·unknown`
|
Lint Typescript:
src/hooks/useRestyle.ts#L30
Replace `·cleanProps,·restyleProps,·serializedRestyleProps·` with `cleanProps,·restyleProps,·serializedRestyleProps`
|
Lint Typescript:
src/hooks/useRestyle.ts#L36
Replace `·[key:·string]:·any·` with `[key:·string]:·any`
|
Lint Typescript:
src/hooks/useRestyle.ts#L37
Replace `·style?:·StyleProp<RNStyle>,·variant?:·string·` with `style?:·StyleProp<RNStyle>;·variant?:·string`
|
Lint Typescript:
src/hooks/useRestyle.ts#L51
Replace `·[key·in·keyof·TProps]:·boolean·` with `[key·in·keyof·TProps]:·boolean`
|
Build Typescript:
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...'.
|
Build Typescript:
src/test/TestButton.tsx#L41
No overload matches this call.
|
Build Typescript:
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; }) ...'.
|
Build Typescript:
src/test/TestContainer.tsx#L67
No overload matches this call.
|
Build Typescript
Process completed with exit code 2.
|
Build fixture Typescript:
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...'.
|
Build fixture Typescript:
src/test/TestButton.tsx#L41
No overload matches this call.
|
Build fixture Typescript:
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; }) ...'.
|
Build fixture Typescript:
src/test/TestContainer.tsx#L67
No overload matches this call.
|
Build fixture Typescript
Process completed with exit code 2.
|
Lint Typescript
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/.
|
Test Typescript
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/.
|
Build Typescript
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/.
|
Build fixture Typescript
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/.
|
Build Android
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/.
|