NavigationExperimental: Add key to NavigationSceneRendererProps

Summary:
This should simplify the renderScene usage a bit because the react key is required and this will make sure they are rendered with the right key automatically.

It changes the string to make sure people do not rely on this API for anything else.

Reviewed By: javache

Differential Revision: D3033933

fb-gh-sync-id: 036424af28693be32c3a3290f5c6667a6a6a04ac
fbshipit-source-id: 036424af28693be32c3a3290f5c6667a6a6a04ac
This commit is contained in:
Eric Vicenti authored and Facebook Github Bot 6 committed 2016-05-05 11:58:26 -07:00
1 parent 2a7f6aeda7
commit 472f815e45
5 files changed
+11 -2

No files matched your search

@@ -119,7 +119,6 @@ class NavigationAnimatedExample extends React.Component {
return (
<NavigationCard
{...props}
key={'card_' + props.scene.navigationState.key}
renderScene={this._renderScene}
/>
);