Changeset View
Changeset View
Standalone View
Standalone View
native/redux/redux-setup.js
Show First 20 Lines • Show All 508 Lines • ▼ Show 20 Lines | |||||
function appBecameInactive() { | function appBecameInactive() { | ||||
appLastBecameInactive = Date.now(); | appLastBecameInactive = Date.now(); | ||||
} | } | ||||
const middleware = applyMiddleware(thunk, reduxLoggerMiddleware); | const middleware = applyMiddleware(thunk, reduxLoggerMiddleware); | ||||
let composeFunc = compose; | let composeFunc = compose; | ||||
if (__DEV__ && global.HermesInternal) { | if (__DEV__ && global.HermesInternal) { | ||||
const { composeWithDevTools } = require('remote-redux-devtools/src'); | const { composeWithDevTools } = require('remote-redux-devtools/src/index.js'); | ||||
ashoat: Here I mapped a folder to the `index.js` file within | |||||
composeFunc = composeWithDevTools({ | composeFunc = composeWithDevTools({ | ||||
name: 'Redux', | name: 'Redux', | ||||
hostname: getDevServerHostname(), | hostname: getDevServerHostname(), | ||||
...remoteReduxDevServerConfig, | ...remoteReduxDevServerConfig, | ||||
}); | }); | ||||
} else if (global.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) { | } else if (global.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) { | ||||
composeFunc = global.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({ | composeFunc = global.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({ | ||||
name: 'Redux', | name: 'Redux', | ||||
Show All 22 Lines |
Here I mapped a folder to the index.js file within