React native 我的应用程序don';当我';我正在组件中导入信息
我的问题是,我正在通过另一个js文件导入一些道具,但当我将其用于ant mobile创建的卡(但我尝试过的每张卡都是一样的)时,我的应用程序不会滚动,就像她不会阅读其他像true object创建的卡一样,有人能帮我吗React native 我的应用程序don';当我';我正在组件中导入信息,react-native,React Native,我的问题是,我正在通过另一个js文件导入一些道具,但当我将其用于ant mobile创建的卡(但我尝试过的每张卡都是一样的)时,我的应用程序不会滚动,就像她不会阅读其他像true object创建的卡一样,有人能帮我吗 export default class Long extends Component { constructor(props) { super(props); this.state = { CustomData }; } render() {
export default class Long extends Component {
constructor(props) {
super(props);
this.state = { CustomData };
}
render() {
return(
this.state.CustomData.map((cocktails, index) => (
<View key={cocktails.id}>
<WingBlank size="lg">
<Card key={cocktails.id}>
<Card.Header key={cocktails.id}
title={cocktails.name}
thumbStyle={{ width: 30, height: 30 }}
thumb="https://gw.alipayobjects.com/zos/rmsportal/MRhHctKOineMbKAZslML.jpg"
extra="this is extra"
/>
<Card.Body>
<View style={{ height: 42 }}>
<Text style={{ marginLeft: 16 }}></Text>
</View>
</Card.Body>
<Card.Footer
content="footer content"
extra="footer extra content"
/>
</Card>
</WingBlank>
<WhiteSpace size="lg" />
</View>
))
)
}
}
导出默认类长扩展组件{
建造师(道具){
超级(道具);
this.state={CustomData};
}
render(){
返回(
this.state.CustomData.map((鸡尾酒,索引)=>(
))
)
}
}
你看了吗?将所有内容都用一个我只尝试过的文本包装,他正常滚动,如果我尝试滚动查看,它不会使页面可滚动,但每一张卡片都是无用的,这会导致这个问题,因为我使用的是react navigation的materialBottomTabNavigation,我是新手,如果这是一个愚蠢的错误,我很抱歉