I want upload image, when I pressed Upload image button

import React, { useState } from ‘react’
import { Alert, Button, View, StyleSheet } from ‘react-native’

import { launchImageLibrary } from ‘expo-image-picker’

const options = {
title: ‘Select Image’,
type: ‘library’,
options: {
maxHeight: 200,
maxWidth: 200,
selectionLimit: 1,
mediaType: ‘photo’,
includeBase64: false,
}
}

const Fine_Repair_Request = () => {
const opengallery = async () => {
const image = await launchImageLibrary(options);
console.log(image)
}

return (



)
}
export default Fine_Repair_Request;

const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: ‘center’,
justifyContent: ‘center’
}
})

Error: Possible Unhandled Promise Rejection (id: 1):
TypeError: Cannot read property ‘launchImageLibrary’ of null
TypeError: Cannot read property ‘launchImageLibrary’ of null

when we pressed login button the error is Cannot read property ‘launchImageLibrary’ of null , and unhandled promise rejection