I try and resist putting stuff in this package. But its just for overflow when theme/markup doesn't cut it, and if I CONTINUALLY reuse some styles.
.
├── defaultTheme
│ └── index.js
├── index.js
#!/bin/bash | |
if [ ! -f "package.json" ]; then | |
echo "No package.json. Run this at your project root." | |
exit 1 | |
fi | |
echo -n "Command not found: " | |
read command |
React Native dimensions are unitless & represent density-independent pixels (abstract pixels, representing a physical distance on the device)
WARNING: DP (or DiP) not DPI
DP units keep _things roughly the same physical size
[PROOF OF CONCEPT] For when you want "tabbable" children (e.g. in Date selector composed of a textfield for Day, Month and year) but only want to perform validation on blur-entire-component not each Textfield
class BlurCapturer extends React.Component {
static propTypes = {
name: PropTypes.string.isRequired,
onBlur: PropTypes.func,
children: PropTypes.node,
ag -u -Q "autoprefixer({" .
make
functionmake
, last prop must be chilren
let is just an expression and akin to a function!
let greeting = hello
let greeting = "hi"; /* shadowed */
let scoped = {
#!/usr/bin/env bash | |
# https://lwn.net/Articles/317154/ | |
# USAGE: | |
# 1. Place this file one level above the project folder | |
# 2. git bisect start <badSHA> <goodSHA> | |
# 3. chmod +x ../auto-bisect.sh | |
# 4. git bisect run ../auto-bisect.sh | |
rm -r .out | |
yarn; |
While such costs might be negligable for cold code, in the sort code comparator was invocated millions of times which made overheads of arguments adaptation quite pronounced. |
#!/usr/bin/env bash | |
notify "kk." |