This commit is contained in:
Eric Vicenti 2018-10-29 20:01:11 -07:00
parent 2ab9da9ae4
commit 7be11251ec
1 changed files with 8 additions and 3 deletions

View File

@ -99,7 +99,7 @@ class Transitioner extends React.Component {
}
if (__DEV__ && DEBUG) {
console.log({ nextScenes: nextScenes.map(s => s.descriptor.key )})
console.log({ nextScenes: nextScenes.map(s => s.descriptor.key) });
}
const indexHasChanged =
@ -199,7 +199,10 @@ class Transitioner extends React.Component {
if (__DEV__ && DEBUG) {
let key = this.props.navigation.state.key;
let routeName = this.props.navigation.state.routeName;
console.log({ [key]: this.state.scenes.map(d => d.key), route: routeName });
console.log({
[key]: this.state.scenes.map(d => d.key),
route: routeName,
});
}
return (
@ -312,7 +315,9 @@ function filterStale(scenes) {
function filterNotInState(scenes, state) {
let activeKeys = state.routes.map(r => r.key);
let filtered = scenes.filter(scene => activeKeys.includes(scene.descriptor.key));
let filtered = scenes.filter(scene =>
activeKeys.includes(scene.descriptor.key)
);
if (__DEV__ && DEBUG) {
console.log({