Summary: Adds a notification disapatcher to the redux store which triggers native notifications. Reviewed By: jknoxville Differential Revision: D10301490 fbshipit-source-id: d926d9a5378359ebb98a8b5816100f41db1e13e6
29 lines
767 B
JavaScript
29 lines
767 B
JavaScript
/**
|
|
* Copyright 2018-present Facebook.
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
* @format
|
|
*/
|
|
|
|
import androidDevice from './androidDevice';
|
|
import iOSDevice from './iOSDevice';
|
|
import windowsDevice from './windowsDevice';
|
|
import application from './application';
|
|
import tracking from './tracking';
|
|
import server from './server';
|
|
import notifications from './notifications';
|
|
|
|
import type Logger from '../fb-stubs/Logger.js';
|
|
import type {Store} from '../reducers/index.js';
|
|
|
|
export default (store: Store, logger: Logger) =>
|
|
[
|
|
application,
|
|
androidDevice,
|
|
iOSDevice,
|
|
windowsDevice,
|
|
tracking,
|
|
server,
|
|
notifications,
|
|
].forEach(fn => fn(store, logger));
|