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
2016-05-05 11:57:56 -07:00
committed by Facebook Github Bot 6
parent 2a7f6aeda7
commit 472f815e45
5 changed files with 11 additions and 2 deletions

View File

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