From a8cc18cd375f3dab80fea94f3fd2abc1729bf5fb Mon Sep 17 00:00:00 2001 From: Rene Pot Date: Wed, 21 Oct 2020 11:58:44 +0100 Subject: [PATCH] fixed global AvImageview access since 9.0 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cfc1e57..2afcee8 100644 --- a/README.md +++ b/README.md @@ -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;