This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'), | |
session = require('express-session'), | |
bodyparser = require('body-parser'), | |
cors = require('cors'), | |
mongoose = require('mongoose'), | |
morgan = require('morgan'), | |
passport = require('passport'), | |
flash = require('connect-flash'), | |
routes = require('./server/controller/index.js'), | |
cons = require('consolidate'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { createStackNavigator, createDrawerNavigator, createSwitchNavigator } from 'react-navigation'; | |
import FingerPrintScreen from './src/components/FingerPrint'; | |
import LoginScreen from './src/components/Login'; | |
import DrawerContainer from './src/components/DrawerContainer'; | |
import AuthLoadingScreen from './src/components/AuthLoading'; | |
import DashboardScreen from './src/components/Dashboard'; | |
import { View, Image, Button, Text, StyleSheet, TouchableOpacity } from 'react-native'; | |
import Expo from 'expo'; | |
import { Entypo } from '@expo/vector-icons' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Axios from 'axios'; | |
import Expo from 'expo'; | |
import { ScrollView, SafeAreaView, StyleSheet, Text, View, AsyncStorage, Image } from 'react-native'; | |
import { NavigationActions } from 'react-navigation'; | |
import { AVATAR_URL, THEME_COLOR, asyncStore } from '../constants'; | |
const styles = StyleSheet.create({ | |
drawer: { | |
flex: 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { View, Text, TouchableOpacity, TextInput, TouchableWithoutFeedback, Keyboard, Animated, Image } from 'react-native'; | |
// import { connect } from 'react-redux'; | |
import Spinner from '../components/Spinner'; | |
import * as API from '../utils/api'; | |
class EnterCode extends React.Component { | |
static navigationOptions = { | |
title: 'Enter Code', | |
headerTintColor: 'black', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<MapView | |
ref={c => this.mapView = c} | |
style={{ | |
position: 'absolute', | |
top: 0, | |
left: 0, | |
bottom: 0, | |
right: 0, | |
}} | |
provider="google" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AsyncStorage } from 'react-native'; | |
export const getToken = (token) => ({ | |
type: 'GET_TOKEN', | |
token, | |
}); | |
export const saveToken = token => ({ | |
type: 'SAVE_TOKEN', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { combineReducers } from 'redux'; | |
const rootReducer = (state = { | |
token: {}, | |
loading: true, | |
error: null, | |
}, action) => { | |
switch (action.type) { | |
case 'GET_TOKEN': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
ActivityIndicator, | |
AsyncStorage, | |
StatusBar, | |
StyleSheet, | |
View, | |
} from 'react-native'; | |
import { connect } from 'react-redux'; | |
import { getUserToken } from '../actions'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
AsyncStorage, | |
Button, | |
StatusBar, | |
StyleSheet, | |
View, | |
Text, | |
} from 'react-native'; |
OlderNewer