Fix Notifications Not Showing up
Summary: Notification tab was not accessible previously. Reviewed By: passy Differential Revision: D18590702 fbshipit-source-id: 36888a2e695dc701ea848cb772c00e4feed8659f
This commit is contained in:
committed by
Facebook Github Bot
parent
9faea2acec
commit
6c4e687d63
@@ -155,6 +155,8 @@ const INITAL_STATE: State = {
|
|||||||
deepLinkPayload: null,
|
deepLinkPayload: null,
|
||||||
staticView: WelcomeScreen,
|
staticView: WelcomeScreen,
|
||||||
};
|
};
|
||||||
|
// Please sync with NotificationsHub
|
||||||
|
const STATIC_PLUGINS_ID: Array<string> = ['notifications'];
|
||||||
|
|
||||||
const reducer = (state: State = INITAL_STATE, action: Actions): State => {
|
const reducer = (state: State = INITAL_STATE, action: Actions): State => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
@@ -549,6 +551,7 @@ function updateSelection(state: Readonly<State>): State {
|
|||||||
const availablePlugins: string[] = [
|
const availablePlugins: string[] = [
|
||||||
...(device?.devicePlugins || []),
|
...(device?.devicePlugins || []),
|
||||||
...(client?.plugins || []),
|
...(client?.plugins || []),
|
||||||
|
...STATIC_PLUGINS_ID,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user