我使用的是react-native,开发过程中一切正常,但是,当我构建APK(使用本教程:https://facebook.github.io/react-native/docs/signed-apk-android.html#content)并将其安装在我的设备上时, 平面列表不显示任何数据 一切正常,登录屏幕连接到已登录的api 因此api运作良好 那么为什么平板列表不显示任何数据 。有人遇到过同样的问题吗?
componentDidMount() {
this.props.getCoffeeCategory()
}
//flatlist code
<FlatList
style={{ flex: 1 }}
showsHorizontalScrollIndicator={false}
horizontal={true}
data={this.props.data}
renderItem={this._renderListItem}
keyExtractor={item => item.id}
/>