Open maggialejandro opened 5 years ago
Hi guys! It would be really nice if Outline view had better support for React Higher Order Components
For example:
/* @flow */ import React from 'react'; import { Modal } from 'react-native'; import styles from './styles'; type PropsType = { isVisible: boolean, onClose: () => void, }; const ModalHOC = (): Function => ( WrappedComponent: React.Element<*>, ): React.Element<*> => class CustomModal extends React.PureComponent<PropsType> { handleClose = (): any => this.props.onClose(); render(): React.Element<*> { return ( <Modal style={styles.modal} hardwareAccelerated visible={this.props.isVisible} transparent onRequestClose={this.handleClose} supportedOrientations={['portrait', 'landscape']} > <WrappedComponent {...this.props} /> </Modal> ); } }; export default ModalHOC;
Hi guys! It would be really nice if Outline view had better support for React Higher Order Components
For example:
Expected Behavior (VS Code)
Actual Behavior
Versions