React-native-gifted-chat: Cannot read property 'Constants' of undefined

Created on 26 Feb 2019  路  12Comments  路  Source: FaridSafi/react-native-gifted-chat

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

``` this.setState(() => {
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

wontfix

Most helpful comment

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

All 12 comments

I'm facing the same issue with RN 0.58.0... anyone that could help?

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

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.

same issue with RN 0.59.5

same issue with RN 0.59.5

Are there any workarounds ? How to fix it ? Anybody solves it ?

+1

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.

@bot don't close

Same issue here with RN 0.60.4.
No solution yet?

Same issue here with RN 0.59.9.
No solution yet?

Following with documentation of react native video, you should use pod install and add
pod 'react-native-video', :path => '../node_modules/react-native-video/react-native-video.podspec' in Podfile and android you can check the manual installation

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

redwind picture redwind  路  3Comments

luisfuertes picture luisfuertes  路  3Comments

pentarex picture pentarex  路  3Comments

yogiben picture yogiben  路  3Comments

cassioseffrin picture cassioseffrin  路  3Comments