Вот, пожалуйста,
ImagePicker.showImagePicker({
title: 'Choose Image or Video',
customButtons: [{ name: 'image', title: 'Take a Photo' },{ name: 'video', title: 'Take a Video' }],
chooseFromLibraryButtonTitle: null,
takePhotoButtonTitle: null,
}, (res) => {
if(res.customButton ){
ImagePicker.launchCamera({
mediaType: res.customButton,
videoQuality: 'high',
quality: 1,
}, (response) => {
// Same code as in above section!
});
}
});