diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-25 16:58:05 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-25 16:58:05 -0700 |
commit | 448e91ed0b6c7519c02bbe1ac32a9d51989679db (patch) | |
tree | f202a19f87a6dc2de5ca948d6941c50245746865 /src/utils | |
parent | 6f94f0bb6dbe12e23f4222a0d0e3ffb09af965d7 (diff) |
Fix lint errors
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/camera.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/camera.ts b/src/utils/camera.ts index fc2471e5..1c57f85d 100644 --- a/src/utils/camera.ts +++ b/src/utils/camera.ts @@ -2,7 +2,7 @@ import CameraRoll from '@react-native-community/cameraroll'; import {useNavigation} from '@react-navigation/native'; import {Dispatch, RefObject, SetStateAction} from 'react'; import {Alert} from 'react-native'; -import {Orientation, RNCamera} from 'react-native-camera'; +import {RNCamera} from 'react-native-camera'; import ImagePicker from 'react-native-image-crop-picker'; import {ScreenType} from 'src/types'; import {ERROR_UPLOAD} from '../constants/strings'; @@ -36,10 +36,10 @@ export const downloadImage = (capturedImageURI: string) => { }; export const navigateToImagePicker = ( + navigation: any, screenType: ScreenType, title: string, ) => { - const navigation = useNavigation(); ImagePicker.openPicker({ smartAlbums: [ 'Favorites', |