diff --git a/apps/mobile/src/components/Announcements/functions.js b/apps/mobile/src/components/Announcements/functions.js index 7ad010b12..45bd4fdbd 100644 --- a/apps/mobile/src/components/Announcements/functions.js +++ b/apps/mobile/src/components/Announcements/functions.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import {View} from 'react-native'; import {allowedPlatforms} from '../../provider/stores'; import {ProFeatures} from '../ResultDialog/pro-features'; @@ -47,6 +47,7 @@ const renderItems = { title: Title, description: Description, body: Body, + text:Body, image: Photo, list: List, subheading: SubHeading, @@ -55,7 +56,7 @@ const renderItems = { }; export const renderItem = ({item, index, color,inline}) => { - const Item = renderItems[item.type]; + const Item = renderItems[item.type] || Fragment return ; };