React (react-native-modalize) 不适用于 flatListProps 对象

问题描述

有人使用 react-native-modalize 模块吗?

react-native-modalize 模块,当我在 flatListProps 对象上渲染代码时,它显示以下错误!!

这里也是例子https://jeremybarbet.github.io/react-native-modalize/#/EXAMPLES

enter image description here

UITableViewCell

解决方法

data

flatListProps 是一个数组对象。

    let data = { "object": [arrayData] }

    const getData = () => ([ ...data.object ]);