Comments (3)
@josefrichter I using your approach in my component - Message.js check it out, it was based on this component
from react-native-gifted-chat.
I think you can create an adapter for your needs, something like
messages = messages.map(function(message) {
return {
// ...
position: (message.authorID === currentUser.id ? 'right' : 'left'),
// ...
}
});
from react-native-gifted-chat.
I am trying to do this test to start a message on the right side but it is not working could you help me please @FaridSafi
componentDidMount() { this.setState({ messages: [ { _id: 1, position: 'right', text: 'Hello developer', createdAt: new Date(), user: { _id: 1, name: 'React Native', avatar: 'https://placeimg.com/140/140/any', }, }, ] }) }
from react-native-gifted-chat.
Related Issues (20)
- No textInputStyle prop HOT 1
- how to prevent re-rendering of message when user scroll chatting log
- scroll to last new massage received. HOT 1
- When I run in Android device that time I am getting this issue
- Keyboard focus remove automatic during the time of typing.
- Adding Carousel in Chat
- Clipboard copy icon (like ChatGPT) HOT 2
- Can We Achieve React-Native-Keyboard-Aware-Scroll-View Behavior in React-Native-Gifted-Chat? HOT 3
- Cheboo HOT 1
- Type 'Bubble<IMessage>' is not assignable to type 'ReactNode' HOT 1
- The scroll view for messages cuts off exactly where the content ends.
- how to horizontal the quickreplies in react gifted chat?
- What's the difference between Reply.title and Reply.value?
- I want to place Time next to Bubble without any margins. HOT 3
- Keyboard hides part of input toolbar HOT 1
- Reopen 654 HOT 2
- Reopen 1588
- Content of renderChatEmpty slides down when keyboard is open HOT 2
- Input toolbar glitches after opening keyboard HOT 1
- Warning: Avatar: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-gifted-chat.