React-native-gifted-chat: onLongPress prop not working for image messages

Created on 19 Sep 2017  路  3Comments  路  Source: FaridSafi/react-native-gifted-chat

While trying to perform onLongPress for messages with image, only react-native-lightbox functions triggers.
Is there a work around for this?

wontfix

Most helpful comment

@maharjanaman Please check code here
https://github.com/blcsntb/react-native-gifted-chat/pull/1/files
https://github.com/blcsntb/react-native-lightbox/pull/1/files

Replace version in package.json file

"react-native-gifted-chat": "blcsntb/react-native-gifted-chat#34da3e98c70f0bc9f74122a2bc2c44f7719a7cfc",

This is sample code

<GiftedChat
    ...
    lightboxProps={{
        onLongPress: (context, message) => console.log(context, message)
    }}
/>

All 3 comments

@maharjanaman Please check code here
https://github.com/blcsntb/react-native-gifted-chat/pull/1/files
https://github.com/blcsntb/react-native-lightbox/pull/1/files

Replace version in package.json file

"react-native-gifted-chat": "blcsntb/react-native-gifted-chat#34da3e98c70f0bc9f74122a2bc2c44f7719a7cfc",

This is sample code

<GiftedChat
    ...
    lightboxProps={{
        onLongPress: (context, message) => console.log(context, message)
    }}
/>

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Very bad solution. why we change in node module. stupid!

Was this page helpful?
0 / 5 - 0 ratings