- Open below directory in Finder with Cmnd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> |
{ | |
"editor.minimap.enabled": false, | |
"editor.fontSize": 13, | |
"git.enableSmartCommit": true, | |
"emmet.triggerExpansionOnTab": true, | |
"editor.renderIndentGuides": true, | |
"editor.tabSize": 2, | |
"editor.formatOnSave": true, | |
"beautify.language": { | |
"js": { |
import React from 'react-native' | |
var { | |
Image, | |
Animated, | |
View | |
} = React | |
module.exports = React.createClass({ | |
getInitialState() { |
// Copyright © 2017 Kalpesh Talkar. All rights reserved. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
import UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillShowNotification, object: nil) | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillHideNotification, object: nil) | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillChangeFrameNotification, object: nil) |
import ratio from './ratio'; | |
import colors from './colors'; | |
// FontWeight - Bold | |
const bold = { fontWeight: 'bold' }; | |
// border bottom - 1, color - lightGray | |
const borderBottomLightGray = { borderBottomWidth: 1, borderColor: colors.lightGray }; | |
// fontSize | |
const size10 = { fontSize: ratio.fontScale(10) }; | |
const size11 = { fontSize: ratio.fontScale(11) }; | |
const size12 = { fontSize: ratio.fontScale(12) }; |
// Padding - 15 | |
const padding15 = { padding: 15 }; | |
const paddingTop15 = { padding: 15 }; | |
const paddingRight15 = { paddingRight: 15 }; | |
const paddingBottom15 = { paddingBottom: 15 }; | |
const paddingLeft15 = { paddingLeft: 15 }; | |
const paddingVeritacal15 = { paddingVertical: 15 }; | |
const paddingHorizontal15 = { paddingHorizontal: 15 }; | |
// Margin - 15 | |
const margin15 = { margin: 15 }; |
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' | |
apply plugin: "com.android.application" | |
apply plugin: 'io.fabric' | |
import com.android.build.OutputFile | |
project.ext.react = [ | |
entryFile: "index.js", | |
enableHermes: true |
func configure<T>( | |
_ value: T, | |
using closure: (inout T) throws -> Void | |
) rethrows -> T { | |
var value = value | |
try closure(&value) | |
return value | |
} |