'ActionSheetIOS'不是从'react-native-web/dist/index'导出的

如何避免这种警告?
我的应用程序正在运行,但它在终端中发出警告,如下所示

Compiled with warnings.
/home/karim/Desktop/React-Native/RN-Complete-Guide/node_modules/react-navigation-header- 
buttons/src/overflowMenuPressHandlers.js
Attempted import error: 'ActionSheetIOS' is not exported from 'react-native-web/dist/index'.

这是因为我进口HeaderButtonsHeaderButtonreact-navigation-header-buttons如下图所示

import { HeaderButtons } from "react-navigation-header-buttons";
import { HeaderButton } from "react-navigation-header-buttons";

我正在使用 react-native 4.x veriosn。
有什么办法可以避免这个警告吗?

以上是'ActionSheetIOS'不是从'react-native-web/dist/index'导出的的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>