How to use the react-native-gifted-chat.GiftedChat.prepend function in react-native-gifted-chat

To help you get started, we’ve selected a few react-native-gifted-chat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BelinChung / react-native-hiapp / App / Views / Message / index.js View on Github external
this.setState(previousState => {
          return {
            messages: GiftedChat.prepend(
              previousState.messages,
              require('./mock/old_messages.js')
            ),
            loadEarlier: false,
            isLoadingEarlier: false
          }
        })
      }
github bunkerchat / bunker / mobile / App.js View on Github external
this.setState((previousState) => {
					return {
						messages: GiftedChat.prepend(previousState.messages, require('./data/old_messages.js')),
						loadEarlier: false,
						isLoadingEarlier: false,
					}
				})
			}
github FaridSafi / react-native-gifted-chat / example / App.js View on Github external
this.setState((previousState) => {
          return {
            messages: GiftedChat.prepend(previousState.messages, require('./data/old_messages.js')),
            loadEarlier: false,
            isLoadingEarlier: false,
          };
        });
      }

react-native-gifted-chat

The most complete chat UI for React Native

MIT
Latest version published 11 months ago

Package Health Score

75 / 100
Full package analysis