Skip to content

Instantly share code, notes, and snippets.

View codewithpassion's full-sized avatar

Dominik Fretz codewithpassion

View GitHub Profile
@codewithpassion
codewithpassion / MultilineTextInput.js
Last active January 26, 2018 12:39 — forked from catchin/MultilineTextInput.js
This is a workaround for the buggy react-native TextInput multiline on Android. Inspired by the comments on https://github.com/facebook/react-native/issues/12717. Based the work of @catchin with the addition of handling the state via the container.
import React, { PropTypes, PureComponent } from 'react';
import { TextInput } from 'react-native';
import debounce from 'debounce';
/**
* This is a workaround for the buggy react-native TextInput multiline on Android.
*
* Can be removed once https://github.com/facebook/react-native/issues/12717
* is fixed.
*