message: Tested current scene re-renders when stack does
diff: @@ -1108,4 +1108,39 @@ describe('NavigationMotion', function () {
  }
  })
  });
  +
  + describe('Re-render NavigationStack', function () {
  + it('should re-render current scene', function(){
  + var stateNavigator = new StateNavigator([
  + { key: 'sceneA' },
  + ]);
  + stateNavigator.navigate('sceneA');
  + var {sceneA} = stateNavigator.states;
  + var SceneA = ({updated}) => <div id='sceneA' data-updated={updated} />;
  + sceneA.renderScene = (updated) => <SceneA updated={updated} />;
  + var container = document.createElement('div');
  + var update;
  + var App = () => {
  + var [updated, setUpdated] = useState(false);
  + update = setUpdated;
  + return (
  + <NavigationHandler stateNavigator={stateNavigator}>
  + <NavigationMotion renderScene={(state) => state.renderScene(updated)}>
  + {(_style, scene, key) => (
  + <div id={key} key={key}>{scene}</div>
  + )}
  + </NavigationMotion>
  + </NavigationHandler>
  + );
  + }
  + ReactDOM.render(<App />, container);
  + update(true);
  + try {
  + var scene = container.querySelector<HTMLDivElement>("#sceneA");
  + assert.strictEqual(scene.dataset.updated, 'true');
  + } finally {
  + ReactDOM.unmountComponentAtNode(container);
  + }
  + })
  + });
  });
  