fix allowedDataTypes in fromNativeAndroidRemoteInput
This commit is contained in:
parent
19266d4bae
commit
5f7edf668c
|
@ -103,9 +103,9 @@ export const fromNativeAndroidRemoteInput = (
|
||||||
nativeRemoteInput: NativeAndroidRemoteInput
|
nativeRemoteInput: NativeAndroidRemoteInput
|
||||||
): AndroidRemoteInput => {
|
): AndroidRemoteInput => {
|
||||||
const remoteInput = new AndroidRemoteInput(nativeRemoteInput.resultKey);
|
const remoteInput = new AndroidRemoteInput(nativeRemoteInput.resultKey);
|
||||||
if (nativeRemoteInput.allowDataType) {
|
if (nativeRemoteInput.allowedDataTypes) {
|
||||||
for (let i = 0; i < nativeRemoteInput.allowDataType.length; i++) {
|
for (let i = 0; i < nativeRemoteInput.allowedDataTypes.length; i++) {
|
||||||
const allowDataType = nativeRemoteInput.allowDataType[i];
|
const allowDataType = nativeRemoteInput.allowedDataTypes[i];
|
||||||
remoteInput.setAllowDataType(allowDataType.mimeType, allowDataType.allow);
|
remoteInput.setAllowDataType(allowDataType.mimeType, allowDataType.allow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue