-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettings.js
32 lines (29 loc) · 1.31 KB
/
Settings.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
import { View, Text } from 'react-native'
import { NavigationContainer, useNavigation } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator();
import Home from './App'
export default function Settings({navigation}) {
return (
<View>
<Stack.Navigator
screenOptions={({ navigation }) => ({
headerStyle: { backgroundColor: '#DD5353' },
headerTintColor: 'white',
contentStyle: { backgroundColor: "white" },
headerTitleAlign: 'center',
headerTitleStyle: { fontSize: 40, fontWeight: 'bold', color: 'white' },
headerTitle: 'সদাই',
headerRight: () => (
<View style={{ marginRight: 10 }}>
<FontAwesome name="gear" size={24} color="white" onPress={() => navigation.navigate('Settings')} />
</View>
),
})}
>
<Stack.Screen name='Home' component={Home} />
</Stack.Navigator>
<Text>Settings Page fr</Text>
</View>
)
}