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
| const ENV = { | |
| development: { | |
| port: 7000, | |
| mongoURI: 'mongodb://localhost:27017/chat-app', | |
| }, | |
| production: { | |
| port: 7000, | |
| mongoURI: 'mongodb://localhost:27017/chat-app', | |
| }, | |
| staging: { |
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
| version: '3.7' | |
| services: | |
| mongo: | |
| image: mongo:latest | |
| volumes: | |
| - './mongodb_data:/data/db' | |
| ports: | |
| - 27017:27017 |
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 express from 'express'; | |
| import * as mongoose from 'mongoose'; | |
| import * as http from 'http'; | |
| import { ApolloServer } from 'apollo-server-express'; | |
| import config from './config'; | |
| import schema from './schema'; | |
| const app = express(); |
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 { Animated, ViewStyle, RegisteredStyle, ScrollViewProps, FlatListProps, SectionListProps } from 'react-native'; | |
| export interface IProps { | |
| /** | |
| * A React component that will define the content of the modal. | |
| */ | |
| children?: React.ReactNode; | |
| /** | |
| * A number that will enable the snapping feature and create an intermediate point before opening the modal to full screen. |
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 from 'react'; | |
| import { StyleSheet, View } from 'react-native'; | |
| import { MapView, Marker } from 'expo'; | |
| import { Viewport } from '../utils'; | |
| import MyLocationMapMarker from '../components/Maps/MyLocationMapMarker'; | |
| /* | |
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 from 'react'; | |
| import { | |
| ScrollView, | |
| StyleSheet, | |
| AsyncStorage, | |
| View, | |
| Text, | |
| TouchableOpacity, | |
| Image | |
| } 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 from 'react'; | |
| import { | |
| ScrollView, | |
| StyleSheet, | |
| AsyncStorage, | |
| View, | |
| Text, | |
| TouchableOpacity, | |
| Image, | |
| TouchableHighlight |
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 from 'react'; | |
| import { | |
| ScrollView, | |
| StyleSheet, | |
| AsyncStorage, | |
| View, | |
| Text, | |
| TouchableOpacity, | |
| Image, | |
| TouchableHighlight |
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 from 'react'; | |
| import { | |
| Image, | |
| Platform, | |
| ScrollView, | |
| StyleSheet, | |
| Text, | |
| TouchableOpacity, | |
| View, | |
| } 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
| export function getStatusBarHeight(skipAndroid = false) { | |
| if (Platform.OS === 'ios') { | |
| return ifIphoneX(44, 21); | |
| } | |
| if (skipAndroid) { | |
| return 0; | |
| } | |
| return StatusBar.currentHeight; |