# @wellth/wellth-react-native-camera

> ## Features

Latest version **0.0.8** (published 2017-11-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install @wellth/wellth-react-native-camera
pnpm add @wellth/wellth-react-native-camera
yarn add @wellth/wellth-react-native-camera
bun add @wellth/wellth-react-native-camera
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2017-11-20 |
| First published | 2017-11-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Justin Makaila & Kyle Weisel |
| Maintainers | peterpine83, justinmakaila |
| Keywords | camera, wellth, auto, continuous |

## Links

- npm: https://www.npmjs.com/package/@wellth/wellth-react-native-camera
- Repository: https://github.com/wellth-app/wellth-react-native-camera
- Homepage: https://github.com/wellth-app/wellth-react-native-camera#readme
- Issues: https://github.com/wellth-app/wellth-react-native-camera/issues
- npm.io page: https://npm.io/package/@wellth/wellth-react-native-camera

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0

## Recent versions

- 0.0.8 (latest) — 2017-11-20
- 0.0.7 — 2017-11-20
- 0.0.6 — 2017-11-20
- 0.0.5 — 2017-11-20
- 0.0.4 — 2017-11-20
- 0.0.3 — 2017-11-20
- 0.0.2 — 2017-11-17
- 0.0.1 — 2017-11-17

## README

# `wellth-react-native-camera`

## Features

- Support iOS 9.3, Android level 16
- Allows for auto-captured stream of photos.
- Allows for multiple output formats for a single capture (including auto captured images!).

## Installation
1. `$ (yarn | npm) add @wellth/wellth-react-native-camera`
2. `$ react-native link`

#### iOS
1. In your main project (that is, the one requiring `wellth-react-native-camera`) create a new `.swift` file in the same directory as your `AppDelegate.h`. 
2. Xcode will prompt you to create a bridging header. Create the header.
3. Build and run

#### Android
_Coming Soon_

## Usage

Taken from `example/App.js`:
```
import * as React from 'react'
import Camera from "wellth-react-native-camera"
import type { OutputConfiguration } from "wellth-react-native-camera"

type Props = {
  style: ViewProps,
  shouldCapture: boolean,
}

export default (props: Props) => {
  return (
    <Camera
      style={props.style}
      readyForCapture={props.shouldCapture}
      outputConfigurations={[
        {
          name: "fullSize",
          size: 1,
          quality: 1,
        },
        {
          name: "thumbnail",
          size: 0.4,
          quality: 1,
        },
      ]}
      onCaptureOutput={output => {
        const { thumbnail, fullSize } = output;
        console.log(thumbnail.imagePath);
        console.log(fullSize.imagePath);
      }}
    />
  );
};
```

## Development

### Setup

__iOS__  
1. Install dev dependencies:  
```$ yarn install```

2. Open the `.xcworkspace` in `ios/`

3. Build `React` at least once.

4. Build `Camera`.


__Android__

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