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
Show hidden characters
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
"Print to console with 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 React, { Component } from 'react' | |
import { View, Animated, PanResponder } from 'react-native' | |
// onSwipePerformed = action => { | |
// switch (action) { | |
// case 'left': { | |
// // this.switchTo(1) | |
// console.log('left Swipe performed') | |
// break | |
// } |
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 { useState, useEffect, useReducer } from 'react' | |
import axios from 'axios' | |
/* eslint-disable react-hooks/rules-of-hooks */ | |
type Action = | |
| { type: 'FETCH_INIT'; payload: [] } | |
| { type: 'FETCH_SUCCESS'; payload: [] } | |
| { type: 'FETCH_FAILURE'; payload: [] } |
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
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
#import <UIKit/UIKit.h> | |
#import <React/RCTEventEmitter.h> |
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
cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../ && cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh && cd ../../../../ |
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
container: { | |
flex: 1, | |
justifyContent: 'center', | |
alignItems: 'center' | |
}, |
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
svn copy http://URLTO/trunk http://URLTO/branches/BRANCHNAME -m "first commit" |
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
let urlStore = 'iTunes Link'; | |
if (Platform.OS === 'android') { | |
urlStore = 'Google Play Link'; | |
} | |
Alert.alert( | |
'Appstore / Google Play', | |
'Linking to Store', | |
[{ | |
text: 'OK', | |
onPress: () => Linking |
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
apm install atom-beautify autoclose-html highlight-selected language-babel linter linter-eslint minimap minimap-highlight-selected pigments seti-ui monokai-seti | |
Atom-beautify: Ctrl+Alt+B | |
Minimap: Absolute Mode: True | |
Seti UI: Compact Mode: True |
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
watchman watch-del-all && yarn upgrade && yarn cache clean && npm start --reset-cache |