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
# Uncomment the next line to define a global platform for your project | |
platform :ios, '9.0' | |
target 'Sample' do | |
project 'Sample', { | |
'Debug' => :debug, | |
'Staging' => :release, | |
'Production' => :release, | |
} |
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
// tslint:disable:object-literal-sort-keys | |
import React from 'react' | |
import { GestureResponderEvent, LayoutRectangle, NativeTouchEvent, UIManager } from 'react-native' | |
// HACK | |
import { blurTextInput, currentlyFocusedField, isTextInput } from 'App/lib/extendedTextState' | |
/** | |
* Touchable states. |
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 { observable } from 'mobx' | |
import { observer } from 'mobx-react/native' | |
import React from 'react' | |
import { LayoutRectangle, StyleSheet, View } from 'react-native' | |
interface IProps { | |
headerTitle?: string | |
tabActive: 'tab1'|'tab2'|'tab3' | |
} |
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
// Tune promises (we use Bluebird, but with setImmediate instead of nextTick etc optimizations...) | |
// It will allow to us call jest.runAllImmediates() to force promises queue flush | |
global.Promise = require('App/promise').default | |
global.Promise.setScheduler(function(fn) { | |
setImmediate(fn) | |
}) | |
jest.mock('NativeEventEmitter') | |
const NativeModules = { |
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 s = StyleSheet.create({ | |
content: { | |
flex: 1, | |
}, | |
screen: { | |
backgroundColor: theme.bgColor2, | |
}, | |
}) |
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
type Body = string | FormData | { uri: string } | ArrayBufferLike | ArrayBufferView | |
interface IUploadOptions { | |
body?: Body | |
headers?: { [k: string]: string } | |
method?: 'GET' | 'POST' | |
} | |
function upload( | |
url: string, | |
opts: IUploadOptions = {}, |
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
// tslint:disable:max-classes-per-file | |
import { Client, FileImageResponse, Node } from 'figma-js' | |
import * as fs from 'fs' | |
import * as https from 'https' | |
import * as mkdirp from 'mkdirp' | |
import * as path from 'path' | |
import * as request from 'request' | |
const TOKEN = 'xxxx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' |
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 { | |
EmitterSubscription, | |
Keyboard, | |
LayoutAnimation, | |
LayoutChangeEvent, | |
LayoutRectangle, | |
Platform, | |
StyleSheet, | |
View, |
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 { Keyboard, LayoutAnimation, View } from 'react-native' | |
class KeyboardSpacer extends React.Component { | |
constructor (props, ctx) { | |
super(props, ctx) | |
this.subscriptions = [] | |
this.state = { | |
height: 0, | |
} |
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
Sampling process 25086 for 3 seconds with 1 millisecond of run time between samples | |
Sampling completed, processing symbols... | |
Analysis of sampling ruby (pid 25086) every 1 millisecond | |
Process: ruby [25086] | |
Path: /usr/local/Cellar/ruby/2.4.3_1/bin/ruby | |
Load Address: 0x10646e000 | |
Identifier: ruby | |
Version: 0 | |
Code Type: X86-64 | |
Parent Process: zsh [15045] |