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
git checkout -b new-branch existing-branch |
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, { FC } from 'react'; | |
import { ViewStyle, View } from 'react-native'; | |
interface IProps { | |
top?: number; | |
right?: number; | |
bottom?: number; | |
left?: number; | |
horizontal?: number; | |
vertical?: number; |
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, { FC } from 'react'; | |
import { | |
ViewProps, | |
View, | |
FlexAlignType, | |
ViewStyle, | |
StyleProp, | |
} from 'react-native'; | |
interface IProps extends ViewProps { |
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, { FC } from 'react'; | |
import { ViewProps, View, FlexAlignType } from 'react-native'; | |
interface IProps extends ViewProps { | |
alignVertical?: | |
| 'flex-start' | |
| 'flex-end' | |
| 'center' | |
| 'space-between' | |
| 'space-around' |
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
#!/bin/bash | |
# About | |
# This script will resize your original app icon into all needed | |
# icon sizes. Images will be created in the same folder as this | |
# script. From there you just need to drag them to the appropriate | |
# image locations in Xcode. | |
# | |
# Usage | |
# 1. Move this script and your source image into the same directory. |
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
#!/usr/bin/env node | |
const prog = require('caporal'); | |
const { | |
exec, | |
cd, | |
} = require('shelljs'); | |
function trimTrailingNewLine(str) { | |
if (str.endsWith('\n')) { |
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
mixins: [Subscribable.Mixin], |
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
componentWillMount() { | |
this.addListenerOn(DeviceEventEmitter, 'keyboardWillShow', this.onKeyboardWillShow); | |
}, |
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
var DeviceEventEmitter = require('RCTDeviceEventEmitter'); |
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
var React = require('react-native'); | |
var { | |
View | |
} = React; | |
var Pinner = React.createClass({ | |
render() { | |
return ( |
NewerOlder