已有一个名为app的记录的构造函数

问题描述:

我收到以下错误,我猜是来自不可变的js或来自React Native的代码。有没有人看过这个错误?任何想法?已有一个名为app的记录的构造函数

enter image description here

是否使用终极版-persist的变换,不变的库?如果确实如the doc中所述,确保您向记录构造函数提供了第二个参数。

const MyRecord = Record({ 
    foo: 'null' 
}, 'MyRecord') // <- Be sure to add a name field to your record 

希望它有帮助!