Skip to content

Instantly share code, notes, and snippets.

View linux08's full-sized avatar
📚
Learning.

David Abimbola linux08

📚
Learning.
View GitHub Profile
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'),
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'
import React from 'react';
import { createStackNavigator, createDrawerNavigator, createSwitchNavigator } from 'react-navigation';
import LoginScreen from './screens/Login';
import FingerPrintScreen from './screens/FingerPrint';
import AuthLoadingScreen from './screens/AuthLoading';
import DashboardScreen from './screens/Dashboard';
import PendingListsScreen from './screens/PendingList';
import AuthSettingsScreen from './screens/AuthSettings';
import DrawerContainer from './components/DrawerContainer';
// import PushNotification from './screens/PushNotifications';
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,
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',
<MapView
ref={c => this.mapView = c}
style={{
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0,
}}
provider="google"
import { AsyncStorage } from 'react-native';
export const getToken = (token) => ({
type: 'GET_TOKEN',
token,
});
export const saveToken = token => ({
type: 'SAVE_TOKEN',
import { combineReducers } from 'redux';
const rootReducer = (state = {
token: {},
loading: true,
error: null,
}, action) => {
switch (action.type) {
case 'GET_TOKEN':
import React from 'react';
import {
ActivityIndicator,
AsyncStorage,
StatusBar,
StyleSheet,
View,
} from 'react-native';
import { connect } from 'react-redux';
import { getUserToken } from '../actions';
import React from 'react';
import {
AsyncStorage,
Button,
StatusBar,
StyleSheet,
View,
Text,
} from 'react-native';