Showing and selecting a Photo

I have run into one too many roadblocks when trying to figure out how to do this. React Native’s module titled “Camera Roll” has been deprecated, so I’ve been searching for another library to make this possible. Last week, I thought maybe Expo’s MediaLibrary might be the answer, but I couldn’t figure out how to use it. Overall, there may be documentation online for different libraries, but not a lot of examples showing how to implement them. Below are a list of different websites I found along my journey of researching.

While I did find a lot of dead ends, I am SO happy to say I found an example using Expo’s ImagePicker library. There is source code that I was able to run on my device where I could select a photo and display it. Here are screenshots from running this example on my phone (source code can be found on the ImagePicker documentation page).

Now, I just need to figure out how to implement that within my app. I’m getting an “Invalid Hook Error” which I have no idea what that means, so back to researching it is!

Showing and selecting a Photo
css.php