-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New conversation view with styles and theme support.
- Loading branch information
Showing
14 changed files
with
211 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
], | ||
"ios": { | ||
"supportsTablet": true | ||
} | ||
}, | ||
"userInterfaceStyle": "automatic" | ||
} | ||
} |
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,24 @@ | ||
import { Icon, Text, TopNavigation, TopNavigationAction, useStyleSheet } from "@ui-kitten/components"; | ||
|
||
import React from "react"; | ||
import themedStyles from "../../styles"; | ||
|
||
const StarIcon = (props) => <Icon {...props} fill="#8d9bb5" name="star-outline" />; | ||
|
||
function ConversationDetailSubject({ subject }) { | ||
const styles = useStyleSheet(themedStyles); | ||
|
||
const SubjectHeading = () => ( | ||
<Text style={styles.subjectHeading} category="h6">{subject}</Text> | ||
); | ||
|
||
const StarAction = () => ( | ||
<TopNavigationAction icon={StarIcon} /> | ||
); | ||
|
||
return ( | ||
<TopNavigation accessoryLeft={SubjectHeading} accessoryRight={StarAction} /> | ||
); | ||
} | ||
|
||
export default ConversationDetailSubject; |
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 |
---|---|---|
@@ -1,13 +1,24 @@ | ||
import { List } from "@ui-kitten/components"; | ||
import { List, useStyleSheet } from "@ui-kitten/components"; | ||
|
||
import MessageListItem from "./ListItem"; | ||
import React from "react"; | ||
import themedStyles from "../../styles"; | ||
|
||
function MessageList({ navigation, messages, ListHeaderComponent }) { | ||
const styles = useStyleSheet(themedStyles); | ||
|
||
function MessageList({ navigation, messages }) { | ||
function renderItem({ item }) { | ||
return <MessageListItem {...item} navigation={navigation} />; | ||
} | ||
|
||
return <List style={{ flex: 1 }} data={messages} renderItem={renderItem} />; | ||
|
||
return ( | ||
<List | ||
data={messages} | ||
style={styles.list} | ||
renderItem={renderItem} | ||
ListHeaderComponent={ListHeaderComponent} | ||
/> | ||
); | ||
} | ||
|
||
export default MessageList; | ||
export default MessageList; |
Oops, something went wrong.