-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from terrysahaidak/tr-search-messages
Add ability to search messages
- Loading branch information
Showing
10 changed files
with
394 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React, {PropTypes} from 'react' | ||
import {ScrollView} from 'react-native' | ||
import Message from '../Room/Message' | ||
|
||
const MessagesList = ({ | ||
items, | ||
onLongPress, | ||
onPress, | ||
onUserAvatarPress | ||
}) => ( | ||
<ScrollView> | ||
{items.map(item => | ||
<Message | ||
{...item} | ||
onLongPress={onLongPress} | ||
onPress={onPress} | ||
onUserAvatarPress={onUserAvatarPress} | ||
onLayout={() => {}} | ||
key={item.id} /> | ||
)} | ||
</ScrollView> | ||
) | ||
|
||
MessagesList.propTypes = { | ||
items: PropTypes.array, | ||
onPress: PropTypes.func, | ||
onLongPress: PropTypes.func, | ||
onUserAvatarPress: PropTypes.func | ||
} | ||
|
||
export default MessagesList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.