react-native-image-picker: Native media selection for React Native
Cross-platform native media picker bridge for React Native.
Learn more about React Native Image Picker
react-native-image-picker is a React Native bridge library that exposes native image and video selection interfaces to JavaScript. It implements platform-specific bindings for iOS and Android, delegating to UIImagePickerController on iOS and the AndroidX Photo Picker on Android. The library supports multiple media types, image resizing, and MIME type filtering with configurable options. Common use cases include building user profile photo uploads, media attachment features in messaging apps, and content creation interfaces.
Native UI integration
Uses platform-native pickers rather than custom implementations, providing UIImagePickerController on iOS and AndroidX Photo Picker on Android. This ensures consistent behavior with system conventions and access to device-specific capabilities.
New Architecture support
Includes explicit support for React Native's new architecture with Fabric and TurboModules, allowing adoption of modern React Native patterns alongside pre-Fabric compatibility.
Flexible API design
Supports both callback and promise-based patterns for media selection, allowing integration with async/await code or traditional callback workflows. Includes options for media type filtering, image resizing, and MIME type restrictions.
import { launchImageLibrary } from 'react-native-image-picker';
const selectProfilePhoto = async () => {
const result = await launchImageLibrary({
mediaType: 'photo',
quality: 0.8
});
if (!result.didCancel && result.assets) {
const photoUri = result.assets[0].uri;
// Upload photoUri to server
}
};Added stopCamera function to properly release media stream resources on web platform.
- –Added stopCamera function to properly release media stream resources on web
Added support for specifying allowed MIME types on Android platform.
- –Added ability to specify a list of allowed mime-types on Android
Added support for converting HEIF images to JPEG format.
- –Added support for converting image/heif to jpeg
Top in Mobile & Desktop
Related Repositories
Discover similar tools and frameworks used by developers
Etcher
Cross-platform app for writing OS images to SD cards and USB drives with data verification.
TapTap
Ports Android 12's double-tap back gesture to Android 7.0+ with 50+ configurable actions.
AAAD
Android app for installing third-party Android Auto apps without root or developer settings.
React Native SVG
Native SVG rendering for React Native applications.
ChatGPT Desktop
Unofficial ChatGPT desktop app built with Rust and Tauri for Mac, Windows, and Linux.