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.

Cannot read property 'Constants' of undefined

See original GitHub issue

Issue Description

When sent a video message i receive this error: whatsapp image 2019-02-26 at 12 39 01

Steps to Reproduce / Code Snippets

     return {
       messages: [
         {
           _id: 1,
           text: "My message",
           createdAt: new Date(Date.UTC(2016, 5, 11, 17, 20, 0)),
           user: {
             _id: 2,
             name: "React Native",
             avatar: "https://facebook.github.io/react/img/logo_og.png"
           },
           video:
             "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4"
         }
       ]
     };


#### Additional Information

* Nodejs version: v10.15.0 
* React version: 16.3.1
* React Native version: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz
* react-native-gifted-chat version: 0.7.2
* Platform(s) (iOS, Android, or both?): iOS

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12

github_iconTop GitHub Comments

6reactions
joelpiccolicommented, Mar 5, 2019

passing some messageVideoProps through Bubble component did the trick for me!

renderBubble(bubbleProps) {
    return (
      <Bubble
        {...bubbleProps}
        wrapperStyle={styles.wrapper}
        textStyle={styles.text}
        messageVideoProps={{}}
      />
    );
  }

I also need to install react-native-video and link it to work properly…

npm i react-native-video && react-native link react-native-video
2reactions
diamont1001commented, May 9, 2019

same issue with RN 0.59.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'Constants' of undefined #438 - GitHub
I found the solution that fixed me the problem. Go to.. xCode -> Build Phases -> Link Binary With Libraries. In the list...
Read more >
react-native-video: Cannot read property 'Constants' of null
I tried: deleting my node_modules and npm i again followed by react-native link and react-native link react-native-video. Several times. My ...
Read more >
Cannot read properties of null (reading 'contains')error in react ...
TypeError: Cannot read properties of null (reading 'contains'), Need useEffect Cleanup,EventBubblingtypeerror cannot read property of null ...
Read more >
How to Avoid the Infamous "Cannot read properties of ... - Bitovi
That error message is telling you the function is returning undefined implicitly, but its return type does not include undefined in it. Awesome!...
Read more >
Cannot read property 'Constants' of undefined - studyhard24
react-native-video react native video TypeError: Cannot read property 'Constants' of undefined. studyhard24 2018. 12. 25. 23:30.
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