lottie-react-native icon indicating copy to clipboard operation
lottie-react-native copied to clipboard

add `scale` props

Open alikazemkhanloo opened this issue 6 years ago • 11 comments

Hi, I wanted to use this animation in my app but the problem is there is lots of padding in the original animation. I tried to use autoSize and resizeMode='cover', but no success, my code is:

const filter = require('../../assets/Filter2.json')
...
<LottieView
                source={filter}
                style={{height:'100%'}}
                speed={2.5}
                ref={(ref)=> this.filterAnimation = ref}
                resizeMode='cover'
                autoSize
                loop={false}
              />

if there was a scale prop, I could use that. I guess it is available in lottie-android as in this SO answer

alikazemkhanloo avatar Feb 16 '19 12:02 alikazemkhanloo

We might introduce this feature after updating to the latest lottie-android

emilioicai avatar Feb 18 '19 08:02 emilioicai

@emilioicai Is there any improvement? I have this issue on both iOS and Android. I need some help to fix it.

WrathChaos avatar Oct 12 '19 09:10 WrathChaos

@emilioicai Why did you close this issue? Is there a fix?

WrathChaos avatar Jan 14 '20 10:01 WrathChaos

I closed it because it seemed to me it was quite stale. I will reopen if it's still an issue with the latest version

emilioicai avatar Jan 14 '20 10:01 emilioicai

I still could not use lottie because of this issue. Can you please tag me when you open a new one?

WrathChaos avatar Jan 14 '20 11:01 WrathChaos

@WrathChaos I just reopened this one

emilioicai avatar Jan 14 '20 16:01 emilioicai

Need this too 👍

Tjerk-Haaye-Henricus avatar Dec 13 '20 17:12 Tjerk-Haaye-Henricus

+1

lallaheeee avatar Jun 17 '21 00:06 lallaheeee

+1

kamal-j avatar Nov 10 '21 07:11 kamal-j

any updates?

arunim2405 avatar Dec 21 '21 10:12 arunim2405

Is this feature added? I am facing same issue with animation I am using

death14stroke avatar Aug 03 '22 14:08 death14stroke

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 02 '22 16:10 stale[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

stale[bot] avatar Oct 09 '22 23:10 stale[bot]