[native] Implement thumbhash generation on Android
Summary:
Implemented the generateThumbHash() function on iOS.
Used code from the thumbhash repository: https://github.com/evanw/thumbhash
Didn't convert the original library's Java code to Kotlin because it's unnecessary - interop between these languages works flawlessly. Conversion could potentially introduce bugs.
As gathering bitmap pixels from URI is a bit tricky, I put some in-code comments
Depends on D7779
Test Plan: One easy way is to hook this to expo-image-picker result (e.g. avatar picker) and provide picked uri to the function. It should usually return a 43 char long string (sometimes longer if there is alpha channel).
Reviewers: atul, marcin, varun, ashoat
Reviewed By: atul
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D7780