import React from "react";
import { View } from 'react-native';
import PropTypes from "prop-types";


const Hidable = (props) => {
    return (
        <View>
            {props.isVisible ?
                props.children
                :
                undefined
            }
        </View>
    )
};

Hidable.propTypes = {
    isVisible: PropTypes.bool
};

Hidable.defaultProps = {
    isVisible: true
};

export default Hidable

