Air Chat
Chat UI for react native. Inspired by Gifted chat
Dependency
React Native minimum version 0.29.0
Installation
npm install react-native-air-chat --save
Android installation
- Add
android:windowSoftInputMode="adjustResize"
to your Android Manifestandroid/app/src/main/AndroidManifest.xml
<!-- ... --><!-- ... -->
- If you plan to use
AirChat
inside aModal
, see #200
Example
import AirChatUI from 'react-native-air-chat'; Component { ; //pass props in route object while navigating to this page //isPrivate : true || false //isPrivate set true if in private chat else set false //isNotification : false || true //isNotification set true to display notification in middle instead of chat bubble else false thisstate = messages: id: thispropsrouteid isPrivate : thispropsrouteisPrivate isNotification: thispropsrouteisNotification ; thisonSend = thisonSend; } { this; } { this; } { return <AirChatUI = = = /> ; }