Skip to content

Commit

Permalink
fixed global AvImageview access since 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Topener authored Oct 21, 2020
1 parent 9df9b8d commit a8cc18c
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 a8cc18c

Please sign in to comment.