diff --git a/bob_party/src/screens/Conversation.tsx b/bob_party/src/screens/Conversation.tsx new file mode 100644 index 0000000..e4a6de9 --- /dev/null +++ b/bob_party/src/screens/Conversation.tsx @@ -0,0 +1,53 @@ +import { StatusBar } from 'expo-status-bar' +import {KeyboardAvoidingView, Platform, TextInput, View} from 'react-native' +import React, { useCallback } from 'react'; +import stylesScreen from './style/screens.style'; +import { TopBar } from '../components/TopBar'; +import { BotBar } from '../components/BotBar'; +import { FlatList } from 'react-native-gesture-handler'; +import { MANAGER_CONVERSATION, MANAGER_USER } from '../../appManagers'; +import { MessageComponent } from '../components/MessageComponent'; + +function Conversation(props: { navigation: any; }) { + const { navigation } = props + + const chosenConversation = MANAGER_CONVERSATION.getCurrentTabConv()[0].getTabMessage(); + + + + const renderMessage = ({ item }) => { + return ( + + ); + }; + return( + + + item.getMessageId().toString()} + style={{flexDirection:'column-reverse'}} + /> + + console.log("camarche")} + returnKeyType="send" + onSubmitEditing={() => console.log("oh oui")} + /> + + + ); +} + +export default Conversation \ No newline at end of file diff --git a/bob_party/src/screens/style/screens.style.js b/bob_party/src/screens/style/screens.style.js index d994c1c..529bc4b 100644 --- a/bob_party/src/screens/style/screens.style.js +++ b/bob_party/src/screens/style/screens.style.js @@ -6,13 +6,18 @@ export default StyleSheet.create({ backgroundColor: '#45444E', flexDirection: "column", justifyContent: "flex-start", - alignItems: "center", }, bodyStart: { flex: 1, flexDirection: 'column', width: '100%', - }, + }, + bodyStartReverse:{ + flex: 1, + flexDirection: 'column-reverse', + justifyContent: 'flex-end', + width: '100%', + }, bodyStartCenter: { flex: 1, alignItems: 'center',