m1ga / ti.animation

Airbnb Lottie + Rive animation module for Titanium SDK
Other
106 stars 20 forks source link

iOS: Feature-Request: Add "assetFolder" for Android-parity #20

Open rohidjetha opened 7 years ago

rohidjetha commented 7 years ago

I have put the images folder and the json file on /app/assets/iphone/ The json file is working but the images are not displayed, I add put the assetFolder properties to : images/

hansemannn commented 7 years ago

Yeah, sub-directories can likely cause issues in the current implementation. Will fix in 1.2.0 Beta 2, but tbh, since it is no image, it has nothing to do in images/.

rohidjetha commented 7 years ago

Where can I put the images then for now?

hansemannn commented 7 years ago

Lottie-files are no images, they are json-based data structures. Put the JSON into app/assets and your normal images in app/assets/images if you want, but that just depends on what your app wants. Lottie does not use any local image files.

rohidjetha commented 7 years ago

I know that. But some Lottie animation requires external images. But then I can't use it because the images are not loading with this extension. This is why there is an assetFolder but I don't know if it's working or not

hansemannn commented 7 years ago

The assetFolder is Android-only at this time, so I'll move this to be a feature-request instead. Thx!

PietroGranati commented 5 years ago

+1 ! I really need this one on iOS! Thanks for the hard work

albert0m commented 5 years ago

any updates on this?

hansemannn commented 5 years ago

This is an open source repository, guys. You can either contribute to it or hire someone to do it for you if necessary. Please don't spam GitHub threads like this.