import {Navigator} from ‘react-native-deprecated-custom-components';
然后会报这个错
Cannot read property 'shape' of undefined
github解决办法是:
You have to change few things in the Library : PropTypes is deprecated from React , you have to use a separate library (npm install --save prop-types) and then you import it in the file NavigatorBreadcrumbNavigationBar (import PropTypes from 'prop-types';) and remove the PropTypes import from React.