Closed jjant closed 2 years ago
You should probably allow a state prop instead of hardcoding your mapStateToProps function in the toast container.
state
mapStateToProps
That way you could do something like
import { compose } from 'redux'; import { toastReducer as toast } from 'react-native-redux-toast'; export const reducer = compose(fromJS, toast); // ... const App = ({ state }) => ( <View> <Toast state={state.get('toast').toJS()} /> </View> );
And it would work with Immutablejs.
You should probably allow a
state
prop instead of hardcoding yourmapStateToProps
function in the toast container.That way you could do something like
And it would work with Immutablejs.