This file contains 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 fs from 'fs'; | |
import path from 'path'; | |
import { danger, warn, schedule } from 'danger'; | |
import jest from 'danger-plugin-jest'; | |
import spellcheck from 'danger-plugin-spellcheck'; | |
import todos from 'danger-plugin-todos'; | |
import yarn from 'danger-plugin-yarn'; | |
// Setup |
This file contains 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 fs from 'fs'; | |
import path from 'path'; | |
import { promisify } from 'util'; | |
import { printSchema } from 'graphql/utilities'; | |
import schema from '@sejamelhoramigo/graphql/src/schema'; | |
const writeFileAsync = promisify(fs.writeFile); |
This file contains 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
"""Address""" | |
type Address { | |
fullAddress: String | |
shortAddress: String | |
zipcode: String | |
street: String | |
number: String | |
neighborhood: String | |
city: String | |
state: String |
This file contains 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 path from 'path'; | |
import type { ExpoConfig, ConfigContext } from '@expo/config'; | |
export default ({ config }: ConfigContext): ExpoConfig => ({ | |
expo: { | |
...config, | |
name: 'sejamelhoramigo', | |
slug: 'sejamelhoramigo', | |
platforms: ['ios', 'android', 'web'], |
This file contains 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
type _commitMutationConfig('variables, 'response) = { | |
mutation: mutationNode, | |
variables: 'variables, | |
onCompleted: | |
option(('response, Js.Nullable.t(array(mutationError))) => unit), | |
onError: option(Js.Nullable.t(mutationError) => unit), | |
optimisticResponse: option('response), | |
optimisticUpdater: option(optimisticUpdaterFn), | |
updater: option(updaterFn('response)), | |
}; |
This file contains 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
../node_modules/react-native-device-info/ios/RNDeviceInfo/RNDeviceInfo.m | |
../node_modules/react-native-maps/ios/build/Build/Products/Debug-iphonesimulator/React/libReact.a | |
../node_modules/react-native-maps/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTWebView.o | |
../node_modules/react-native-maps/ios/build/ModuleCache.noindex/3RS3JN9HVPBL7/UIKit-1V5UHAPTOD24G.pcm | |
../node_modules/react-native-maps/ios/build/ModuleCache.noindex/3RS3JN9HVPBL7/modules.idx | |
../node_modules/react-native-maps/ios/build/ModuleCache.noindex/CEMG215KE65F/UIKit-1V5UHAPTOD24G.pcm | |
../node_modules/react-native-maps/ios/build/ModuleCache.noindex/CEMG215KE65F/WebKit-3M3AFHBPPA3AE.pcm | |
../node_modules/react-native-maps/ios/build/ModuleCache.noindex/CEMG215KE65F/modules.idx | |
../node_modules/react-native-maps/ios/build/ModuleCache.noindex/7M428SZDQ9GN/UIKit-1V5UHAPTOD24G.pcm | |
../node_modules/react-native-maps/ios/build/ModuleCache.noindex/7M428SZDQ9GN/modules.idx |
This file contains 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, TouchableWithoutFeedback, View } from 'react-native'; | |
import { t } from 'react-native-tailwindcss'; | |
const s = { | |
wrapper: [t.bgTransparent, t.w4_12, t.p1, { aspectRatio: 1 }], | |
field: [t.bgBlue900, t.rounded, t.flex1, t.itemsCenter, t.justifyCenter, t.overflowHidden], | |
symbol: [t.w8_12, t.objectContain], | |
success: [t.bgGreen900], | |
}; |
This file contains 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 rtl from 'react-test-renderer' | |
import { createMockEnvironment, MockPayloadGenerator } from 'relay-test-utils' | |
import MyRelayComponent from './MyRelayComponent' | |
test('Data Render', () => { | |
const environment = createMockEnvironment() | |
const renderer = rtl.create(<MyRelayComponent environment={environment} />) | |
environment.mock.resolveMostRecentOperation(operation => MockPayloadGenerator.generate(operation)) |
This file contains 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
{ | |
"private": true, | |
"dependencies": { | |
"@types/react": "*", | |
"@types/relay-runtime": ">=6.0.3", | |
} | |
} |
This file contains 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 { Network } from 'relay-runtime' | |
import createRelayNetworkLogger from 'relay-runtime/lib/network/createRelayNetworkLogger' | |
import RelayNetworkLoggerTransaction from 'relay-runtime/lib/network/RelayNetworkLoggerTransaction' | |
import cacheHandler from './cacheHandler' | |
const RelayNetworkLogger = createRelayNetworkLogger(RelayNetworkLoggerTransaction) | |
const network = Network.create( |
NewerOlder