Skip to content

Commit

Permalink
Add example of configuring with parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Jan 24, 2016
1 parent f9f2ac8 commit 7eae682
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ Also, it can be [used in React Native debugger as a dock monitor](https://github

In order to make it simple to use, by default, the module and the monitor app communicate via [remotedev.io](http://remotedev.io) server. Use [remotedev-server](https://github.com/zalmoxisus/remotedev-server) cli to run it locally in order to make the connection faster and not to require an internet connection.

### Props

### Parameters

Name | Description
------------- | -------------
Expand All @@ -60,6 +61,18 @@ Name | Description

All props are optional. You have to provide at least `port` property to use `localhost` instead of `remotedev.io` server.

Example:
```js
export default function configureStore(initialState) {
const finalCreateStore = compose(
devTools({ hostname: 'localhost', port: 8000, name: 'Android app' })
)(createStore);

const store = finalCreateStore(rootReducer, initialState);
return store;
}
```

### Examples
- [Web](https://github.com/zalmoxisus/remote-redux-devtools/tree/master/examples)
- [React Native](https://github.com/zalmoxisus/react-native-counter-ios-android).
Expand Down

0 comments on commit 7eae682

Please sign in to comment.