Last active
August 5, 2016 11:53
-
-
Save thekevinscott/e30602505f9b394f9d17575af29ad62a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typeToReducer from 'type-to-reducer'; | |
import { | |
ActionConst, | |
} from 'react-native-router-flux'; | |
const initialState = { | |
scene: { | |
name: 'Games Overview', | |
key: 'Games Overview', | |
title: 'Games Overview', | |
}, | |
}; | |
export default typeToReducer({ | |
[ActionConst.FOCUS]: (state, { scene }) => ({ | |
scene: { | |
name: scene.name, | |
key: scene.sceneKey, | |
title: scene.title, | |
}, | |
}), | |
}, initialState); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment