# react-native-instagram-like-picker

> Pick image like instagram and manipulate it

Latest version **1.0.2** (published 2021-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-instagram-like-picker
pnpm add react-native-instagram-like-picker
yarn add react-native-instagram-like-picker
bun add react-native-instagram-like-picker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-06-27 |
| First published | 2021-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 69.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Amit Panday |
| Maintainers | amitpanday |
| Keywords | react-native, image-picker, react-components, instagram-image-picker, instagram-like-image-picker, image-cropper |

## Links

- npm: https://www.npmjs.com/package/react-native-instagram-like-picker
- Repository: https://github.com/amitpanday/react-native-instagram-like-picker
- Homepage: https://github.com/amitpanday/react-native-instagram-like-picker#readme
- Issues: https://github.com/amitpanday/react-native-instagram-like-picker/issues
- npm.io page: https://npm.io/package/react-native-instagram-like-picker

## Dependencies (2)

- [@react-native-community/cameraroll](https://npm.io/package/@react-native-community/cameraroll.md) ^4.0.4
- [@react-native-community/image-editor](https://npm.io/package/@react-native-community/image-editor.md) ^2.3.0

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-06-27
- 1.0.1 — 2021-06-27
- 1.0.0 — 2021-06-27

## README

# react-native-instagram-like-picker

Pick the image like instagram and manupulate it.

## Installation

```sh
npm install react-native-instagram-like-picker
```

## Basic Usage

```js
import React from 'react';
import { View } from 'react-native';
import { InstagramLikePicker } from 'react-native-instagram-like-picker';

class UploadFiles extends React.Component {

    constructor(props) {
        super(props);
        this.state = {};
    }

    onSelectImage = (data) => {
        console.log('onSelectImage =>', data);
    }

    onCropped = (data) => {
        console.log('onCropped =>', data);
    }

    onClose = () => {
        console.log('onClose');
    }

    render() {
        return (
            <View style={{ flex: 1, backgroundColor: '#000000' }}>
                <InstagramLikePicker
                    onClose={()=>this.onClose()}
                    onCropped={(croppedUri) => this.onCropped(croppedUri)}
                    onSelectImage={(result) => this.onSelectImage(result)}
                    headerTitle="Last Post"
                />
            </View>
        )
    }
}
```

## Props

| Parameter     | type  | required |  default | description   |
| ------------- | ----- | -------- | -------- | ------------- |
| onClose|function|Yes||this will call onclick of cross icon|
| onCropped|function ```js (selectUrl)=>{}```|No||this function return the cropped image url|
| onSelectImage|function ```js (selectUrl)=>{}```|No||call on changing image selection|
|headerTitle|```string```|No|New Post|Header Title|

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---
_Source: https://npm.io/package/react-native-instagram-like-picker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
