# react-native-asset-library-to-screen-size-base64

> A React Native Module that takes an image's asset-library:// uri and returns base64.

Latest version **1.0.4** (published 2016-05-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-asset-library-to-screen-size-base64
pnpm add react-native-asset-library-to-screen-size-base64
yarn add react-native-asset-library-to-screen-size-base64
bun add react-native-asset-library-to-screen-size-base64
```

## 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.4 |
| Published | 2016-05-13 |
| First published | 2016-05-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Steve Moody |
| Maintainers | steve06m |
| Keywords | react-native, react-native-asset-library-to-base64, react, native, asset, library, base64 |

## Links

- npm: https://www.npmjs.com/package/react-native-asset-library-to-screen-size-base64
- Repository: https://github.com/p1zzadog/react-native-asset-library-to-base64
- Homepage: https://github.com/p1zzadog/react-native-asset-library-to-base64#readme
- Issues: https://github.com/p1zzadog/react-native-asset-library-to-base64/issues
- npm.io page: https://npm.io/package/react-native-asset-library-to-screen-size-base64

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2016-05-13
- 1.0.2 — 2016-05-13

## README

# react-native-asset-library-to-base64
A React Native Module that takes an image's asset-library:// uri and returns base64:

## Install

### iOS
1. `npm install --save react-native-asset-library-to-screen-size-base64`
2. In the XCode's "Project navigator", right click on your project's Libraries folder ➜ `Add Files to <...>`
3. Go to `node_modules` ➜ `react-native-asset-library-to-base64` ➜ `ios` ➜ select `AssetLibraryToBase64.m`
4. Make sure `AssetLibraryToBase64.m` is listed under 'Compile Sources' in your project's 'Build Phases' tab
5. Compile and have fun

## Usage
1. In your React Native javascript code, bring in the native module:

  ```javascript
var ReadImageData = require('NativeModules').ReadImageData;
  ```
2. Use it like so:

  ```javascript
// uri is link to asset-library://
ReadImageData.readImage(uri, (imageBase64) => {
  console.log(imageBase64);
});
  ```

## Source
This code was copied from https://github.com/scottdixon/react-native-upload-from-camera-roll/blob/master/RCTCustom.m and https://medium.com/@scottdixon/react-native-creating-a-custom-module-to-upload-camera-roll-images-7a3c26bac309#.xckz6wr87.  I just took the example and turned it into a module for ease of use.

---
_Source: https://npm.io/package/react-native-asset-library-to-screen-size-base64 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
