I fix this by setting the navigation and navigation to the details.
IntroScreen.propTypes = {
navigation: PropTypes.shape({
navigate: PropTypes.func.isRequired,
}).isRequired,
};
eslint forces us to provide default details if we set the details as optional. Therefore, if we set up the props, eslint will not warn you again.