-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
Description
Hi I passed the example code to react native and works wonderful but redux-devtools doesn't work.
On the documentation you said During development redux-devtools are automatically enabled. Install the extension. what's mean automatically enabled? maybe I missed something...
Here is my code:
store.js
import createStore from 'react-waterfall'
const config = {
initialState: { count: 0 },
actionsCreators: {
increment: ({ count }) => ({ count: count + 1 }),
},
}
export const { Provider, connect, actions } = createStore(config)
App.js
import React from 'react';
import {Button, Text, View} from 'react-native';
import { connect, Provider, actions } from './store'
let Count = ({ count }) => <Text style={{marginTop: 100}}>{count}</Text>
Count = connect(({ count }) => ({ count }))(Count)
export default class App extends React.PureComponent {
render() {
return (
<Provider>
<Count/>
<Button title='add' onPress={() => actions.increment()}/>
</Provider>
);
}
}
Thanks!
