undefined is not an object (evaluating '_react3.default.PropTypes.bool')
undefined is not an object (evaluating '_react3.default.PropTypes.bool') How can i fix it? When I check import { OffCanvasReveal } from "react-native-off-canvas-menu"; OffCanvasReveal or OffCanvas3D it fails to me
Go to "node-modules/react-native-off-canvas-menu" open offcanvas3d.js and offcanvasReveal.js add import PropTypes from 'prop-types' and change React.PropTypes to PropTypes on bouth
Please open offcanvas3d.js and offcanvasReveal.js and change
into

i tried that options and the error still happen
You can try my method.The component has other problems.For example,it will come back when you touch any position on the screen .
i ready tried and return this

pls help
是原组件的代码有问题,offcanvas3d.js要修改,offcanvas.js同理
Also seeing this - latest version on a brand new app.
Modify both files
//OffCanvasReveal.js
import PropTypes from 'prop-types'
OffCanvasReveal.propTypes = {
active: PropTypes.bool.isRequired,
onMenuPress: PropTypes.func.isRequired,
menuItems: PropTypes.array.isRequired,
backgroundColor: PropTypes.string,
menuTextStyles: PropTypes.object,
handleBackPress: PropTypes.bool
}
//OffCanvas3D.js
import PropTypes from 'prop-types'
OffCanvas3D.propTypes = {
active: PropTypes.bool.isRequired,
onMenuPress: PropTypes.func.isRequired,
menuItems: PropTypes.array.isRequired,
backgroundColor: PropTypes.string,
menuTextStyles: PropTypes.object,
handleBackPress: PropTypes.bool
}