Undefined is not an object (evaluating 'RCTAsyncStorage.multiMerge' (React-native-asyncstorage)

∥☆過路亽.° 提交于 2019-11-29 10:32:59

Like said in the documentation: NOTE: This is not supported by all native implementations, you're probably running in an error because of this.

It may also be Reactotron you're using (according to the stack trace) that causes this. Try disabling it at first?

Are you having a custom implementation of AsyncStorage (like: https://www.npmjs.com/package/react-native-asyncstorage)? If so, take it off unless there's a specific reason to use it (please elaborate in the question)

But in general, you could for instance use React Native Simple Store and it's update method.

Or then you could write your own function with lodash.merge.

If problem persists even with commenting out all the AsyncStorage code, removing possible custom dependencies and taking off Reactotron, and you can't find a way to write multiMerge by yourself, update your question and ping me on this answer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!