Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
aksonov committed Sep 27, 2018
1 parent c886960 commit a48e718
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/react-native/Example.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const styles = StyleSheet.create({
},
});

const defaultReducer = Reducer(Actions);
const defaultReducer = new Reducer();
const reducerCreate = () => {
return (state, action) => {
console.log('reducer: ACTION:', action);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-router-flux",
"version": "4.0.3",
"version": "4.0.4",
"description": "React Native Router using Flux architecture",
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions src/Reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { getActiveState, popPrevious } from './State';

export default function createReducer(navigationStore) {
return (state, action) => {
if (!navigationStore) {
navigationStore = require('./navigationStore').default;
}
const { type, routeName } = action;
if (type === ActionConst.POP_TO) {
let nextScene = '';
Expand Down

0 comments on commit a48e718

Please sign in to comment.