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

Error when importing transformer from @nativescript-community/ui-pager/transformers/Scale #54

Open
luis-gmonkey opened this issue Mar 7, 2024 · 1 comment

Comments

@luis-gmonkey
Copy link

Hi guys i'm getting an error when trying to register the transformer

TS2307: Cannot find module '@nativescript-community/ui-pager/transformers/Scale' or its corresponding type declarations.
    14 |
    15 | import { Pager } from '@nativescript-community/ui-pager';
  > 16 | import transformer from '@nativescript-community/ui-pager/transformers/Scale';
       |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    17 |
    18 | Pager.registerTransformer('scale', transformer)
    19 |
@guillemc23
Copy link
Contributor

This works for me:

import transformer from '@nativescript-community/ui-pager/transformers/Scale.android';
Pager.registerTransformer('scale', transformer)

I haven't tested iOS but I suppose it's the same.

Cheers!

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

2 participants