Native Features Integration
Camera
// Callback receives the URL of the uploaded media
const cameraCallback = useCallback((url: string) => {
console.log('Captured media:', url);
}, []);
// openCameraComponent(callback, disablePhoto, disableVideo)
openCameraComponent(cameraCallback, false, false);Argument
Type
Optional
Explanation
Gallery Picker
const galleryCallback = useCallback((data: string | string[]) => {
console.log('Selected:', data);
}, []);
// openGalleryPicker(callback, multiple, type, enableLinkInput)
openGalleryPicker(galleryCallback, true, 'image', true);Argument
Type
Optional
Explanation
Contact Picker
Argument
Type
Optional
Explanation
Emoji & GIF Pickers
Argument
Type
Optional
Explanation
Last updated