Skip to content

Instantly share code, notes, and snippets.

@jankalfus
jankalfus / auto-height-textarea.tsx
Last active October 7, 2020 17:51
Text area with auto height component for React
import React, {
TextareaHTMLAttributes,
useCallback,
useEffect,
useRef,
} from "react";
export function AutoHeightTextarea({
minRows = 1,
...props
@jankalfus
jankalfus / setup-boilerplate.md
Last active April 24, 2018 13:19
Setup linters, hooks

package.json dev dependencies

"devDependencies": {
	"eslint-watch": "^3.1.4",
	"husky": "^0.14.3",
	"prettier": "1.12.1",
	"pretty-quick": "^1.4.1",
	"stylelint": "^9.2.0",
	"stylelint-scss": "^3.0.1"
import React from "react"
import * as ReactNavigation from "react-navigation"
import { connect } from "react-redux"
import AppNavigation, { isDrawerOpen } from "./AppNavigation"
import { BackHandler } from "react-native"
import PropTypes from "prop-types"
class ReduxNavigation extends React.Component {
static propTypes = {