While following this part of the course I could not for the life of me get the code working. The image would simply not show up in the image list. After some debugging I found that the uri was not getting added to the array.
This error was in Section 10 of Native Features - ‘Building ImageInputList - Basics’. The issue was happening when testing the new component in App.js.
If anyone got stuck on this section you can find the corrected code below.
@AshNZ, Awesome find.
Mosh experimented a lot with App.js where I had tons of code commented out for the next time Mosh started fresh with App.js (probably as you had done also).
All good, thanks @AshNZ! I appreciate you helping others!!!
The useState should use an empty array.
const [imageUris, setImageUris] = useState([]); - My updated code
const [imageUris, setImageUris] = useState(); Original