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

Getting TypeScript error, when pass to withPause animations with string values (colors) #505

Open
Artem2001S opened this issue Dec 27, 2022 · 0 comments

Comments

@Artem2001S
Copy link

Example:

const color1Shared = useSharedValue('#00F1A7');

useEffect(()=> { 
      // get TS error: Type 'number' is not assignable to type 'string'.ts
      color1Shared.value = withPause(
        withRepeat(withDelay(4000, withTiming('#FFD651',{duration:3000})), -1, true),
        isPausedShared,
      );
}, [color1Shared])

    "react-native-redash": "^18.1.0",
    "react-native": "0.68.2",
    "typescript": "^4.4.4"
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