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 * as React from "react"; | |
import { StyleSheet, Text, View } from "react-native"; | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text style={styles.welcome}>Welcome to React Native with TypeScript!</Text> | |
</View> | |
); |
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
{ | |
"compilerOptions": { | |
/* Basic Options */ | |
"target": | |
"es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */, | |
"module": | |
"commonjs" /* Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, | |
"lib": [ | |
"es2015" | |
] /* Specify library files to be included in the compilation: */, |
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
{ | |
"compilerOptions": { | |
/* Basic Options */ | |
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */ | |
"module": "commonjs", /* Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | |
// "lib": [], /* Specify library files to be included in the compilation: */ | |
// "allowJs": true, /* Allow javascript files to be compiled. */ | |
// "checkJs": true, /* Report errors in .js files. */ | |
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | |
// "declaration": true, /* Generates corresponding '.d.ts' file. */ |
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
29288916: Importing base box 'sr-dev-29288916'... | |
==> 29288916: Matching MAC address for NAT networking... | |
==> 29288916: Setting the name of the VM: springboard-retail_29288916_1507050584476_60712 | |
==> 29288916: Clearing any previously set network interfaces... | |
==> 29288916: Preparing network interfaces based on configuration... | |
29288916: Adapter 1: nat | |
29288916: Adapter 2: hostonly | |
==> 29288916: Forwarding ports... | |
29288916: 1080 (guest) => 1080 (host) (adapter 1) | |
29288916: 22 (guest) => 2222 (host) (adapter 1) |
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
#!/bin/sh | |
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress | |
PROD=$(softwareupdate -l | grep "\*.*Command Line" | head -n 1 | awk -F"*" '{print $2}' | sed -e 's/^ *//' | tr -d '\n') | |
softwareupdate -i "$PROD" --verbose | |
rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress |
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 Foundation | |
import WebKit | |
typealias ClosureType = @convention(c) (Any, Selector, UnsafeRawPointer, Bool, Bool, Bool, Any?) -> Void | |
extension WKWebView{ | |
var keyboardDisplayRequiresUserAction: Bool? { | |
get { | |
return self.keyboardDisplayRequiresUserAction | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am pranit-harekar on github. | |
* I am pranit (https://keybase.io/pranit) on keybase. | |
* I have a public key ASDlzy3ltiGe5-QT6Ml6dcEd9AVWQcN9PoCO_jBVJn1Zdwo | |
To claim this, I am signing this object: |
NewerOlder