Skip to content

Commit

Permalink
Update index.native.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ShridharGoel committed Apr 2, 2024
1 parent 1c2078c commit c509b2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AttachmentPicker/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Alert, Image as RNImage, View} from 'react-native';
import RNFetchBlob from 'react-native-blob-util';
import RNDocumentPicker from 'react-native-document-picker';
import type {DocumentPickerOptions, DocumentPickerResponse} from 'react-native-document-picker';
import {launchImageLibrary} from 'react-native-image-picker';
import {ImageLibraryOptions, launchImageLibrary} from 'react-native-image-picker';

Check failure on line 7 in src/components/AttachmentPicker/index.native.tsx

View workflow job for this annotation

GitHub Actions / Run ESLint

Import "ImageLibraryOptions" is only used as types
import type {Asset, Callback, CameraOptions, ImagePickerResponse} from 'react-native-image-picker';
import type {FileObject, ImagePickerResponse as FileResponse} from '@components/AttachmentModal';
import * as Expensicons from '@components/Icon/Expensicons';
Expand Down Expand Up @@ -40,7 +40,7 @@ type Item = {
* See https://github.com/react-native-image-picker/react-native-image-picker/#options
* for ImagePicker configuration options
*/
const imagePickerOptions = {
const imagePickerOptions: Partial<CameraOptions | ImageLibraryOptions> = {
includeBase64: false,
saveToPhotos: false,
selectionLimit: 1,
Expand Down

0 comments on commit c509b2f

Please sign in to comment.