message: Copied native motion changes to web
diff: @@ -26,8 +26,8 @@ class NavigationMotion extends React.Component {
  this.setState(prevState => {
  var scenes = {...prevState.scenes};
  var {url, crumbs} = this.getStateNavigator().stateContext;
  - var previousScene = crumbs.length > 0 ? prevState.scenes[crumbs[crumbs.length - 1].url] : null;
  - var element = state.renderScene(data, this.moveScene(url), previousScene && previousScene.data);
  + var previousUrl = crumbs.length > 0 ? crumbs[crumbs.length - 1].url : null;
  + var element = state.renderScene(data, this.moveScene(url), this.getSceneData(previousUrl));
  scenes[url] = {...scenes[url], element};
  return {scenes};
  });
  @@ -56,7 +56,7 @@ class NavigationMotion extends React.Component {
  }
  getSceneData(url) {
  var scene = this.state.scenes[url];
  - return scene && scene.data;
  + return (scene && scene.data) || {};
  }
  getStyle(styleProp, {state, data, url}, strip) {
  var style = typeof styleProp === 'function' ? styleProp(state, data, this.getSceneData(url)) : styleProp;
  