如何在React Native中以Redux形式设置隐藏字段? [英] How to set hidden fields in redux form in react native?
本文介绍了如何在React Native中以Redux形式设置隐藏字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在react native中以Redux形式设置隐藏字段?
How to set hidden fields in redux form in react native ?
我jsut找不到有关如何执行此操作的任何方法.有帮助吗?
i jsut cannot find any way on how to do that . any help?
推荐答案
我使用了以下方法:
this.props.dispatch(change("FORM_NAME","FIELD_NAME","VALUE"))
此代码运行后,如果不存在,表单将创建该字段
after this code runs, the form will create the field if it does not exists
这篇关于如何在React Native中以Redux形式设置隐藏字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文