-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.jsx
56 lines (53 loc) · 1.64 KB
/
App.jsx
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
import React from 'react';
import 'react-native-gesture-handler';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {StatusBar} from 'react-native';
require('react-native-ui-lib/config').setConfig({appScheme: 'default'});
import {Colors, Text} from 'react-native-ui-lib';
import Home from './screens/Home';
import MovieScreen from './screens/MovieScreen';
import Greetings from './components/Banner/Greetings';
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<StatusBar hidden={true} />
<Stack.Navigator>
<Stack.Screen
name="Home"
component={Home}
options={{
headerStyle: {
backgroundColor: Colors.$backgroundDefault,
},
headerLeft: () => {
return <Greetings />;
},
headerTintColor: Colors.$textDanger,
headerTitle: '',
headerSearchBarOptions: {
tintColor: Colors.$textDanger,
placeholderTextColor: Colors.$textDanger,
iconColor: Colors.$textDanger,
placement: 'left',
},
}}
/>
<Stack.Screen
name="MovieDetails"
component={MovieScreen}
options={{
headerTintColor: Colors.$textDanger,
headerTransparent: true,
headerTitle: '',
headerLeft: () => {
<Text>Back</Text>;
},
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;