腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
3
回答
react
native
-
为什么
this.state
是
未定义
的
?
我
是
React
Native
的
新手。我在我
的
组件上有这样
的
代码: super(props); userCategoryType: ''感谢任何人
的
帮助。
浏览 22
提问于2017-08-30
得票数 1
1
回答
React
Native
-
this.state
未定义
、
我有一个
react
原生组件,如下所示import { StyleSheet, Text, View } from '
react
-
native
';import { PermissionsAndroid } from "
react
-
native
"; import SmsAndroid from '
react
-
native<
浏览 0
提问于2018-04-02
得票数 0
1
回答
react
本机:`
this.state
`在‘`render`’中
未定义
、
、
我有以下代码,结果
是
this.state
是
undefinedconst
React
= require('
react
-
native
') ListView, Text,} =
React
const Articles =
React
.c
浏览 1
提问于2015-11-23
得票数 5
回答已采纳
1
回答
连接失败-试图使用本机反应连接到蚊虫中介
、
、
、
我试图将MQTT与
react
本机绑定。当我试图连接到代理时,当我运行我
的
代码时,几分钟后我会得到以下错误:import AsyncS
浏览 4
提问于2021-11-27
得票数 0
回答已采纳
1
回答
在
react
原生应用程序中获取位置并调用状态更新函数
、
我认为这是一个很好
的
解决方案,但事实并非如此。我想要做
的
是
先调用_getLongLat(),然后再调用_getData()函数。因为获取位置_onPress = () => { this.setState({.
浏览 2
提问于2019-12-24
得票数 0
2
回答
当将外部js文件导入
react
本机时,
未定义
的
对象不是对象。
、
主登录文件代码import Icon from "
react
-
native
-vector-icons/Ionicons";
浏览 5
提问于2018-01-05
得票数 3
回答已采纳
2
回答
未定义
不是对象( 'evaluating props.user.map')
React
Native
、
你好,由于某些原因,当我试图映射我从另一个组件传递
的
状态时,我得到了这个错误,
未定义
不是一个对象(‘计算props.user.map'),我不知道
为什么
。下面
是
我获得状态
的
地方:import { Button, View, Text, Image } from "
react
-
native
"; exp
浏览 12
提问于2020-06-03
得票数 0
回答已采纳
2
回答
React
Native
将this.state.input存储为
未定义
的
工作在
React
Native
网站中被罚款
、
、
、
React
Native
获取存储为
未定义
作品
的
this.state.input在
React
Native
Web中被罚款 我作为
react
开发人员已经有一段时间了,我想用
react
native
和一些网络组件来构建一个简单易用
的
应用程序,试图弄清楚
为什么
this.state.input被存储为一个
未定义
的
原始值新
的
react
<
浏览 2
提问于2019-10-31
得票数 0
1
回答
发出网络请求,保存结果,并将结果传递给本机
的
主类。
、
、
、
大家好,我
是
新来
的
,土生土长。constructor(props) {
this.state
= { };, { Component } from '
react
'; import { ActivityIndicator, FlatList, Text, View } from '
react
-
native
';
浏览 1
提问于2022-08-18
得票数 0
回答已采纳
2
回答
从容器访问组件“`this`”
、
我使用道具来传递组件需要运行
的
函数。尽可能地保持组件
的
哑巴。而不是将函数放入
react
类中。组件 this.props.loadImage(this.props.src).bind1000);错误: component.js:67 Uncaught TypeError: Ca
浏览 2
提问于2016-11-07
得票数 0
回答已采纳
2
回答
this.setState不是函数,它是本机
的
、
、
它告诉我this.setState‘
是
未定义
的
,但我不确定我能做些什么来使"this“指向setState
的
适当上下文。我不知道我还能绑定什么来帮助你。import
React
from '
react
'; import axios from'
react
-
n
浏览 14
提问于2018-08-23
得票数 1
回答已采纳
2
回答
我正在使用
react
-
native
中
的
react
导航包。
、
、
我在
react
-
native
中安装了包我已经在互联网上应用了webview
的
后退按钮,但我还没有这样做。下面
是
我实现
的
代码:import {Back
浏览 6
提问于2019-03-12
得票数 9
1
回答
未定义
不是函数(计算'this.refs.myVideo.seek(0)')
React
-
Native
、
我正在使用基于
react
-
native
- video ()
的
react
-
native
- video -controls组件(),我正在尝试播放序列中
的
下一个视频,并使该视频搜索到0(因此它从头开始播放)但是我得到了一个错误:“
未定义
的
不是一个函数(计算'this.refs.myVideo.seek(0)')
React
-
Native
”impo
浏览 1
提问于2017-09-05
得票数 1
2
回答
从
react
本机导航返回给我在this.props.navigation.state.params.filePath中
未定义
的
、
、
我
的
项目
是
2页
react
本机、MainPage和SoundRecord。我
的
init屏幕
是
MainPage,当我按下“取得声音”按钮时,我会移动到另一个组件来记录声音(我使用
的
是
反应本机导航)。当我在MainPage中这样做时:filePath: this.props.navigation.state.params.filePath这会导致错误:
未定义
的
对象不是一个对象我把相关
浏览 0
提问于2019-01-24
得票数 0
回答已采纳
5
回答
React
Native
: this.setState不是函数
、
、
我在这里看到了许多关于这个问题
的
问题,但似乎没有一个与我遇到
的
问题相匹配,而且更加复杂。由于某些原因,在调用handleTextChange函数时,在下面的代码中调用this.setState会导致"this.SetState我
的
问题
是
为什么
?与其他关于这个问题
的
问题不
浏览 2
提问于2016-07-18
得票数 32
1
回答
如何在按下搜索图标后扩展搜索栏
、
、
我正在以某种方式创建一个组件
的
搜索图标,我只是想知道如何扩大搜索栏图标时,有人按下它。import { TouchableOpacity,View, Image} from '
react
-
native
'; import { SearchBar } from '
react
-
native
-elements
浏览 2
提问于2018-07-29
得票数 0
1
回答
在firebase回调中无法识别异步函数。
、
、
、
、
我
的
代码如下所示:import { StyleSheet, Text, View, AsyncStorage } from"
react
-
native
"; constructo
浏览 0
提问于2018-11-07
得票数 0
1
回答
如何在
React
Native
中颠倒ListView
的
堆栈顺序?
我认为前者应该比后者更重要,如下所示:下面
是
我
的
代码: constructor(props, context) {== r2
this.state
= { 'img_1.jpg',dataSource={this.state.dataSource} renderRow={this.rende
浏览 0
提问于2016-01-31
得票数 3
3
回答
使用作为反应本机
、
、
我想用这个库来反应--本土化
的
,但不知道怎么用。
react
本机
的
文档链接被破坏了。我能用这个库做反应本地人吗?
浏览 0
提问于2018-10-10
得票数 9
回答已采纳
1
回答
本地Chrome自定义选项卡不起作用
、
我想在我
的
项目中添加
react
-
native
-custom-tabs,但问题
是
它显示了 super(props);
this.state
=
浏览 4
提问于2020-01-01
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Web前端:什么是React Native?为什么它如此受欢迎?
Flutter和React Native的区别
Flutter和React Native(RN)的比较
React Native 和 Flutter 的开发对比
为什么移动应用程序可以考虑使用React Native?
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券