diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-02 14:12:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 14:12:49 -0400 |
commit | 3a3f63ee76a31d93068920508b21e9a220b8ef57 (patch) | |
tree | d7795e8f24770c1daf1a8a64b4086418a7577c0b /src/screens/chat/ChatScreen.tsx | |
parent | 857bede6a08e97af7609a738b4daf633a46baba1 (diff) | |
parent | ecd44e517cbb978c0a590a5861cb2cd357d0fc11 (diff) |
Merge pull request #348 from leonyjiang/tma750-chat-bottom-tab
[TMA-750] Add Chat to Navigation
Diffstat (limited to 'src/screens/chat/ChatScreen.tsx')
-rw-r--r-- | src/screens/chat/ChatScreen.tsx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/screens/chat/ChatScreen.tsx b/src/screens/chat/ChatScreen.tsx new file mode 100644 index 00000000..af83f504 --- /dev/null +++ b/src/screens/chat/ChatScreen.tsx @@ -0,0 +1,34 @@ +import React from 'react'; +import {View, StyleSheet, Text} from 'react-native'; +import {StackNavigationProp} from '@react-navigation/stack'; + +import {MainStackParams} from '../../routes'; + +type ChatScreenNavigationProp = StackNavigationProp<MainStackParams, 'Chat'>; +interface ChatScreenProps { + navigation: ChatScreenNavigationProp; +} +/* + * Screen that displays all of the user's active conversations. + */ +const ChatScreen: React.FC<ChatScreenProps> = () => { + return ( + <View style={styles.container}> + <Text style={styles.placeholder}>I am a chat!</Text> + </View> + ); +}; + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + }, + placeholder: { + fontSize: 14, + fontWeight: 'bold', + }, +}); + +export default ChatScreen; |