Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CollapsibleScrollView.js 716B

1234567891011121314151617181920212223242526
  1. // @flow
  2. import * as React from 'react';
  3. import {Animated} from 'react-native';
  4. import type {CollapsibleComponentPropsType} from './CollapsibleComponent';
  5. import CollapsibleComponent from './CollapsibleComponent';
  6. type PropsType = {
  7. ...CollapsibleComponentPropsType,
  8. };
  9. // eslint-disable-next-line react/prefer-stateless-function
  10. class CollapsibleScrollView extends React.Component<PropsType> {
  11. render(): React.Node {
  12. const {props} = this;
  13. return (
  14. <CollapsibleComponent // eslint-disable-next-line react/jsx-props-no-spreading
  15. {...props}
  16. component={Animated.ScrollView}>
  17. {props.children}
  18. </CollapsibleComponent>
  19. );
  20. }
  21. }
  22. export default CollapsibleScrollView;