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, FlatList } from 'react-native'; | |
| import React, { FC, Suspense, useState } from 'react'; | |
| import type { | |
| SearchUsersPaginationQuery, | |
| SearchUsersPaginationQueryResponse, | |
| SearchUsersPaginationQueryVariables, | |
| } from '../../__generated__/SearchUsersPaginationQuery.graphql'; | |
| import { | |
| graphql, | |
| useLazyLoadQuery, |
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
| { | |
| "coc.preferences.formatOnSaveFiletypes": ["css", "markdown", "ts", "tsx", "js", "jsx"], | |
| "prettier.eslintIntegration": true | |
| } |
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 { | |
| CacheConfig, | |
| Environment, | |
| GraphQLResponse, | |
| Network, | |
| RecordSource, | |
| RequestParameters, | |
| Store, | |
| Variables, | |
| } from 'relay-runtime'; |
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 { CacheConfig, GraphQLResponse, RequestParameters, Variables } from 'relay-runtime'; | |
| const FETCH_URL = 'https://hackatalk.azurewebsites.net/graphql'; | |
| export type FetchArgProps = { | |
| request: RequestParameters; | |
| variables: Variables; | |
| cacheConfig: CacheConfig; | |
| token?: string | null; | |
| }; |
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 data = [ | |
| { | |
| date: '2019-12-13', | |
| group: 'person', | |
| type: 'domain', | |
| visitors: 48, | |
| appearanceTimeInSecs: 986, | |
| }, | |
| { | |
| date: '2019-12-13', |
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 { | |
| PanGestureHandler, | |
| PanGestureHandlerGestureEvent, | |
| PinchGestureHandler, | |
| PinchGestureHandlerStateChangeEvent, | |
| State, | |
| } from 'react-native-gesture-handler'; | |
| import React, { ReactChildren, ReactElement } from 'react'; | |
| import { Animated } 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 models, { ModelType } from './models'; | |
| import { ApolloServer } from 'apollo-server-express'; | |
| import { Http2Server } from 'http2'; | |
| import { JwtUser } from './utils/auth'; | |
| import { PubSub } from 'graphql-subscriptions'; | |
| import { User } from './models/User'; | |
| import { allResolvers } from './resolvers'; | |
| import { createApp } from './app'; | |
| import { createServer as createHttpServer } from 'http'; |
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 { ApolloClient, ApolloLink, HttpLink, InMemoryCache } from 'apollo-boost'; | |
| import { AsyncStorage } from 'react-native'; | |
| import { GRAPHQL_URL } from '../../config'; | |
| import { WebSocketLink } from 'apollo-link-ws'; | |
| import { getMainDefinition } from 'apollo-utilities'; | |
| import { onError } from 'apollo-link-error'; | |
| import { setContext } from 'apollo-link-context'; | |
| import { split } from 'apollo-link'; |
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
| for i in $(find lib -type f -name "*.d.ts"); | |
| do sh -c "flowgen $i -o ${i%.*.*}.js.flow"; | |
| done; |
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
| server { | |
| listen 80; | |
| listen 443 ssl; | |
| server_name dooboo.dev; | |
| ssl_certificate /root/cert/certificate.crt; | |
| ssl_certificate_key /root/cert/private.key; | |
| location / { |