腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
调用
Flatlist
内部
的
函数
javascript
、
reactjs
、
flatlist
我有一个
函数
checkStatus(id),它需要平面列表中
的
item.id。我可以在扁平列表中检查onPress事件中
的
状态,如下所示: <TouchableOpacity onPress={() => checkStatus(item.id)}> 但是,我希望为
Flatlist
中
的
每个项目
调用
该
函数
,并相应地呈现一些文本。当
函数
被
调用
时,我有一个const,它
的
状态随布尔值而改变。(hasBee
浏览 9
提问于2020-10-13
得票数 0
3
回答
调用
react本机中
的
FlatList
内部
函数
reactjs
、
react-native
、
react-native-flatlist
我正在开发一个应用程序使用
的
反应本机。我想将一个参数传递给特定记录
的
平面列表中
的
一个
函数
。但是,平面列表忽略了这一行代码:onPress={ () => {console.log("TEST1"); this.onPressTopUp()} } /><
FlatList
</View>
浏览 1
提问于2018-02-27
得票数 0
回答已采纳
3
回答
the本机:
Flatlist
数据部分中
的
错误
reactjs
、
typescript
、
react-native
、
react-native-flatlist
我尝试使用
Flatlist
来回应我
的
问题之一,但是我在
Flatlist
的
data=上出现了一个错误。Overload 1 of 2, '(props: FlatListProps<any> | Readonly<FlatListProps<any>>):
FlatList
<any>', gave the这是我
的
代码:
浏览 9
提问于2022-06-03
得票数 0
回答已采纳
1
回答
DraggableFlatList onRef打错了打字稿
reactjs
、
typescript
、
react-native
、
react-native-flatlist
、
react-native-draggable-flatlist
使用以下代码: useEffect, createRef, useRef,import { ScrollView,
FlatList
react-native-gesture-handler' RenderItemParams, DragEndParams, const
浏览 5
提问于2021-06-14
得票数 0
回答已采纳
3
回答
将新数据添加到数据库时,反应本机更新平面列表
reactjs
、
react-native
、
redux
、
react-native-flatlist
在componentDidMount中,我从redux操作
调用
函数
,因此我获得了数据,这是第一次呈现 componentDidMount()<
FlatList
data={this.props.data.orders} renderItem={this.
浏览 0
提问于2019-12-11
得票数 0
1
回答
如何在另一个
函数
中访问const?
javascript
、
react-native
我有一个名为home.js
的
文件,如下所示:import { View, Text,
FlatList
, Card, TouchableOpacityfalse); <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center'}}> <
FlatList
Card>
浏览 1
提问于2021-07-11
得票数 0
回答已采纳
1
回答
什么时候
调用
扁平列表scrollToEnd方法可以工作
react-native
、
react-native-flatlist
我在构造
函数
中设置了
flatlist
的
数据,并在componentDidMount方法中
调用
flatlist
scrollToEnd,我认为它应该滚动到end,但它没有。我单击一个按钮
调用
scrollToEnd方法,
flatlist
滚动到end。 所以我想知道什么时候我应该
调用
flatlist
的
方法来改变它,而不需要点击。 ?
浏览 10
提问于2019-01-03
得票数 0
回答已采纳
1
回答
FlatList
-如何检测刷新何时完成?
react-native
、
react-native-flatlist
、
react-native-scrollview
当用户使用onRefresh属性刷新完我
的
FlatList
上
的
数据时,我需要执行一些操作。 我没有在医生上找到任何东西,所以我想知道是否有任何方法可以做这样
的
事情?
浏览 6
提问于2019-08-16
得票数 0
2
回答
如何检查滚动视图是否已到达React Native中
的
顶部?
react-native
大家好,我正在使用React Native创建一个聊天应用程序。而在聊天屏幕中,这显然是核心功能,如你所知,我们必须向顶部滚动才能加载更多消息。我正在使用Scroll View显示消息。有没有什么方法可以检查Scroll View是否已经到达顶部(而不是底部)?谢谢!
浏览 86
提问于2021-05-09
得票数 0
回答已采纳
2
回答
如何从包含int、tuple、list
的
不均匀列表中找到最大值
python
、
list
、
python-3.x
、
loops
、
max
我需要从对象中找到最大值,因此我需要查看对象中
的
所有级别。举个例子,我有一个项目:我需要编写一个
函数
,它返回5,这是对象内
的
最大值。我就是这么想解决
的
。= 0:我使用Python查看我
的
代码有什么问题,我知道每次递归
调用
函数
时,
flatList
变量都被分配回一个空列表,因此,如果我猜对了,
flatList
将只包含上次递归
浏览 2
提问于2017-07-29
得票数 0
回答已采纳
1
回答
用jest和酶模拟
FlatList
动作
reactjs
、
react-native
、
jestjs
、
enzyme
我正在为一个呈现
FlatList
的
组件编写一些单元测试,我需要模拟一些动作,比如scrollTo和scrollToEnd。我正在使用Jest和Enzyme进行测试。describe("<
FlatList
/>", () => { })从挂载
浏览 12
提问于2019-08-12
得票数 0
2
回答
未定义不是对象(计算'_this.props.navigation') Expo React Native
react-native
、
expo
我变得不确定不是一个计算_this.props.navigation
的
对象。这是我
的
代码。我想使用
Flatlist
从'HomeScreen.js‘中
的
'NearbyLSP.js’组件
调用
屏幕
的
'PlaceorderScreen.js‘次数。我是react-native
的
初学者,所以我使用expo进行应用程序开发。/Expressmode' import {
FlatList
} from "
浏览 19
提问于2020-04-02
得票数 0
回答已采纳
1
回答
React Native导航到render外部
的
屏幕
react-native
、
react-native-navigation
render() { <
FlatList
...Constant在render
函数
外部声明,Card作为render
函数
内部
的
模板
调用
。
浏览 15
提问于2019-05-31
得票数 0
回答已采纳
4
回答
对
FlatList
的
本机引用不起作用
react-native
、
react-native-flatlist
我尝试滚动到我
的
平面列表底部,在我
的
反应本地应用程序,但不幸
的
是,我没有得到对平面列表
的
参考。renderItem={({ item }) => <Text>{item}</Text>} </View>this.
flatList
.scrollToEnd(); 我在单元组里试过
浏览 0
提问于2018-03-13
得票数 2
回答已采纳
2
回答
解析
Flatlist
中
的
JSON对象
javascript
、
json
、
react-native
、
react-native-flatlist
我是Reactive原住民
的
新手,我正在开发一个类似电子商务应用程序
的
应用程序,我使用Woocommerce (Wordpress)作为后端,并通过Woocomrce Api响应尝试在我
的
Reactive下面提到了我
的
代码和API响应,我提醒您item.images[0].src不起作用。提前谢谢你。我
的
Woocommerce API响应 "id": 794, "sl
浏览 3
提问于2020-05-29
得票数 0
回答已采纳
1
回答
React Native
FlatList
BUG?
react-native
、
react-native-flatlist
我想在
FlatList
中渲染一个页脚,但遇到了一些奇怪
的
问题: super(props); this._separator.bind(this)
FlatList
: data={this.state.dataArray} re
浏览 0
提问于2017-11-22
得票数 0
1
回答
ReactNative :在
FlatList
内部
自动
调用
两次
的
函数
javascript
、
reactjs
、
react-native
、
react-redux
、
frontend
我在寻找这个愚蠢问题
的
解决方案时遇到了麻烦。我
的
代码中缺少了一些东西,我现在还不能理解。期待您
的
回答和关于以下代码
的
信息: 构造
函数
: constructor(props) { this.TotalQuery = this.TotalQuery.bind(this); isLoading: true, }}
函
浏览 44
提问于2020-01-08
得票数 0
1
回答
增加React Native中嵌套平面列表中
的
父平面列表项高度w.r.t子平面列表
react-native
、
react-native-ios
、
react-native-flatlist
我正在尝试创建一个嵌套
的
Flatlist
(在另一个
Flatlist
中
的
Flatlist
),其中包含从webservices获取
的
动态数据。一旦
内部
平面列表数据被获取,基于内容,我试图增加父平面列表项目的高度。来自App.js if (item.empty === true) { return <ViewI
浏览 0
提问于2019-01-02
得票数 0
1
回答
状态更改时,ListHeaderComponent不会重新呈现
react-native
、
react-native-flatlist
我在ListHeaderComponent中使用
FlatList
。<
FlatList
renderItem={this.renderItem} return this.props.body; this.props.body是由父组件提供
的
。) => <ChannelSlot key={index} {
浏览 9
提问于2019-08-02
得票数 0
回答已采纳
2
回答
React本机:如何知道渲染何时完成
react-native
我在render()
函数
中有一个引用, ref={(ref) => { this.flatListRef = ref }} renderItem={({ item, index }) => this.renderOuterCard(item, index)}我需要使用this.flatListRef来
调用
FlatList
's方法,这只有在呈现
FlatList
时才有
浏览 8
提问于2020-02-12
得票数 3
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券