INNER CODE UNIT · JavaScript

KeyboardSpacer

Andr3wHur5t/react-native-keyboard-spacer · KeyboardSpacer.js:38

export default class KeyboardSpacer extends Component {
  static propTypes = {
    topSpacing: PropTypes.number,
    onToggle: PropTypes.func,
    style: ViewPropTypes.style,
  };

  static defaultProps = {
    topSpacing: 0,
    onToggle: () => null,
  };

  constructor(props, context) {
    super(props, context);
    this.state = {
      keyboardSpace: 0,
      isKeyboardOpened: false
    };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…