Questions tagged [react-native-gifted-chat]

<GiftedChat
    messages={this.state.messages}
    onSend={messages => this.onSend(messages)}
    user={{
      _id: 1,
    }}
  />
207 questions
0
votes
1 answer

React Native: Can't perform update because of memory leak

I am testing a RN (0.59) chat app (gifted chat 0.7.3) with 2 android emulators connected. There is a warning message about memory leak on one client: 'Chat message URL : ', 'http://192.168.1.3:3000/api/messages/new' 06-14 14:09:56.628 12503 12552 I…
user938363
  • 9,990
  • 38
  • 137
  • 303
0
votes
1 answer

How can i delete message on click of bubble touch? React Native Gifted chat library

I have developed chat view in React Native using gifted chat lib. But i want to perform delete action on click of chat bubble. I have try custom renderCustomView ,lightboxProps and onLongPress props but none of is working.
Rajesh N
  • 6,198
  • 2
  • 47
  • 58
0
votes
0 answers

renderLoadEarlier does not work correctly

Customize renderLoadEarlier does not work correctly. I have this code: LoadMoreButton class: import React from 'react'; import { TouchableOpacity, View, Text } from 'react-native'; import PropTypes from 'prop-types'; import FontAwesome from…
Lap Tran
  • 89
  • 5
0
votes
1 answer

How to display the value from field "createdAt" in day-month hours:minutes AM/PM

I am using react-native-gifted-chat and want to change the default format for the time value from "createdAt" field. The default one is "month-day, year", I want to format the time to show hours and minutes and can't figure a way out... I am using…
0
votes
1 answer

Unable to pass a parent component's state to its child component

I cannot pass a parent's state to its child component. I've tried passing the whole parent's state to the child, however, the content of the state itself was undefined. Also, I've tried similarly by using props, but it did not work well…
西田龍
  • 78
  • 1
  • 6
0
votes
1 answer

Append data into gifted(giftedchat and firebase)

When I close the app the text is cleared, using firebase to pull data how can I append them into gifted-chat? onSend(messages = []) { _userText.push({message: messages}); this.setState(previousState => ({ messages:…
InsXghT
  • 53
  • 2
  • 10
-1
votes
1 answer

Weird resize mode in React Native

) I have a question about the strange scaling of the image in react native, but in the component provided from the package react native gifted chat component: MessageImage. On IOS everything looks fine but on android.. Does anybody have an idea ?…
-1
votes
1 answer

real time gifted chat without socket.io?

My react Native 0.66 app uses gifted chat and socket.io to allow users to join a room (created by socket.io) and chat with others in the same room. The socket.io is used to broadcast a message to everyone in a room in real time. But recently…
user938363
  • 9,990
  • 38
  • 137
  • 303
-1
votes
1 answer

Want to add group chat functionality in my chat application using react-native-gifted-chat library and firebase

Now in my application one to one chat is working but, i want to add group chat functionality using firebase.
vainu
  • 131
  • 1
  • 12
-1
votes
1 answer

How to access naviagtion options from imported file in react-native

I'm passing data through different pages down to the last page in my app, its been working fine. But the issue is the last page has 2 components so the typical , here's what I mean: I have an…
-1
votes
1 answer

How to show floating icons inside gifted chat

I am trying to show a specific icon which will show above the chat list. I tried position:'absolute' in style but unable to succeed.Please tell me is it possible or not.
-1
votes
1 answer

State does not unmount when changing screens and opens randomly ( react-navigation - firebase - react native-maps - giftedcha )

The screen states do not reset when navigating between screens. Screen A: Map ( Main Screen ) Screen B : Map filters When the user logs in he sees the main screen - Screen A - where on componentdidmount setState with the users in the firebase…
1 2 3
13
14