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

Typescript definitions incorrect for transitionconfig #204

Open
justindmyers opened this issue Jul 11, 2019 · 0 comments
Open

Typescript definitions incorrect for transitionconfig #204

justindmyers opened this issue Jul 11, 2019 · 0 comments

Comments

@justindmyers
Copy link

It looks like the transitionconfig definition is incorrect and is trying to use the StackNavigatorConfig definition from react-navigation which has a different definition for transitionconfig than this library.

Here's the typescript error output from the example given in this repo:

Argument of type '{ transitionConfig: { duration: number; timing: (value: Value | ValueXY, config: TimingAnimationConfig) => CompositeAnimation; }; }' is not assignable to parameter of type 'StackNavigatorConfig'.
    Types of property 'transitionConfig' are incompatible.
        Type '{ duration: number; timing: (value: Value | ValueXY, config: TimingAnimationConfig) => CompositeAnimation; }' is not assignable to type '(transitionProps: NavigationTransitionProps, prevTransitionProps: NavigationTransitionProps, isModal: boolean) => TransitionConfig'.
          Type '{ duration: number; timing: (value: Value | ValueXY, config: TimingAnimationConfig) => CompositeAnimation; }' provides no match for the signature '(transitionProps: NavigationTransitionProps, prevTransitionProps: NavigationTransitionProps, isModal: boolean): TransitionConfig'.ts(2345)345)
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