Skip to content

Commit

Permalink
Fix Android pop action error. Same as aksonov#1580 but with eslint pa…
Browse files Browse the repository at this point in the history
…ssing
  • Loading branch information
jman48 committed Feb 16, 2017
1 parent f28a26a commit a1f46da
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/* eslint-disable no-param-reassign */

import { Platform } from 'react-native';
import * as ActionConst from './ActionConst';
import { ActionMap } from './Actions';
import { assert } from './Util';
Expand Down Expand Up @@ -118,10 +117,6 @@ function inject(state, action, props, scenes) {
};
}
case ActionConst.ANDROID_BACK: {
if (Platform.OS === 'android') {
assert(state.index > 0, 'You are already in the root scene.');
}

return {
...state,
index: state.index - 1,
Expand Down

0 comments on commit a1f46da

Please sign in to comment.