Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

feat(demo): pass navigation to demo render function #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

levito
Copy link
Collaborator

@levito levito commented Jun 8, 2017

So a demo can use things like navigation.goBack() which is useful for
full-screen demos without header or back button.

@@ -7,20 +7,22 @@ import { colors } from '../../../themes';
export type DemoRendererProps = {
isFullScreen?: boolean,
render: () => React.Element<*>,
navigation: Object,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be stronger typed than Object

@levito levito force-pushed the demo-render-with-navigation branch from 8456a91 to 5fac85e Compare June 8, 2017 11:45
So a demo can use things like navigation.goBack() which is useful for
full-screen demos without header or back button.
@levito levito force-pushed the demo-render-with-navigation branch from 5fac85e to ccf8918 Compare June 8, 2017 13:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant