| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Hey @deIay, thanks a lot for the PR. There's one thing that has to be taken care of in the PR, and that is the type of the parameter of the onLongPress should be MessagePressableHandlerPayload, same as the onPress, and then you can just add the key as additionalInfo: payload.additionalInfo to the onLongPressArgs object. Currently, this doesn't look correct to me. Let me know if you are not able to figure it out. In that case, I can take it up.
Also, please run the lint checks using yarn lint-fix and build using yarn build so that we don't miss any issues.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
🎯 Goal
I noticed my custom onLongPressProp wasn't receiving additionalnfo about the press (e.g. specific thumbnail that was long pressed). I want to be able to take action based off the specific thumbnail that was long pressed in my custom onLongPress function. To do this I need access to the additional info objet.
🛠 Implementation details
This change passes the additionalInfo object to prop onLongPress functions.
🎨 UI Changes
iOS🧪 Testing
☑️ Checklist