如何判断哪个包正在使用旧的 AsyncStorage 版本

问题描述 投票:0回答:1

我更新了我的 expo 托管项目中的所有依赖项以实现本机反应。到目前为止,一切似乎都正常,但现在我收到一条警告:

AsyncStorage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-async-storage/async-storage' instead of 'react-native'. See https://github.com/react-native-async-storage/async-storage

在我编写的所有文件中,我都像这样调用 AsyncStorage:

import AsyncStorage from '@react-native-async-storage/async-storage'; 

所以我假设不推荐使用:

import {AsyncStorage} from 'react-native';

必须来自我正在使用的另一个节点包/依赖项...... 检查我的项目文件以查看生成此错误的原因的最佳方法是什么?

我知道这听起来像是一个愚蠢的问题,但在我的 IDE (vsCode) 中,我已经进行了全局搜索“import {AsyncStorage} from 'react-native';”我什么也没想出来。

提前致谢。

react-native expo node-modules asyncstorage
1个回答
0
投票

我也有同样的问题,请问你找到问题了吗?

© www.soinside.com 2019 - 2024. All rights reserved.