Skip to content

Instantly share code, notes, and snippets.

@thurt
Last active January 31, 2017 13:39
Show Gist options
  • Save thurt/d5c048835afef5c89ffd8f3389d4c018 to your computer and use it in GitHub Desktop.
Save thurt/d5c048835afef5c89ffd8f3389d4c018 to your computer and use it in GitHub Desktop.
export const navigationType = PropTypes.shape({
dispatch: PropTypes.func.isRequired,
goBack: PropTypes.func.isRequired,
navigate: PropTypes.func.isRequired,
setParams: PropTypes.func.isRequired,
state: PropTypes.shape({
key: PropTypes.string.isRequired,
routeName: PropTypes.string.isRequired,
path: PropTypes.string,
params: PropTypes.object
}).isRequired
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment