1.0.0 • Published 2 years ago
wrapped-native v1.0.0
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;
}
1.0.0
2 years ago