Skip to content

Commit

Permalink
Merge pull request #100 from Topener/master
Browse files Browse the repository at this point in the history
fixed global AvImageview access since 9.0
  • Loading branch information
AndreaVitale authored Dec 9, 2020
2 parents 6e1f50d + a8cc18c commit eeb5331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ Using the module in a `ListItemTemplate` is a bit difference because custom modu
where `AvImageview` is a variable declared in `alloy.js` like as follows:
```javascript
const AvImageview = require("av.imageview");

global.AvImageview = AvImageview;

//and to use contentmodes constants via alloy
Alloy.Globals.CONTENT_MODE_FIT = AvImageview.CONTENT_MODE_ASPECT_FIT;
Alloy.Globals.CONTENT_MODE_FILL = AvImageview.CONTENT_MODE_ASPECT_FILL;
Expand Down

0 comments on commit eeb5331

Please sign in to comment.