wrapped-native

1.0.0 • Public • Published

wrapped-native

a lightweight react-native library for common native mobile apis

Installation

npm i wrapped-native

Example

import { pickImageFromLibrary } from "wrapped-native";

async function selectImage() {
  const [res, err] = await pickImageFromLibrary();

  if (err) {
    // handle error
    return null;
  }

  if (res.cancelled) {
    // user closed the image picker
    return null;
  }

  return res.uri;
}

Readme

Keywords

none

Package Sidebar

Install

npm i wrapped-native

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

3.24 kB

Total Files

6

Last publish

Collaborators

  • jacksonet00