question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to scale image manually?

See original GitHub issue

hey admin, Thanks for this awesome Component. I want to scale image through sliding but not able to scale, i have set the transform property.

Code

<Gestures key={i} maxScale={6} styles={{ position: 'absolute', top: 10, left: 0, zIndex: 2, transform: [{scale: this.state.addScale}] }} > <Image source={{uri: image.path}} style={{ width: 60, height: 60 }} /> </Gestures>

and this is how i added slider

<Slider minimumValue={1} maximumValue={6} {...this.props} onValueChange={(value) => this.setState({addScale: value})} />

Please help me to achieve this. Thank You.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DaBscommented, May 30, 2017

Hi @kunalailani, if only scaling and not responding to pan and drag events are in your interest, I think using this module is overkill. Otherwise, you’d have to be a little more specific in how your issue pertains to this module for people to help you.

0reactions
jburichcommented, Aug 9, 2017

Is this something you still need? I think the issue I put in #11 would need the exact same solution of providing a way to merge with pinchStyles. I’m going to start looking at adding that right now.

At first glance I think I’m going to add a scale and rotation prop and merging those into the pinchStyle prop so that somebody doesn’t accidentally overwrite other values held inside pinchStyle.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to crop and resize images - Adobe Photoshop
Crop and straighten an image · Select the Crop tool in the Tools panel. · Drag any edge or corner to adjust the...
Read more >
How To Resize an Image WITHOUT Stretching It in Photoshop
Choose Edit > Content-Aware Scale. Use the bottom transformation handle to click-and-drag it to the top. Then, click on the checkmark found on ......
Read more >
The 3 Best Ways To Resize An Image In Photoshop (Easy!)
To scale and stretch an image, there are a few easy shortcuts you can use. With your layer highlighted, select the Move Tool...
Read more >
How to Resize an Image [from Any Device] - Alphr
1. Open one of your favorite browsers and visit TinyWow.com. 2. Hover your mouse to the Image tab and click Resize Image Dimension...
Read more >
2 Ways To Resize An Image In GIMP - Manually And ...
Resize An Image Manually · Step 1: Activate the Scale Tool · Step 2: Click on the image to activate the scaling handles...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found