This file contains hidden or 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
| export const base = { | |
| FONT_SIZE_MEDIUM: 14, | |
| FONT_SIZE_LARGE: 18, | |
| PRIMARY_FONT_FAMILY: "AvertaDemo-Regular", | |
| PRIMARY_FONT_FAMILY_BOLD: "AvertaDemo-ExtraBoldItalic", | |
| SECONDARY_FONT_FAMILY: "Product-Sans-Regular", | |
| SECONDARY_FONT_FAMILY_ITALIC: "Product-Sans-Italic", | |
| }; |
This file contains hidden or 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 * as React from "react"; | |
| import { | |
| Text, | |
| View, | |
| StyleSheet, | |
| TouchableOpacity, | |
| Image, | |
| TextInput | |
| } from "react-native"; |
This file contains hidden or 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, { Component } from "react"; | |
| import Login from "./Login"; | |
| export default class App extends Component { | |
| render() { | |
| return <Login />; | |
| } | |
| } |
This file contains hidden or 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
| export const base = { | |
| FONT_SIZE_TINY: 8, | |
| FONT_SIZE_SMALL: 12, | |
| FONT_SIZE_MEDIUM: 14, | |
| FONT_SIZE_LARGE: 18, | |
| FONT_SIZE_EXTRA_LARGE: 24, | |
| FONT_SIZE_MASSIVE: 34, | |
| FONT_WEIGHT_LIGHT: "200", | |
| FONT_WEIGHT_MEDIUM: "500", |
This file contains hidden or 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, { Component } from "react"; | |
| import Login from "./Login"; | |
| import { Provider } from "react-redux"; | |
| import { createStore, applyMiddleware, combineReducers } from "redux"; | |
| import thunk from "redux-thunk" | |
| import themeReducer from "./store/themeReducer"; | |
| const store = createStore(combineReducers({themeReducer}), applyMiddleware(thunk)); | |
| export default class App extends Component { |
This file contains hidden or 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 * as React from "react"; | |
| import { connect } from "react-redux"; | |
| import styled, { ThemeProvider } from "styled-components"; | |
| const Container = styled.View` | |
| flex: 1; | |
| flex-direction: column; | |
| justify-content: space-between; | |
| background-color: ${props => props.theme.PRIMARY_BACKGROUND_COLOR}; |
This file contains hidden or 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
| export const changeBaseTheme = BaseTheme => { | |
| //dispatch an action to change light or dark theme | |
| return dispatch => { | |
| dispatch({ | |
| type: "CHANGE_BASE_THEME", | |
| baseTheme: BaseTheme | |
| }); | |
| }; | |
| }; |
This file contains hidden or 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, { Component } from 'react'; | |
| import {TouchableOpacity, Image,StyleSheet,Dimensions, View, Text, Animated, Easing, PanResponder, Platform } from 'react-native'; | |
| import { Ionicons } from '@expo/vector-icons'; | |
| import { MapView } from 'expo'; | |
| import DateTimePicker from 'react-native-modal-datetime-picker'; | |
| const { width, height } = Dimensions.get('window'); | |
| const ASPECT_RATIO = width / height; | |
| const LATITUDE_DELTA = 0.006339428281933124; | |
| const LONGITUDE_DELTA = LATITUDE_DELTA * ASPECT_RATIO; |
This file contains hidden or 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
| # | |
| # Wide-open CORS config for nginx | |
| # | |
| location / { | |
| if ($request_method = 'OPTIONS') { | |
| add_header 'Access-Control-Allow-Origin' '*'; | |
| # |
This file contains hidden or 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
| find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |