Skip to content

Instantly share code, notes, and snippets.

@CarlosDanielDev
Last active October 15, 2020 19:41
Show Gist options
  • Save CarlosDanielDev/f5fb74e5e75f6e28c7d5dd36b468b28c to your computer and use it in GitHub Desktop.
Save CarlosDanielDev/f5fb74e5e75f6e28c7d5dd36b468b28c to your computer and use it in GitHub Desktop.
const TextInput: StyledComponent<typeof TextInput, DefaultTheme, TextInputProp, never>
No overload matches this call.
Overload 1 of 2, '(props: Pick<Pick<TextInputProps & RefAttributes<TextInput> & TextInputProp, "allowFontScaling" | "autoCapitalize" | ... 109 more ... | "key"> & Partial<...>, "allowFontScaling" | ... 110 more ... | "key"> & { ...; } & { ...; } & { ...; }): ReactElement<...>', gave the following error.
Type '{ allowFontScaling?: boolean | undefined; autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined; autoCorrect?: boolean | undefined; autoFocus?: boolean | undefined; ... 107 more ...; error: string | undefined; }' is not assignable to type 'Pick<Pick<TextInputProps & RefAttributes<TextInput> & TextInputProp, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | ... 108 more ... | "key"> & Partial<...>, "allowFontScaling" | ... 110 more ... | "key">'.
Types of property 'placeholderTextColor' are incompatible.
Type 'string | unique symbol | undefined' is not assignable to type 'string | undefined'.
Type 'unique symbol' is not assignable to type 'string | undefined'.
Overload 2 of 2, '(props: StyledComponentPropsWithAs<typeof TextInput, DefaultTheme, TextInputProp, never>): ReactElement<StyledComponentPropsWithAs<typeof TextInput, DefaultTheme, TextInputProp, never>, string | ... 1 more ... | (new (props: any) => Component<...>)>', gave the following error.
Type '{ allowFontScaling?: boolean | undefined; autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined; autoCorrect?: boolean | undefined; autoFocus?: boolean | undefined; ... 107 more ...; error: string | undefined; }' is not assignable to type 'Pick<Pick<TextInputProps & RefAttributes<TextInput> & TextInputProp, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | ... 108 more ... | "key"> & Partial<...>, "allowFontScaling" | ... 110 more ... | "key">'.
Types of property 'placeholderTextColor' are incompatible.
Type 'string | unique symbol | undefined' is not assignable to type 'string | undefined'.
Type 'unique symbol' is not assignable to type 'string | undefined'.ts(2769)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment