-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
97 lines (85 loc) · 2.34 KB
/
index.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View
} from 'react-native';
import { createStackNavigator, createBottomTabNavigator } from 'react-navigation';
import RegisterScreen from './components/RegisterScreen';
import OTPScreen from './components/OTPScreen';
import SimilarFaces from './components/SimilarFaces';
import VehicleList from './components/VehicleList';
import MyComplaints from './components/MyComplaints';
import LoggedInScreens from './components/LoggedInScreens';
const StackNavigator = createStackNavigator({
Home: {
screen: RegisterScreen,
navigationOptions: {
header: null,
}
},
OTPScreen: {
screen: OTPScreen,
navigationOptions: {
title: 'OTP'
}
},
// SimilarFaces: {
// screen: SimilarFaces,
// navigationOptions: {
// header: null,
// }
// },
LoggedInScreens: {
screen: LoggedInScreens,
navigationOptions: {
header: null,
}
},
// MyComplaints: {
// screen: MyComplaints,
// navigationOptions: {
// header: null,
// }
// },
// VehicleList: {
// screen: VehicleList,
// navigationOptions: {
// header: null,
// }
// }
});
const image_picker_options = {
title: 'Select Photo',
takePhotoButtonTitle: 'Take Photo...',
chooseFromLibraryButtonTitle: 'Choose from Library...',
cameraType: 'back',
mediaType: 'photo',
maxWidth: 480,
quality: 1,
noData: false,
};
//the API Key that you got from Microsoft Azure
const api_key = 'd6975a797c91410db46f9be6606f551e'; //face
const api_computer_vision = '84d895648cb9402aba03de99143b9085' //image
class IndexScreen extends Component {
constructor(props) {
super(props);
}
render() {
return (
<StackNavigator style={styles.container} />
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#ffffff',
}
});
AppRegistry.registerComponent('StackNavigator', () => StackNavigator);
AppRegistry.registerComponent('BottomTabNavigator', () => BottomTabNavigator);
AppRegistry.registerComponent('ParkRight', () => IndexScreen);