blob: a7c6ffc504bfe541ff6eed9bbd4c8d137b78c255 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import PropTypes from 'prop-types';
const shape = (propShape) => PropTypes.shape(propShape);
const functionTypes = {
goBack: PropTypes.func,
navigate: PropTypes.func,
};
const NavigationType = shape({
goBack: functionTypes.goBack.isRequired,
navigate: functionTypes.navigate.isRequired,
});
export default NavigationType;
|