https://github.com/rescript-react-native/image-picker
ReScript bindings for react-native-image-picker
https://github.com/rescript-react-native/image-picker
image-picker react react-native rescript rescript-react rescript-react-native
Last synced: 9 months ago
JSON representation
ReScript bindings for react-native-image-picker
- Host: GitHub
- URL: https://github.com/rescript-react-native/image-picker
- Owner: rescript-react-native
- License: mit
- Created: 2019-11-12T14:17:13.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-05-07T06:30:14.000Z (over 2 years ago)
- Last Synced: 2025-04-13T12:08:24.469Z (9 months ago)
- Topics: image-picker, react, react-native, rescript, rescript-react, rescript-react-native
- Language: ReScript
- Homepage:
- Size: 317 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `@rescript-react-native/image-picker`
[](https://github.com/rescript-react-native/image-picker/actions)
[](https://www.npmjs.com/@rescript-react-native/image-picker)
[](https://forum.rescript-lang.org/)
[ReScript](https://rescript-lang.org) bindings for
[`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker).
Exposed as `ReactNativeImagePicker` module.
`@rescript-react-native/image-picker` X.y.\* means it's compatible with
`react-native-image-picker` X.y.\*
## Installation
When
[`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker)
is properly installed & configured by following their installation instructions,
you can install the bindings:
```console
npm install @rescript-react-native/image-picker
# or
yarn add @rescript-react-native/image-picker
```
`@rescript-react-native/image-picker` should be added to `bs-dependencies` in your
`bsconfig.json`:
```diff
{
//...
"bs-dependencies": [
"@rescript/react",
"rescript-react-native",
// ...
+ "@rescript-react-native/image-picker"
],
//...
}
```
## Usage
```rescript
open ReactNativeImagePicker
launchCamera(
options(
~cameraType=#back,
~mediaType=#photo,
()),
res => {
Js.log(res.uri)
}
)
```
---
## Changelog
Check the [changelog](./CHANGELOG.md) for more informations about recent
releases.
---
## Contribute
Read the
[contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md)
before contributing.
## Code of Conduct
We want this community to be friendly and respectful to each other. Please read
[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
so that you can understand what actions will and will not be tolerated.