react-native-chat-listview
WIP - NOT READY FOR PRODUCTION
Types
Position
: numeric value, assumed to be unique per chatroom and ordered with older messages having lower values. It is sparse, meaning there are gaps between values.
Although it is NOT the concern of chat-listview
, this probably represents the timestamp on the message.
Props
const Position = { const value = propspropName; if typeof value !== 'number' return 'Invalid prop `' + propName + '` supplied to' + ' `' + componentName + '` Position must be a numeric value.' ; };const endpoint = PropTypesshape position: PositionisRequired estimatedMessageCountToLocus: PositionisRequired isRequired static propTypes = retrieveWindowSurrounding: PropTypesfuncisRequired renderMessage: PropTypesfuncisRequired setReadPosition: PropTypesfuncisRequired window: PropTypesshape bufferSize: PropTypesintisRequired locus: PositionisRequired positions: PropTypesisRequired messages: PropTypesobjectisRequired //the keys of the properties are Position values, and the values are the message data: TBD isRequired first: endPoint last: endPoint unreadCount: PropTypesnumberisRequired unreadPosition: PropTypes
Callback Signatures
//deltaMessageCount should be relatively small
Locus?? WTF?
It's an actual English word. Go ahead and casually drop it in conversations! In addition to making you sound smarter than you are, it's an efficient way to confuse your listeners so they won't challenge your ideas. Trust me.
Note: The word is pronounced similar to "locust", the thing that eats crops and pisses off farmers. The plural form of locus is loci, similar to the way octopus is pluralized as octopi, abacus is pluralized as abaci, and uterus becomes uteri*. In case you were wondering.
*See also: nucleus and fungus, but not status and maybe not fetus.