[英]React Native Error- can't find variable:NameFields
I am defining one of my components as NameFields using the typical module.exports synatx but within the same file on compilation I receive an error saying it can't find the NameFields variable as in here : 我正在使用典型的module.exports synatx将我的一个组件定义为NameFields,但是在编译时的同一文件中,我收到一条错误消息,提示它无法找到NameFields变量,如下所示:
The file can be found in full here: https://gist.github.com/jqed-xuereb/ad5f1facc15ddcdff758c04a07b1dae8 可以在这里找到完整的文件: https : //gist.github.com/jqed-xuereb/ad5f1facc15ddcdff758c04a07b1dae8
Thanks in advance, J 预先感谢,J
You have created class AccountFields
and exporting NameFields
您已经创建了
AccountFields
类并导出了NameFields
replace this line: 替换此行:
module.exports = AccountFields
or change name of class 或更改班级名称
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.