ErnestoOrtiz2 3 years ago
parent
commit
36a75cbfac
3 changed files with 0 additions and 46 deletions
  1. 0
    17
      App.js
  2. 0
    25
      screens/main/Home_page.js
  3. 0
    4
      screens/main/RoomScreen.js

+ 0
- 17
App.js View File

17
 //import Loading from './components/Loading';
17
 //import Loading from './components/Loading';
18
 import Loading from './screens/main/Loading';
18
 import Loading from './screens/main/Loading';
19
 import { firebaseConfig } from './config/firebaseConfig';
19
 import { firebaseConfig } from './config/firebaseConfig';
20
-<<<<<<< HEAD
21
-=======
22
-import { Text, View } from 'react-native';
23
-import { styles } from './config/styles';
24
-
25
-import HomeScreen from './screens/main/Home_page';
26
-import RoomScreen from './screens/main/RoomScreen'
27
-import { Provider} from 'react-redux'
28
-import { createStore, applyMiddleware } from 'redux';
29
->>>>>>> devErnesto
30
 import rootReducer from './redux/reducers'
20
 import rootReducer from './redux/reducers'
31
 
21
 
32
 
22
 
95
     return(
85
     return(
96
       <Provider store={store}>
86
       <Provider store={store}>
97
         <NavigationContainer>
87
         <NavigationContainer>
98
-<<<<<<< HEAD
99
           <Drawer.Navigator>
88
           <Drawer.Navigator>
100
             <Drawer.Screen name={" "} options={{drawerLabel: "Home", headerTransparent: true}} children={this.createHomeStack}/>
89
             <Drawer.Screen name={" "} options={{drawerLabel: "Home", headerTransparent: true}} children={this.createHomeStack}/>
101
           </Drawer.Navigator>
90
           </Drawer.Navigator>
102
-=======
103
-          <Stack.Navigator initialRouteName="Home">
104
-            <Stack.Screen name="Home" component={HomeScreen} />
105
-            <Stack.Screen name="Room" component={RoomScreen} options={({ route }) => ({ title: route.params.thread.name })} />
106
-          </Stack.Navigator>
107
->>>>>>> devErnesto
108
         </NavigationContainer>
91
         </NavigationContainer>
109
       </Provider>
92
       </Provider>
110
     );
93
     );

+ 0
- 25
screens/main/Home_page.js View File

13
 import { fetchUser } from '../../redux/actions/index'
13
 import { fetchUser } from '../../redux/actions/index'
14
 
14
 
15
 export function Home_page({navigation}) {
15
 export function Home_page({navigation}) {
16
-<<<<<<< HEAD
17
-
18
-  return (
19
-    <TouchableWithoutFeedback style={styles.stdcontainer} onPress={Keyboard.dismiss} accessible={false}>
20
-        <ImageBackground style={styles.stdcontainer} source={require('../../assets/yellow-white.jpg')}>
21
-            <CustomButton marginTop={25} title="Calendar" onPress={() => navigation.navigate('Calendar')}/>
22
-        </ImageBackground>
23
-    </TouchableWithoutFeedback>
24
-  );
25
-}
26
-=======
27
   const [threads, setThreads] = useState([]);  
16
   const [threads, setThreads] = useState([]);  
28
   const [loading, setLoading] = useState(true);
17
   const [loading, setLoading] = useState(true);
29
   
18
   
110
         </ImageBackground>
99
         </ImageBackground>
111
     );
100
     );
112
   }
101
   }
113
->>>>>>> devErnesto
114
 
102
 
115
 const mapStateToProps = (store) => ({
103
 const mapStateToProps = (store) => ({
116
   currentUser: store.userState.currentUser
104
   currentUser: store.userState.currentUser
117
 })
105
 })
118
 const mapDispatchProps = (dispatch) => bindActionCreators({fetchUser}, dispatch);
106
 const mapDispatchProps = (dispatch) => bindActionCreators({fetchUser}, dispatch);
119
 
107
 
120
-<<<<<<< HEAD
121
-export default connect(mapStateToProps, mapDispatchProps)(Home_page);
122
-const mapStateToProps = (store) => ({
123
-  currentUser: store.userState.currentUser
124
-})
125
-const mapDispatchProps = (dispatch) => bindActionCreators({fetchUser}, dispatch);
126
-
127
-export default connect(mapStateToProps, mapDispatchProps)(Home_page);
128
-
129
-
130
-
131
-=======
132
 export default connect(mapStateToProps, mapDispatchProps)(Home_page);
108
 export default connect(mapStateToProps, mapDispatchProps)(Home_page);
133
->>>>>>> devErnesto

+ 0
- 4
screens/main/RoomScreen.js View File

1
-<<<<<<< HEAD
2
-=======
3
-
4
->>>>>>> devErnesto
5
 import React, { useState, useEffect, useCallback } from 'react';
1
 import React, { useState, useEffect, useCallback } from 'react';
6
 import { GiftedChat } from 'react-native-gifted-chat';
2
 import { GiftedChat } from 'react-native-gifted-chat';
7
 import firebase from 'firebase';
3
 import firebase from 'firebase';