Skip to content

Instantly share code, notes, and snippets.

View bogoslavskiy's full-sized avatar

Artem Bogoslavskiy bogoslavskiy

View GitHub Profile
const ENV = {
development: {
port: 7000,
mongoURI: 'mongodb://localhost:27017/chat-app',
},
production: {
port: 7000,
mongoURI: 'mongodb://localhost:27017/chat-app',
},
staging: {
version: '3.7'
services:
mongo:
image: mongo:latest
volumes:
- './mongodb_data:/data/db'
ports:
- 27017:27017
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();
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.
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';
/*
import React from 'react';
import {
ScrollView,
StyleSheet,
AsyncStorage,
View,
Text,
TouchableOpacity,
Image
} from 'react-native';
import React from 'react';
import {
ScrollView,
StyleSheet,
AsyncStorage,
View,
Text,
TouchableOpacity,
Image,
TouchableHighlight
import React from 'react';
import {
ScrollView,
StyleSheet,
AsyncStorage,
View,
Text,
TouchableOpacity,
Image,
TouchableHighlight
import React from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
export function getStatusBarHeight(skipAndroid = false) {
if (Platform.OS === 'ios') {
return ifIphoneX(44, 21);
}
if (skipAndroid) {
return 0;
}
return StatusBar.currentHeight;