From 5f7edf668ca66ce23e456a5c83204c84dd216e6b Mon Sep 17 00:00:00 2001 From: TaopaiC Date: Tue, 1 May 2018 23:45:55 +0800 Subject: [PATCH] fix allowedDataTypes in fromNativeAndroidRemoteInput --- lib/modules/notifications/AndroidRemoteInput.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/modules/notifications/AndroidRemoteInput.js b/lib/modules/notifications/AndroidRemoteInput.js index 29b29fbb..949dc0ee 100644 --- a/lib/modules/notifications/AndroidRemoteInput.js +++ b/lib/modules/notifications/AndroidRemoteInput.js @@ -103,9 +103,9 @@ export const fromNativeAndroidRemoteInput = ( nativeRemoteInput: NativeAndroidRemoteInput ): AndroidRemoteInput => { const remoteInput = new AndroidRemoteInput(nativeRemoteInput.resultKey); - if (nativeRemoteInput.allowDataType) { - for (let i = 0; i < nativeRemoteInput.allowDataType.length; i++) { - const allowDataType = nativeRemoteInput.allowDataType[i]; + if (nativeRemoteInput.allowedDataTypes) { + for (let i = 0; i < nativeRemoteInput.allowedDataTypes.length; i++) { + const allowDataType = nativeRemoteInput.allowedDataTypes[i]; remoteInput.setAllowDataType(allowDataType.mimeType, allowDataType.allow); } }