-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
71 lines (63 loc) · 2 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import React from 'react';
import { View ,StyleSheet,StatusBar} from 'react-native';
import { Provider,Title,IconButton } from 'react-native-paper';
import { NavigationContainer } from '@react-navigation/native';
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack';
import Whatsapp from './WhatsappClone/App'
import NewGroupScreen from './WhatsappClone/NewGroupScreen';
//import Nativebase from './components/NativeBase'
//import TextInput from './components/TextInput'
//import List from './components/List';
//import Flexbox from './components/Flexbox'
//import StateFile from "./components/StateFile"
//import Hello from './components/Hello';
const Stack = createStackNavigator();
function App(){
return(
<Provider>
<View style={styles.container}>
<StatusBar barStyle= 'light-content'/>
<NavigationContainer>
<Stack.Navigator
initialRouteName="WhatsappScreen"
screenOptions={{
...TransitionPresets.SlideFromRightIOS,
headerStyle: {
backgroundColor:"#128C7E",
},
headerTintColor:"#fff",
}}
>
<Stack.Screen
name="WhatsappScreen"
component={Whatsapp}
options={{
headerShown:false
}}
/>
<Stack.Screen name="NewGroup"
component={NewGroupScreen}
options={{
headerTitle: () =>(
<View>
<Title style={{marginTop:-5, color:"#fff"}}>New Group </Title>
<Title style={{marginTop:-5, color:"#fff"}}>Add Participants </Title>
</View>
),
headerRight: () =>{
<IconButton icon="magnify" color="#fff"/>
}
}}
/>
</Stack.Navigator>
</NavigationContainer>
</View>
</Provider>
);
}
export default App;
const styles = StyleSheet.create({
container:{
flex:1
}
})