Skip to content

Instantly share code, notes, and snippets.

View Cchumi's full-sized avatar

Pierre Gagliardi Cchumi

  • Pierre Gagliardi
  • France
View GitHub Profile
@Aliath
Aliath / AttachmentPicker.ts
Last active October 13, 2024 12:00
Wrapper for the react-native-image-picker and react-native-document-picker. Allow to pick media from gallery on iOS.
import { Platform, ActionSheetIOS } from 'react-native';
import DocumentPicker from 'react-native-document-picker';
import ImagePicker from 'react-native-image-picker';
import RNFS from 'react-native-fs';
type Captions = {
image: string,
document: string,
cancel: string,
title: string,