# asset-library-to-base64

> A React Native Module to convert image's asset-library:// uri to base64.

Latest version **1.0.1** (published 2016-09-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install asset-library-to-base64
pnpm add asset-library-to-base64
yarn add asset-library-to-base64
bun add asset-library-to-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.1 |
| Published | 2016-09-08 |
| First published | 2016-09-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dinesh Kumar Sharma |
| Maintainers | dinesh-sharma |
| Keywords | react-native, asset-library-to-base64, asset, library, base64, asset library to base 64 |

## Links

- npm: https://www.npmjs.com/package/asset-library-to-base64
- Repository: https://github.com/dinesh829269/react-native-ios-asset-library-to-base64
- Homepage: https://github.com/dinesh829269/react-native-ios-asset-library-to-base64.git
- Issues: https://github.com/dinesh829269/react-native-ios-asset-library-to-base64.git
- npm.io page: https://npm.io/package/asset-library-to-base64

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-09-08

## README

# React Native image asset-library:// uri to base 64
A React Native Module that converts an image's asset-library:// uri to base64:

## Install

### IOS
1. `npm install --save react-native-ios-asset-library-to-base64`
2. Open your project in Xcode and copy `ios/RCTCustom.m` provided in this module  to  `Libraries > React > Base` in xcode

## Usage

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

var ReadImageData = require('NativeModules').ReadImageData;

2. convert image url:

// image asset-library:// uri
ReadImageData.readImage(uri, (imageBase64) => {
  console.log(imageBase64);
});

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