How to use the react-native-keyboard-aware-scroll-view.KeyboardAwareScrollView.propTypes function in react-native-keyboard-aware-scroll-view

To help you get started, we’ve selected a few react-native-keyboard-aware-scroll-view examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bitnami-labs / cabin / src / components / commons / ScrollView.js View on Github external
import Colors from 'styles/Colors';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';

const {
  ScrollView,
  RefreshControl,
} = ReactNative;

/**
* An enhanced ScrollView component able to handle
**/
export default class EnhancedScrollView extends Component {

  static propTypes = {
    ...ScrollView.propTypes,
    ...KeyboardAwareScrollView.propTypes,
    // Call when pull to refresh is triggered
    onRefresh: PropTypes.func,
  };

  constructor(props) {
    super(props);
    this._userPulledRefresh = false;
  }

  componentWillReceiveProps() {
    this._userPulledRefresh = false;
  }

  render() {
    const isRefreshing = this._userPulledRefresh;
github GeekyAnts / NativeBase / src / backward / Widgets / Content.js View on Github external
return (
       { this._scrollview = c; this._root = c; }}
        {...this.props}
      >
        {this.props.children}
      
    );
  }
}

Content.propTypes = {
  ...KeyboardAwareScrollView.propTypes,
  style: React.PropTypes.object,
  padder: React.PropTypes.bool,
  disableKBDismissScroll: React.PropTypes.bool,
};

const StyledContent = connectStyle('NativeBase.Content', {}, mapPropsToStyleNames)(Content);

export {
  StyledContent as Content,
};
github GeekyAnts / NativeBase / components / Content.js View on Github external
render() {
    return (
       { this._scrollview = c; this._root = c; }}
        {...this.props}
      >
        {this.props.children}
      
    );
  }
}

Content.propTypes = {
  ...KeyboardAwareScrollView.propTypes,
  style: React.PropTypes.object,
  padder: React.PropTypes.bool,
  disableKBDismissScroll: React.PropTypes.bool,
};

const StyledContent = connectStyle('NativeBase.Content', {}, mapPropsToStyleNames)(Content);

export {
  StyledContent as Content,
};

react-native-keyboard-aware-scroll-view

A React Native ScrollView component that resizes when the keyboard appears.

MIT
Latest version published 3 years ago

Package Health Score

64 / 100
Full package analysis