Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'activeBackgroundColor' does not exist in type 'ViewStyle | TextStyle | ImageStyle' #30

Open
Technaur opened this issue Apr 9, 2024 · 0 comments

Comments

@Technaur
Copy link

Technaur commented Apr 9, 2024

I have some jest test running on my app. I am using typescript 5.0.4 with React Native 0.73.0 and react-native-toggle-element 2.0.1.

I am getting this error when integrating my own custom themes.

Property 'thumbButtonStyle' is incompatible with index signature.
        Type '{ activeBackgroundColor: string; inActiveBackgroundColor: string; width: number; height: number; }' is not assignable to type 'ViewStyle | TextStyle | ImageStyle'.
          Object literal may only specify known properties, but 'activeBackgroundColor' does not exist in type 'ViewStyle | TextStyle | ImageStyle'. Did you mean to write 'backgroundColor'?

Has anyone experienced this issue before? How would I fix this?

@Technaur Technaur changed the title activeBackgroundColor' does not exist in type 'ViewStyle | TextStyle | ImageStyle' 'activeBackgroundColor' does not exist in type 'ViewStyle | TextStyle | ImageStyle' Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant