export const reducer = thereducer
export default = thereducer
....
import { reducer as navigation } from './navigation.js';
import navigation from './navigation.js'
I'm guessing the initial state is being exported for tests?
The reducer is indeed the reducer so can be exported as the default and have initial state as an extra property on the export.
Just like: import React, {View} from 'react-native'
export const reducer = thereducer export default = thereducer .... import { reducer as navigation } from './navigation.js'; import navigation from './navigation.js'
I'm guessing the initial state is being exported for tests? The reducer is indeed the reducer so can be exported as the default and have initial state as an extra property on the export. Just like:
import React, {View} from 'react-native'