Image input not working

I have purchased the react native course from Code with Mosh , and, during the ImageInput section, he uses a function called RequestCameraRollPermissionsAsync()
and this function is depreciated. When you write it, you get a strikethrough in VS code. Please help, and suggest a working function for the imageInpute
Thanks

Just use requestMediaLibraryPermissionsAsync() instead.
You can see how to use it under the Usage section in documentation: ImagePicker - Expo Documentation

Thanks alot. I’ll try it and get back to you