question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Animated.event now requires a second argument for options

See original GitHub issue

Issue Description

When We need to display a message with an image, the app shows a warning about the issue.

Animated.event now requires a second argument for options

I guess, react-native-gifted-chat uses this react-native-lightbox lib. Now UseNativeDriver is a required prop for Animated Unfortunately, the original library seems to be out of maintenance.

Steps to Reproduce / Code Snippets

Simulator Screen Shot - iPhone 11 - 2020-09-22 at 16 11 58

Additional Information

  • Nodejs version: v13.5.0
  • React version: 16.13.1
  • React Native version: 0.63.2
  • react-native-gifted-chat version: 0.16.3
  • Platform(s) (iOS, Android, or both?): Both
  • TypeScript version: 3.8.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:28
  • Comments:16

github_iconTop GitHub Comments

20reactions
H4ck3r-x0commented, Oct 27, 2020

Hi guys and @FaridSafi, i worked this around. I implemented my own component, i used this package react-native-image-modal

and the component look like this.

 const renderMessageImage = (props) => {
    return (
      <View
        style={{
          borderRadius: 15,
          padding: 2,
        }}
      >
        <ImageModal
          resizeMode="contain"
          style={{
            width: 200,
            height: 200,
            padding: 6,
            borderRadius: 15,
            resizeMode: "cover",
          }}
          source={{ uri: props.currentMessage.image }}
        />
      </View>
    );
  };

hope this would be helpful.

14reactions
qadir007commented, Jun 24, 2021

Hey guys to solve this issue you just need to replace react-native-lightbox with react-native-lightbox-v2 in the MessageImage.js file in node_modules/ react-native-gifted-chat /lib/MessageImage.js file Note first install react-native-lightbox-v2

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Error: "Animated.event now requires a second ...
Animated.event now requires a second argument for options; config.onPanResponderMove is not a function. List item.
Read more >
Animated.event now requires a second argument for options
This is a required option and must be explicitly set to `true` or `false` ... Animated.event now requires a second argument for options...
Read more >
React Native Error: “Animated.event now requires a second ...
Animated.event now requires a second argument for options - node_modules/react-native/Libraries/LogBox/LogBox.js:117:10 in registerWarning ...
Read more >
React Native Error: "Animated.event now requires a second ...
Coding example for the question React Native Error: "Animated.event now requires a second argument for options"-React Native.
Read more >
Animated.event now requires a second argument for options
When We need to display a message with an image, the app shows a warning about the issue. Animated.event now requires a second...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found