@wu_rong_tai/react-native-image-transformer
v1.0.0
Published
An easy and simple to use React Native component to transform and translate an image with gestures like pan, pinch and double tap. Supporting both iOS and Android. Free and made possible along with costly maintenance and updates by [Lue Hang](https://www
Downloads
6
Maintainers
Readme
An easy and simple to use React Native component to transform and translate an image with gestures like pan, pinch and double tap. Supporting both iOS and Android. Free and made possible along with costly maintenance and updates by Lue Hang (the author).
- Supports pinch, double tap or pull.
- Includes guestures and important event listeners for pan, pinch, single tap and double tap.
- Easy to use. Just include an image path.
- Supports local images.
- Won't capture children's press.
- Won't capture children's scroll, if children don't allow.
- Supports both iOS and Android.
:link: Quick Links
:gem: Install
Type in the following to the command line to install the module.
$ npm install --save react-native-image-transformer
or
$ yarn add react-native-image-transformer
:tada: Usage Example
Add an import
to the top of the file. At minimal, declare the ImageTransformer
component in the render()
method providing data in the image
prop.
:information_source: Local images must have a defined dimensions
field with width
and height
or just height
and width
.
If you like
react-native-image-transformer
, please be sure to give it a star at GitHub. Thanks.
import ImageTransformer from "react-native-image-transformer";
//...
render() {
return (
<ImageTransformer
style={{flex: 1}}
image={
{
uri: "https://luehangs.site/pic-chat-app-images/beautiful-blond-blonde-hair-478544.jpg",
}
}
/>
);
}
//...
:book: Full Documentation
:santa: Author
Free and made possible along with costly maintenance and updates by Lue Hang (the author).
:clap: Contribute
Pull requests are welcomed.
:tophat: Contributors
Contributors will be posted here.
:baby: Beginners
Not sure where to start, or a beginner? Take a look at the issues page.
:page_facing_up: License
MIT © Lue Hang, as found in the LICENSE file.