ui-pager icon indicating copy to clipboard operation
ui-pager copied to clipboard

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

Open luis-gmonkey opened this issue 1 year ago • 1 comments
trafficstars

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 |

luis-gmonkey avatar Mar 07 '24 15:03 luis-gmonkey

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!

guillemc23 avatar Sep 29 '24 18:09 guillemc23